Class: Catalog::SynchronizeCatalogPrices::Result
- Inherits:
-
Data
- Object
- Data
- Catalog::SynchronizeCatalogPrices::Result
- Defined in:
- app/services/catalog/synchronize_catalog_prices.rb
Instance Attribute Summary collapse
-
#all_items_synchronized ⇒ Object
readonly
Returns the value of attribute all_items_synchronized.
-
#catalog_items_failed ⇒ Object
readonly
Returns the value of attribute catalog_items_failed.
-
#catalog_items_updated ⇒ Object
readonly
Returns the value of attribute catalog_items_updated.
-
#catalogs ⇒ Object
readonly
Returns the value of attribute catalogs.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #all_items_synchronized? ⇒ Boolean
-
#initialize(all_items_synchronized: nil, catalogs: [], catalog_items_updated: [], catalog_items_failed: [], messages: []) ⇒ Result
constructor
A new instance of Result.
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_synchronized ⇒ Object (readonly)
Returns the value of attribute 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_failed ⇒ Object (readonly)
Returns the value of attribute 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_updated ⇒ Object (readonly)
Returns the value of attribute catalog_items_updated
4 5 6 |
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4 def catalog_items_updated @catalog_items_updated end |
#catalogs ⇒ Object (readonly)
Returns the value of attribute catalogs
4 5 6 |
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4 def catalogs @catalogs end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
4 5 6 |
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 4 def @messages end |
Instance Method Details
#all_items_synchronized? ⇒ Boolean
6 |
# File 'app/services/catalog/synchronize_catalog_prices.rb', line 6 def all_items_synchronized? = all_items_synchronized |