Class: Catalog::SynchronizeCatalogPrices::Result

Inherits:
Data
  • Object
show all
Defined in:
app/services/catalog/synchronize_catalog_prices.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(all_items_synchronized: nil, catalogs: [], catalog_items_updated: [], catalog_items_failed: [], messages: []) ⇒ Result

Returns a new instance of Result.



5
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 5

def initialize(all_items_synchronized: nil, catalogs: [], catalog_items_updated: [], catalog_items_failed: [], messages: []) = super

Instance Attribute Details

#all_items_synchronizedObject (readonly)

Returns the value of attribute all_items_synchronized

Returns:

  • (Object)

    the current value of all_items_synchronized



4
5
6
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4

def all_items_synchronized
  @all_items_synchronized
end

#catalog_items_failedObject (readonly)

Returns the value of attribute catalog_items_failed

Returns:

  • (Object)

    the current value of catalog_items_failed



4
5
6
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4

def catalog_items_failed
  @catalog_items_failed
end

#catalog_items_updatedObject (readonly)

Returns the value of attribute catalog_items_updated

Returns:

  • (Object)

    the current value of catalog_items_updated



4
5
6
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4

def catalog_items_updated
  @catalog_items_updated
end

#catalogsObject (readonly)

Returns the value of attribute catalogs

Returns:

  • (Object)

    the current value of catalogs



4
5
6
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4

def catalogs
  @catalogs
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



4
5
6
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4

def messages
  @messages
end

Instance Method Details

#all_items_synchronized?Boolean

Returns:

  • (Boolean)


6
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 6

def all_items_synchronized? = all_items_synchronized