Class: CommandTower::Configuration::Registry::InboxPresentations::PresentationDefinition
- Inherits:
-
Object
- Object
- CommandTower::Configuration::Registry::InboxPresentations::PresentationDefinition
- Includes:
- ClassComposer::Generator
- Defined in:
- lib/command_tower/configuration/registry/inbox_presentations/presentation_definition.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#owner ⇒ Object
Returns the value of attribute owner.
Instance Method Summary collapse
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
37 38 39 |
# File 'lib/command_tower/configuration/registry/inbox_presentations/presentation_definition.rb', line 37 def id @id end |
#owner ⇒ Object
Returns the value of attribute owner.
37 38 39 |
# File 'lib/command_tower/configuration/registry/inbox_presentations/presentation_definition.rb', line 37 def owner @owner end |
Instance Method Details
#validate_definition!(key:) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/command_tower/configuration/registry/inbox_presentations/presentation_definition.rb', line 39 def validate_definition!(key:) self.id = key.to_s self.owner = owner&.to_sym || :host self.composer_class = require_present_string!(composer_class, field: "composer_class", key:) self.output_keys = require_present_output_keys!(output_keys, key:) end |