Class: Catalog::SynchronizeCatalogPrices::Result

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

Overview

Service object: result.

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.



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

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



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

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



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

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



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

def catalog_items_updated
  @catalog_items_updated
end

#catalogsObject (readonly)

Returns the value of attribute catalogs

Returns:

  • (Object)

    the current value of catalogs



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

def catalogs
  @catalogs
end

#messagesObject (readonly)

Returns the value of attribute messages

Returns:

  • (Object)

    the current value of messages



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

def messages
  @messages
end

Instance Method Details

#all_items_synchronized?Boolean

Returns:

  • (Boolean)


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

def all_items_synchronized? = all_items_synchronized