Class: SandthornSequelProjection::EventStore

Inherits:
Object
  • Object
show all
Defined in:
lib/sandthorn_sequel_projection/event_store.rb

Instance Method Summary collapse

Constructor Details

#initialize(name = :default) ⇒ EventStore

Returns a new instance of EventStore.



3
4
5
# File 'lib/sandthorn_sequel_projection/event_store.rb', line 3

def initialize(name = :default)
  @name = name || :default
end

Instance Method Details

#get_events(*args) ⇒ Object



7
8
9
10
11
# File 'lib/sandthorn_sequel_projection/event_store.rb', line 7

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