Class: RailsSimpleEventSourcing::CommandHandlers::Base
- Inherits:
-
Object
- Object
- RailsSimpleEventSourcing::CommandHandlers::Base
- Defined in:
- lib/rails_simple_event_sourcing/command_handlers/base.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(command:) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(command:) ⇒ Base
Returns a new instance of Base.
6 7 8 |
# File 'lib/rails_simple_event_sourcing/command_handlers/base.rb', line 6 def initialize(command:) @command = command end |
Instance Method Details
#call ⇒ Object
10 11 12 |
# File 'lib/rails_simple_event_sourcing/command_handlers/base.rb', line 10 def call raise NoMethodError, "You must implement #{self.class}#call" end |