class EventSourcing::Aggregate::Wrapper

Public Instance Methods

method_missing(name, *args) click to toggle source
# File lib/event_sourcing/aggregate/wrapper.rb, line 8
def method_missing(name, *args)
  manager.tell(wrap(name, args))
end

Protected Instance Methods

wrap(method, args) click to toggle source
# File lib/event_sourcing/aggregate/wrapper.rb, line 13
def wrap(method, args)
  Message.new(aggregate, id, [method] + args)
end