Sha256: af871983689bdd49ad59a1573fe144200d99882f125f8546218ef6a9e0a92c8f

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

module Eventus
  autoload :Serializers, 'eventus/serializers'
  autoload :AggregateRoot, 'eventus/aggregate_root'
  autoload :Dispatchers, 'eventus/dispatchers'
  autoload :Persistence, 'eventus/persistence'
  autoload :VERSION, 'eventus/version'

  class << self

    def persistence
      @persistence ||= Eventus::Persistence::InMemory.new
    end

    def persistence=(val)
      @persistence = val
    end

    def dispatcher
      @dispatcher ||= Eventus::Dispatchers::Synchronous.new(persistence)
    end

    def dispatcher=(val)
      @dispatcher = val
    end
  end
end

%w{stream errors}.each { |r| require "eventus/#{r}" }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eventus-0.3.0 lib/eventus.rb