Class: Hecks::Runtime::Routing::Envelope
- Inherits:
-
Struct
- Object
- Struct
- Hecks::Runtime::Routing::Envelope
- Defined in:
- lib/hecks/runtime/routing.rb
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
Returns the value of attribute aggregate.
-
#entities ⇒ Object
Returns the value of attribute entities.
Instance Method Summary collapse
-
#initialize(aggregate:, entities: []) ⇒ Envelope
constructor
A new instance of Envelope.
Constructor Details
#initialize(aggregate:, entities: []) ⇒ Envelope
Returns a new instance of Envelope.
11 12 13 14 |
# File 'lib/hecks/runtime/routing.rb', line 11 def initialize(aggregate:, entities: []) super(aggregate: aggregate.to_s, entities: Array(entities).map(&:to_s).freeze) freeze end |
Instance Attribute Details
#aggregate ⇒ Object
Returns the value of attribute aggregate
10 11 12 |
# File 'lib/hecks/runtime/routing.rb', line 10 def aggregate @aggregate end |
#entities ⇒ Object
Returns the value of attribute entities
10 11 12 |
# File 'lib/hecks/runtime/routing.rb', line 10 def entities @entities end |