Class: SimpleEventSourcing::AggregateRoot::History
- Inherits:
-
Array
- Object
- Array
- SimpleEventSourcing::AggregateRoot::History
- Defined in:
- lib/simple_event_sourcing/aggregate_root/history.rb
Instance Attribute Summary collapse
-
#aggregate_id ⇒ Object
readonly
Returns the value of attribute aggregate_id.
Instance Method Summary collapse
-
#initialize(aggregate_id) ⇒ History
constructor
A new instance of History.
Constructor Details
#initialize(aggregate_id) ⇒ History
Returns a new instance of History.
6 7 8 |
# File 'lib/simple_event_sourcing/aggregate_root/history.rb', line 6 def initialize(aggregate_id) @aggregate_id = aggregate_id end |
Instance Attribute Details
#aggregate_id ⇒ Object (readonly)
Returns the value of attribute aggregate_id.
4 5 6 |
# File 'lib/simple_event_sourcing/aggregate_root/history.rb', line 4 def aggregate_id @aggregate_id end |