Class: SandthornSequelProjection::EventStore
- Inherits:
-
Object
- Object
- SandthornSequelProjection::EventStore
- Defined in:
- lib/sandthorn_sequel_projection/event_store.rb
Instance Method Summary collapse
- #get_events(*args) ⇒ Object
-
#initialize(name = :default) ⇒ EventStore
constructor
A new instance of EventStore.
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 |