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