Exception: CodinRep::EmployeeCommand::UnknownEmployeeOperation

Inherits:
StandardError
  • Object
show all
Defined in:
lib/codin_rep/employee_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(operation_type) ⇒ UnknownEmployeeOperation



28
29
30
# File 'lib/codin_rep/employee_command.rb', line 28

def initialize(operation_type)
  @operation_type = operation_type
end

Instance Method Details

#messageObject



32
33
34
# File 'lib/codin_rep/employee_command.rb', line 32

def message
  message = "Unknown employee operation type '#{@operation_type}'."
end