Class: Menard::InventorySpreadsheetGenerator::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/menard/inventory_spreadsheet_generator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject (readonly)

Returns the value of attribute catalog_items_count

Returns:

  • (Object)

    the current value of 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_pathObject (readonly)

Returns the value of attribute file_path

Returns:

  • (Object)

    the current value of file_path



25
26
27
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 25

def file_path
  @file_path
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



25
26
27
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 25

def messages
  @messages
end

Instance Method Details

#success?Boolean

Returns:

  • (Boolean)


27
# File 'app/services/menard/inventory_spreadsheet_generator.rb', line 27

def success? = file_path.present?