class StateMachine::InvalidTransition
An invalid transition was attempted
Attributes
from[R]
The current state value for the machine
machine[R]
The machine attempting to be transitioned
Public Instance Methods
event()
click to toggle source
The event that triggered the failed transition
# File lib/state_machine/transition.rb, line 26 def event @event.name end
from_name()
click to toggle source
The name for the current state
# File lib/state_machine/transition.rb, line 36 def from_name @from_state.name end
qualified_event()
click to toggle source
The fully-qualified name of the event that triggered the failed transition
# File lib/state_machine/transition.rb, line 31 def qualified_event @event.qualified_name end
qualified_from_name()
click to toggle source
The fully-qualified name for the current state
# File lib/state_machine/transition.rb, line 41 def qualified_from_name @from_state.qualified_name end