Sha256: df349a8a982fbbb4dda4aa7c46b8c893843baa401536116a14c4a82c5e72c9c5

Contents?: true

Size: 608 Bytes

Versions: 11

Compression:

Stored size: 608 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 :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

11 entries across 11 versions & 1 rubygems

Version Path
event_sourcery-1.0.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.24.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.23.1 lib/event_sourcery/memory/projector.rb
event_sourcery-0.23.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.22.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.21.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.20.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.19.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.18.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.17.0 lib/event_sourcery/memory/projector.rb
event_sourcery-0.16.1 lib/event_sourcery/memory/projector.rb