Class: RubyEventStore::InMemoryRepository::EventInStream

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_event_store/in_memory_repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(event_id, position) ⇒ EventInStream

Returns a new instance of EventInStream.



18
19
20
21
# File 'lib/ruby_event_store/in_memory_repository.rb', line 18

def initialize(event_id, position)
  @event_id = event_id
  @position = position
end

Instance Attribute Details

#event_idObject (readonly)

Returns the value of attribute event_id.



23
24
25
# File 'lib/ruby_event_store/in_memory_repository.rb', line 23

def event_id
  @event_id
end

#positionObject (readonly)

Returns the value of attribute position.



23
24
25
# File 'lib/ruby_event_store/in_memory_repository.rb', line 23

def position
  @position
end