Class: SimplerStateMachine::Transition
- Inherits:
-
Object
- Object
- SimplerStateMachine::Transition
- Defined in:
- lib/simpler_state_machine/transition.rb
Overview
:nodoc
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Transition
constructor
A new instance of Transition.
Constructor Details
#initialize(options = {}) ⇒ Transition
Returns a new instance of Transition.
7 8 9 10 11 |
# File 'lib/simpler_state_machine/transition.rb', line 7 def initialize( = {}) .assert_valid_keys :from, :to @to = [:to] @from = [:from] end |
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from.
5 6 7 |
# File 'lib/simpler_state_machine/transition.rb', line 5 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
5 6 7 |
# File 'lib/simpler_state_machine/transition.rb', line 5 def to @to end |