Class: DataMapper::Is::StateMachine::Data::State

Inherits:
Object
  • Object
show all
Defined in:
lib/dm-is-state_machine/is/data/state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, machine, options = {}) ⇒ State

Returns a new instance of State.



10
11
12
13
14
# File 'lib/dm-is-state_machine/is/data/state.rb', line 10

def initialize(name, machine, options = {})
  @name    = name
  @options = options
  @machine = machine
end

Instance Attribute Details

#machineObject (readonly)

Returns the value of attribute machine.



8
9
10
# File 'lib/dm-is-state_machine/is/data/state.rb', line 8

def machine
  @machine
end

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/dm-is-state_machine/is/data/state.rb', line 8

def name
  @name
end

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/dm-is-state_machine/is/data/state.rb', line 8

def options
  @options
end