Sha256: 4b8beb3ff965403ece5af085aaaa81da5364df3e77103d452b8ed4068c24f230

Contents?: true

Size: 640 Bytes

Versions: 8

Compression:

Stored size: 640 Bytes

Contents

module Euston
  module EventStore
    # Represents a materialized view of a stream at specific revision.
    class Snapshot
      def initialize(stream_id, stream_revision, payload)
        @stream_id = stream_id
        @stream_revision = stream_revision
        @payload = payload
      end

      # Gets the value which uniquely identifies the stream to which the snapshot applies.
      attr_reader :stream_id

      # Gets the position at which the snapshot applies.
      attr_reader :stream_revision

      # Gets the snapshot or materialized view of the stream at the revision indicated.
      attr_reader :payload
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
euston-eventstore-1.0.4-java lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.4 lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.3-java lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.3 lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.2-java lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.2 lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.1 lib/euston-eventstore/snapshot.rb
euston-eventstore-1.0.0 lib/euston-eventstore/snapshot.rb