Class: HeatLoss::ChartExporter::Result
- Inherits:
-
Data
- Object
- Data
- HeatLoss::ChartExporter::Result
- Defined in:
- app/services/heat_loss/chart_exporter.rb
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#image_data ⇒ Object
readonly
Returns the value of attribute image_data.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: false, image_data: nil, content_type: nil, error: nil) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(success: false, image_data: nil, content_type: nil, error: nil) ⇒ Result
Returns a new instance of Result.
14 15 16 |
# File 'app/services/heat_loss/chart_exporter.rb', line 14 def initialize(success: false, image_data: nil, content_type: nil, error: nil) super end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type
13 14 15 |
# File 'app/services/heat_loss/chart_exporter.rb', line 13 def content_type @content_type end |
#error ⇒ Object (readonly)
Returns the value of attribute error
13 14 15 |
# File 'app/services/heat_loss/chart_exporter.rb', line 13 def error @error end |
#image_data ⇒ Object (readonly)
Returns the value of attribute image_data
13 14 15 |
# File 'app/services/heat_loss/chart_exporter.rb', line 13 def image_data @image_data end |
#success ⇒ Object (readonly)
Returns the value of attribute success
13 14 15 |
# File 'app/services/heat_loss/chart_exporter.rb', line 13 def success @success end |