Sha256: 89a3c99054e635fc6377d0c4e4eaadd5d6268d327bb375a8bfa827b07d9644b6
Contents?: true
Size: 669 Bytes
Versions: 1
Compression:
Stored size: 669 Bytes
Contents
module EventSourcery module Memory module Projector def self.included(base) base.include(EventSourcery::EventProcessing::EventStreamProcessor) base.include(InstanceMethods) base.class_eval do alias_method :project, :process class << self alias_method :project, :process alias_method :projects_events, :processes_events alias_method :projector_name, :processor_name end end end module InstanceMethods def initialize(tracker: EventSourcery::Memory.config.event_tracker) @tracker = tracker end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
event_sourcery-0.15.0 | lib/event_sourcery/memory/projector.rb |