Module: RubyEventStore::ProcessManager::ProcessMethods
- Defined in:
- lib/ruby_event_store/process_manager.rb
Instance Method Summary collapse
Instance Method Details
#call(event) ⇒ Object
14 15 16 17 18 19 |
# File 'lib/ruby_event_store/process_manager.rb', line 14 def call(event) @state = initial_state @id = fetch_id(event) build_state(event) act end |
#initialize(event_store, command_bus) ⇒ Object
9 10 11 12 |
# File 'lib/ruby_event_store/process_manager.rb', line 9 def initialize(event_store, command_bus) @event_store = event_store @command_bus = command_bus end |