Class: Catalog::CreateCatalogItem::Result
- Inherits:
-
Data
- Object
- Data
- Catalog::CreateCatalogItem::Result
- Defined in:
- app/services/catalog/create_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.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
- #catalog_item_created? ⇒ Boolean
-
#initialize(catalog_item: nil, catalog_item_created: nil, messages: []) ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize(catalog_item: nil, catalog_item_created: nil, messages: []) ⇒ Result
Returns a new instance of Result.
3 |
# File 'app/services/catalog/create_catalog_item.rb', line 3 def initialize(catalog_item: nil, catalog_item_created: nil, messages: []) = super |
Instance Attribute Details
#catalog_item ⇒ Object (readonly)
Returns the value of attribute catalog_item
2 3 4 |
# File 'app/services/catalog/create_catalog_item.rb', line 2 def catalog_item @catalog_item end |
#catalog_item_created ⇒ Object (readonly)
Returns the value of attribute catalog_item_created
2 3 4 |
# File 'app/services/catalog/create_catalog_item.rb', line 2 def catalog_item_created @catalog_item_created end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages
2 3 4 |
# File 'app/services/catalog/create_catalog_item.rb', line 2 def @messages end |
Instance Method Details
#catalog_item_created? ⇒ Boolean
4 |
# File 'app/services/catalog/create_catalog_item.rb', line 4 def catalog_item_created? = catalog_item_created |