Class: Catalog::UpdateCatalogItem::RESULT
- Inherits:
-
Data
- Object
- Data
- Catalog::UpdateCatalogItem::RESULT
- Defined in:
- app/services/catalog/update_catalog_item.rb
Instance Attribute Summary collapse
-
#catalog_item ⇒ Object
readonly
Returns the value of attribute catalog_item.
-
#catalog_item_updated ⇒ Object
readonly
Returns the value of attribute catalog_item_updated.
-
#changes ⇒ Object
readonly
Returns the value of attribute changes.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #catalog_item_updated? ⇒ Boolean
-
#initialize(catalog_item: nil, catalog_item_updated: nil, changes: nil, messages: []) ⇒ RESULT
constructor
A new instance of RESULT.
Constructor Details
#initialize(catalog_item: nil, catalog_item_updated: nil, changes: nil, messages: []) ⇒ RESULT
Returns a new instance of RESULT.
3 |
# File 'app/services/catalog/update_catalog_item.rb', line 3 def initialize(catalog_item: nil, catalog_item_updated: nil, changes: nil, messages: []) = super |
Instance Attribute Details
#catalog_item ⇒ Object (readonly)
Returns the value of attribute catalog_item
2 3 4 |
# File 'app/services/catalog/update_catalog_item.rb', line 2 def catalog_item @catalog_item end |
#catalog_item_updated ⇒ Object (readonly)
Returns the value of attribute catalog_item_updated
2 3 4 |
# File 'app/services/catalog/update_catalog_item.rb', line 2 def catalog_item_updated @catalog_item_updated end |
#changes ⇒ Object (readonly)
Returns the value of attribute changes
2 3 4 |
# File 'app/services/catalog/update_catalog_item.rb', line 2 def changes @changes end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
2 3 4 |
# File 'app/services/catalog/update_catalog_item.rb', line 2 def @messages end |
Instance Method Details
#catalog_item_updated? ⇒ Boolean
4 |
# File 'app/services/catalog/update_catalog_item.rb', line 4 def catalog_item_updated? = catalog_item_updated |