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.
27 |
# File 'app/services/generated_pdf_importer.rb', line 27 def initialize(publication: nil, literature: nil, notice: nil, error: nil) = super |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
26 27 28 |
# File 'app/services/generated_pdf_importer.rb', line 26 def error @error end |
#literature ⇒ Object (readonly)
Returns the value of attribute literature
26 27 28 |
# File 'app/services/generated_pdf_importer.rb', line 26 def literature @literature end |
#notice ⇒ Object (readonly)
Returns the value of attribute notice
26 27 28 |
# File 'app/services/generated_pdf_importer.rb', line 26 def notice @notice end |
#publication ⇒ Object (readonly)
Returns the value of attribute publication
26 27 28 |
# File 'app/services/generated_pdf_importer.rb', line 26 def publication @publication end |
Instance Method Details
#success? ⇒ Boolean
28 |
# File 'app/services/generated_pdf_importer.rb', line 28 def success? = error.nil? && publication.present? |