Class: Catalog::AssignCatalogItem::Result
- Inherits:
-
Data
- Object
- Data
- Catalog::AssignCatalogItem::Result
- Defined in:
- app/services/catalog/assign_catalog_item.rb
Overview
Service object: result.
Instance Attribute Summary collapse
-
#catalog_item ⇒ Object
readonly
Returns the value of attribute catalog_item.
-
#catalog_item_created ⇒ Object
readonly
Returns the value of attribute catalog_item_created.
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #catalog_item_created? ⇒ Boolean
-
#initialize(item: nil, catalog_item: nil, catalog_item_created: nil, messages: []) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(item: nil, catalog_item: nil, catalog_item_created: nil, messages: []) ⇒ Result
Returns a new instance of Result.
7 |
# File 'app/services/catalog/assign_catalog_item.rb', line 7 def initialize(item: nil, catalog_item: nil, catalog_item_created: nil, messages: []) = super |
Instance Attribute Details
#catalog_item ⇒ Object (readonly)
Returns the value of attribute catalog_item
6 7 8 |
# File 'app/services/catalog/assign_catalog_item.rb', line 6 def catalog_item @catalog_item end |
#catalog_item_created ⇒ Object (readonly)
Returns the value of attribute catalog_item_created
6 7 8 |
# File 'app/services/catalog/assign_catalog_item.rb', line 6 def catalog_item_created @catalog_item_created end |
#item ⇒ Object (readonly)
Returns the value of attribute item
6 7 8 |
# File 'app/services/catalog/assign_catalog_item.rb', line 6 def item @item end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
6 7 8 |
# File 'app/services/catalog/assign_catalog_item.rb', line 6 def @messages end |
Instance Method Details
#catalog_item_created? ⇒ Boolean
8 |
# File 'app/services/catalog/assign_catalog_item.rb', line 8 def catalog_item_created? = catalog_item_created |