class EventSourcing::Command::Bus

Public Class Methods

new(aggregate_manager) click to toggle source
# File lib/event_sourcing/command/bus.rb, line 7
def initialize(aggregate_manager)
  @aggregate_manager = aggregate_manager
end

Public Instance Methods

on_message(command) click to toggle source
# File lib/event_sourcing/command/bus.rb, line 11
def on_message(command)
  command.execute(@aggregate_manager)
end