Class: DeltaCloud::InstanceState::Transition
- Inherits:
-
Object
- Object
- DeltaCloud::InstanceState::Transition
- Defined in:
- lib/instance_state.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#to ⇒ Object
readonly
Returns the value of attribute to.
Instance Method Summary collapse
- #auto? ⇒ Boolean
-
#initialize(to, action) ⇒ Transition
constructor
A new instance of Transition.
Constructor Details
#initialize(to, action) ⇒ Transition
Returns a new instance of Transition.
17 18 19 20 |
# File 'lib/instance_state.rb', line 17 def initialize(to, action) @to = to @action = action end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
15 16 17 |
# File 'lib/instance_state.rb', line 15 def action @action end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
14 15 16 |
# File 'lib/instance_state.rb', line 14 def to @to end |
Instance Method Details
#auto? ⇒ Boolean
22 23 24 |
# File 'lib/instance_state.rb', line 22 def auto? @action.nil? end |