Class: RailsSimpleEventSourcing::CommandHandlerRegistry
- Inherits:
-
Object
- Object
- RailsSimpleEventSourcing::CommandHandlerRegistry
- Defined in:
- lib/rails_simple_event_sourcing/command_handler_registry.rb
Class Method Summary collapse
Class Method Details
.handler_for(command_class) ⇒ Object
11 12 13 |
# File 'lib/rails_simple_event_sourcing/command_handler_registry.rb', line 11 def self.handler_for(command_class) @registry[command_class] end |
.register(command_class, handler_class) ⇒ Object
7 8 9 |
# File 'lib/rails_simple_event_sourcing/command_handler_registry.rb', line 7 def self.register(command_class, handler_class) @registry[command_class] = handler_class end |