Class: RailsSimpleEventSourcing::CommandHandlers::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_simple_event_sourcing/command_handlers/base.rb

Instance Method Summary collapse

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

#callObject

Raises:

  • (NoMethodError)


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