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 26 def event 27 @event.name 28 end
from_name()
click to toggle source
The name for the current state
# File lib/state_machine/transition.rb 36 def from_name 37 @from_state.name 38 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 31 def qualified_event 32 @event.qualified_name 33 end
qualified_from_name()
click to toggle source
The fully-qualified name for the current state
# File lib/state_machine/transition.rb 41 def qualified_from_name 42 @from_state.qualified_name 43 end