Class: DataMapper::Is::StateMachine::Data::State
- Inherits:
-
Object
- Object
- DataMapper::Is::StateMachine::Data::State
- Defined in:
- lib/dm-is-state_machine/is/data/state.rb
Instance Attribute Summary collapse
-
#machine ⇒ Object
readonly
Returns the value of attribute machine.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, machine, options = {}) ⇒ State
constructor
A new instance of State.
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, = {}) @name = name @options = @machine = machine end |
Instance Attribute Details
#machine ⇒ Object (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 |
#name ⇒ Object (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 |
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/dm-is-state_machine/is/data/state.rb', line 8 def @options end |