Class: GeneratedPdfImporter::Result
- Inherits:
-
Data
- Object
- Data
- GeneratedPdfImporter::Result
- Defined in:
- app/services/generated_pdf_importer.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#literature ⇒ Object
readonly
Returns the value of attribute literature.
-
#notice ⇒ Object
readonly
Returns the value of attribute notice.
-
#publication ⇒ Object
readonly
Returns the value of attribute publication.
Instance Method Summary collapse
-
#initialize(publication: nil, literature: nil, notice: nil, error: nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(publication: nil, literature: nil, notice: nil, error: nil) ⇒ Result
Returns a new instance of Result.
24 |
# File 'app/services/generated_pdf_importer.rb', line 24 def initialize(publication: nil, literature: nil, notice: nil, error: nil) = super |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
23 24 25 |
# File 'app/services/generated_pdf_importer.rb', line 23 def error @error end |
#literature ⇒ Object (readonly)
Returns the value of attribute literature
23 24 25 |
# File 'app/services/generated_pdf_importer.rb', line 23 def literature @literature end |
#notice ⇒ Object (readonly)
Returns the value of attribute notice
23 24 25 |
# File 'app/services/generated_pdf_importer.rb', line 23 def notice @notice end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
23 24 25 |
# File 'app/services/generated_pdf_importer.rb', line 23 def publication @publication end |
Instance Method Details
#success? ⇒ Boolean
25 |
# File 'app/services/generated_pdf_importer.rb', line 25 def success? = error.nil? && publication.present? |