Class: SimpleEventSourcing::AggregateRoot::History

Inherits:
Array
  • Object
show all
Defined in:
lib/simple_event_sourcing/aggregate_root/history.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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