Sha256: 8b083d4834f95d9ccb632f80a5de88324c2bf2e2bcb1c4d27fbd15fa172403c9

Contents?: true

Size: 277 Bytes

Versions: 2

Compression:

Stored size: 277 Bytes

Contents

module SandthornSequelProjection
  class EventStore
    def initialize(name = :default)
      @name = name || :default
    end

    def get_events(*args)
      keywords = args.pop || {}
      keywords[:event_store] = @name
      Sandthorn.get_events(keywords)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sandthorn_sequel_projection-0.0.4 lib/sandthorn_sequel_projection/event_store.rb
sandthorn_sequel_projection-0.0.3 lib/sandthorn_sequel_projection/event_store.rb