Class: Catalog::AssignCatalogItem::Result
- Inherits:
-
Data
- Object
- Data
- Catalog::AssignCatalogItem::Result
- Defined in:
- app/services/catalog/assign_catalog_item.rb
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.
5 |
# File 'app/services/catalog/assign_catalog_item.rb', line 5 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
4 5 6 |
# File 'app/services/catalog/assign_catalog_item.rb', line 4 def catalog_item @catalog_item end |
#catalog_item_created ⇒ Object (readonly)
Returns the value of attribute catalog_item_created
4 5 6 |
# File 'app/services/catalog/assign_catalog_item.rb', line 4 def catalog_item_created @catalog_item_created end |
#item ⇒ Object (readonly)
Returns the value of attribute item
4 5 6 |
# File 'app/services/catalog/assign_catalog_item.rb', line 4 def item @item end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
4 5 6 |
# File 'app/services/catalog/assign_catalog_item.rb', line 4 def @messages end |
Instance Method Details
#catalog_item_created? ⇒ Boolean
6 |
# File 'app/services/catalog/assign_catalog_item.rb', line 6 def catalog_item_created? = catalog_item_created |