### Home Classes Methods

### In Files

- lib/state_machine/transition.rb

### Parent

StateMachine::Error

### Methods

- #event
- #from_name
- #qualified_event
- #qualified_from_name

### Files

- LICENSE

### Class/Module Index

Quicksearch

- StateMachine
- StateMachine::AllMatcher
- StateMachine::Assertions
- StateMachine::AttributeTransitionCollection
- StateMachine::BlacklistMatcher
- StateMachine::Branch
- StateMachine::Callback
- StateMachine::ClassMethods
- StateMachine::Error
- StateMachine::EvalHelpers
- StateMachine::Event
- StateMachine::EventCollection
- StateMachine::Graph
- StateMachine::InstanceMethods
- StateMachine::IntegrationNotFound
- StateMachine::Integrations
- StateMachine::Integrations::ActiveModel
- StateMachine::Integrations::ActiveModel::Observer
- StateMachine::Integrations::ActiveModel::ObserverUpdate
- StateMachine::Integrations::ActiveRecord
- StateMachine::Integrations::Base
- StateMachine::Integrations::Base::ClassMethods
- StateMachine::Integrations::DataMapper
- StateMachine::Integrations::DataMapper::Observer
- StateMachine::Integrations::MongoMapper
- StateMachine::Integrations::Mongoid
- StateMachine::Integrations::Sequel
- StateMachine::InvalidEvent
- StateMachine::InvalidParallelTransition
- StateMachine::InvalidTransition
- StateMachine::LoopbackMatcher
- StateMachine::Machine
- StateMachine::MachineCollection
- StateMachine::MacroMethods
- StateMachine::Matcher
- StateMachine::MatcherHelpers
- StateMachine::NodeCollection
- StateMachine::Path
- StateMachine::PathCollection
- StateMachine::RailsEngine
- StateMachine::State
- StateMachine::StateCollection
- StateMachine::StateContext
- StateMachine::Transition
- StateMachine::TransitionCollection
- StateMachine::WhitelistMatcher
- StateMachine::YARD
- StateMachine::YARD::Handlers
- StateMachine::YARD::Handlers::Base
- StateMachine::YARD::Handlers::Event
- StateMachine::YARD::Handlers::Machine
- StateMachine::YARD::Handlers::State
- StateMachine::YARD::Handlers::Transition
- Object

No matching classes.

# 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

[Validate]

Generated with the Darkfish Rdoc Generator 2.