Class: CommandTower::Messaging::Preferences::CatalogCategoryResult
- Inherits:
-
Data
- Object
- Data
- CommandTower::Messaging::Preferences::CatalogCategoryResult
- Defined in:
- app/services/command_tower/messaging/preferences/catalog_category_result.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#notifications ⇒ Object
readonly
Returns the value of attribute notifications.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
Class Method Summary collapse
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description
6 7 8 |
# File 'app/services/command_tower/messaging/preferences/catalog_category_result.rb', line 6 def description @description end |
#key ⇒ Object (readonly)
Returns the value of attribute key
6 7 8 |
# File 'app/services/command_tower/messaging/preferences/catalog_category_result.rb', line 6 def key @key end |
#label ⇒ Object (readonly)
Returns the value of attribute label
6 7 8 |
# File 'app/services/command_tower/messaging/preferences/catalog_category_result.rb', line 6 def label @label end |
#notifications ⇒ Object (readonly)
Returns the value of attribute notifications
6 7 8 |
# File 'app/services/command_tower/messaging/preferences/catalog_category_result.rb', line 6 def notifications @notifications end |
#order ⇒ Object (readonly)
Returns the value of attribute order
6 7 8 |
# File 'app/services/command_tower/messaging/preferences/catalog_category_result.rb', line 6 def order @order end |
Class Method Details
.build(key:, label:, description:, order:, notifications:) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'app/services/command_tower/messaging/preferences/catalog_category_result.rb', line 7 def self.build(key:, label:, description:, order:, notifications:) new( key: key.to_s, label: label.to_s, description:, order: Integer(order), notifications: Array(notifications).freeze, ).freeze end |