Class: RubyEventStore::InMemoryRepository::EventInStream
- Inherits:
-
Object
- Object
- RubyEventStore::InMemoryRepository::EventInStream
- Defined in:
- lib/ruby_event_store/in_memory_repository.rb
Instance Attribute Summary collapse
-
#event_id ⇒ Object
readonly
Returns the value of attribute event_id.
-
#position ⇒ Object
readonly
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(event_id, position) ⇒ EventInStream
constructor
A new instance of EventInStream.
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_id ⇒ Object (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 |
#position ⇒ Object (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 |