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