Module: Euston::EventStore::Persistence::Mongodb::MongoCommitId

Defined in:
lib/euston-eventstore/persistence/mongodb/mongo_commit_id.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#commit_sequenceObject (readonly)

Returns the value of attribute commit_sequence.



11
12
13
# File 'lib/euston-eventstore/persistence/mongodb/mongo_commit_id.rb', line 11

def commit_sequence
  @commit_sequence
end

#stream_idObject (readonly)

Returns the value of attribute stream_id.



11
12
13
# File 'lib/euston-eventstore/persistence/mongodb/mongo_commit_id.rb', line 11

def stream_id
  @stream_id
end

Instance Method Details

#initialize(stream_id, commit_sequence) ⇒ Object



6
7
8
9
# File 'lib/euston-eventstore/persistence/mongodb/mongo_commit_id.rb', line 6

def initialize(stream_id, commit_sequence)
  @stream_id = stream_id
  @commit_sequence = commit_sequence
end