Class: Yes::Core::Aggregate::SharedReadModelRebuilder::EventWithAggregate
- Inherits:
-
Struct
- Object
- Struct
- Yes::Core::Aggregate::SharedReadModelRebuilder::EventWithAggregate
- Defined in:
- lib/yes/core/aggregate/shared_read_model_rebuilder.rb
Overview
Value object to hold event data with aggregate information
Instance Attribute Summary collapse
-
#aggregate ⇒ Object
Returns the value of attribute aggregate.
-
#event ⇒ Object
Returns the value of attribute event.
Instance Method Summary collapse
-
#created_at ⇒ Time
The creation timestamp of the event.
Instance Attribute Details
#aggregate ⇒ Object
Returns the value of attribute aggregate
13 14 15 |
# File 'lib/yes/core/aggregate/shared_read_model_rebuilder.rb', line 13 def aggregate @aggregate end |
#event ⇒ Object
Returns the value of attribute event
13 14 15 |
# File 'lib/yes/core/aggregate/shared_read_model_rebuilder.rb', line 13 def event @event end |
Instance Method Details
#created_at ⇒ Time
Returns The creation timestamp of the event.
15 |
# File 'lib/yes/core/aggregate/shared_read_model_rebuilder.rb', line 15 delegate :created_at, to: :event |