Class: Interaktor::Error::InvalidMethodForStateError

Inherits:
Base
  • Object
show all
Defined in:
lib/interaktor/error/invalid_method_for_state_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(interaktor, message) ⇒ InvalidMethodForStateError

Returns a new instance of InvalidMethodForStateError.

Parameters:

  • interaktor (Class)
  • method (Symbol)


6
7
8
9
# File 'lib/interaktor/error/invalid_method_for_state_error.rb', line 6

def initialize(interaktor, message)
  super(interaktor)
  @message = message
end

Instance Attribute Details

#messageObject (readonly)

Returns the value of attribute message.



2
3
4
# File 'lib/interaktor/error/invalid_method_for_state_error.rb', line 2

def message
  @message
end