Class: Menard::InventorySpreadsheetGenerator::Result
- Inherits:
-
Data
- Object
- Data
- Menard::InventorySpreadsheetGenerator::Result
- Defined in:
- app/services/menard/inventory_spreadsheet_generator.rb
Instance Attribute Summary collapse
-
#catalog_items_count ⇒ Object
readonly
Returns the value of attribute catalog_items_count.
-
#file_path ⇒ Object
readonly
Returns the value of attribute file_path.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(file_path: nil, catalog_items_count: nil, messages: []) ⇒ Result
constructor
A new instance of Result.
- #success? ⇒ Boolean
Constructor Details
#initialize(file_path: nil, catalog_items_count: nil, messages: []) ⇒ Result
Returns a new instance of Result.
26 |
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 26 def initialize(file_path: nil, catalog_items_count: nil, messages: []) = super |
Instance Attribute Details
#catalog_items_count ⇒ Object (readonly)
Returns the value of attribute catalog_items_count
25 26 27 |
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 25 def catalog_items_count @catalog_items_count end |
#file_path ⇒ Object (readonly)
Returns the value of attribute file_path
25 26 27 |
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 25 def file_path @file_path end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
25 26 27 |
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 25 def @messages end |
Instance Method Details
#success? ⇒ Boolean
27 |
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 27 def success? = file_path.present? |