Class: DataMapper::Is::StateMachine::Data::Event

### Home Classes Methods

### In Files

- lib/dm-is-state_machine/is/data/event.rb

### Parent

Object

### Methods

- ::new
- #add_transition

### Files

- LICENSE
- README.rdoc

### Class/Module Index

Quicksearch

- DataMapper
- DataMapper::Is
- DataMapper::Is::StateMachine
- DataMapper::Is::StateMachine::Data
- DataMapper::Is::StateMachine::Data::Event
- DataMapper::Is::StateMachine::Data::Machine
- DataMapper::Is::StateMachine::Data::State
- DataMapper::Is::StateMachine::DuplicateStates
- DataMapper::Is::StateMachine::EventConfusion
- DataMapper::Is::StateMachine::EventDsl
- DataMapper::Is::StateMachine::InstanceMethods
- DataMapper::Is::StateMachine::InvalidContext
- DataMapper::Is::StateMachine::InvalidEvent
- DataMapper::Is::StateMachine::InvalidState
- DataMapper::Is::StateMachine::NoInitialState
- DataMapper::Is::StateMachine::StateDsl

No matching classes.

# DataMapper::Is::StateMachine::Data::Event

### Attributes

machine[R]
name[R]
transitions[R]

### Public Class Methods

new(name, machine) click to toggle source

    # File lib/dm-is-state_machine/is/data/event.rb, line 10
    def initialize(name, machine)
      @name        = name
      @machine     = machine
      @transitions = []
    end

### Public Instance Methods

add_transition(from, to) click to toggle source

    # File lib/dm-is-state_machine/is/data/event.rb, line 16
    def add_transition(from, to)
      @transitions << { :from => from, :to => to }
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.