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.



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

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.



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

def event_id
  @event_id
end

#positionObject (readonly)

Returns the value of attribute position.



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

def position
  @position
end