Class: GeneratedImageImporter::Result
- Inherits:
-
Data
- Object
- Data
- GeneratedImageImporter::Result
- Defined in:
- app/services/generated_image_importer.rb
Instance Attribute Summary collapse
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#image ⇒ Object
readonly
Returns the value of attribute image.
-
#notice ⇒ Object
readonly
Returns the value of attribute notice.
Instance Method Summary collapse
-
#initialize(image: nil, notice: nil, error: nil) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(image: nil, notice: nil, error: nil) ⇒ Result
Returns a new instance of Result.
19 |
# File 'app/services/generated_image_importer.rb', line 19 def initialize(image: nil, notice: nil, error: nil) = super |
Instance Attribute Details
#error ⇒ Object (readonly)
Returns the value of attribute error
18 19 20 |
# File 'app/services/generated_image_importer.rb', line 18 def error @error end |
#image ⇒ Object (readonly)
Returns the value of attribute image
18 19 20 |
# File 'app/services/generated_image_importer.rb', line 18 def image @image end |
#notice ⇒ Object (readonly)
Returns the value of attribute notice
18 19 20 |
# File 'app/services/generated_image_importer.rb', line 18 def notice @notice end |
Instance Method Details
#success? ⇒ Boolean
20 |
# File 'app/services/generated_image_importer.rb', line 20 def success? = error.nil? && image.present? |