Class: Report::ItemMovedToScrap::ItemMovedToScrapReport::Result
- Inherits:
-
Data
- Object
- Data
- Report::ItemMovedToScrap::ItemMovedToScrapReport::Result
- Defined in:
- app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
-
#initialize(success: nil, data: []) ⇒ Result
constructor
Initialize a new instance.
-
#success? ⇒ Boolean
Whether the command validated and ran successfully.
Constructor Details
#initialize(success: nil, data: []) ⇒ Result
Initialize a new instance.
9 10 11 |
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 9 def initialize(success: nil, data: []) = super # Whether the command validated and ran successfully. # @return [Boolean] |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
5 6 7 |
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 5 def data @data end |
#success ⇒ Object (readonly)
Returns the value of attribute success
5 6 7 |
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 5 def success @success end |
Instance Method Details
#success? ⇒ Boolean
Whether the command validated and ran successfully.
12 |
# File 'app/services/report/item_moved_to_scrap/item_moved_to_scrap_report.rb', line 12 def success? = success |