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.
32 33 34 35 |
# File 'lib/instance_state.rb', line 32 def initialize(to, action) @to = to @action = action end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
30 31 32 |
# File 'lib/instance_state.rb', line 30 def action @action end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
29 30 31 |
# File 'lib/instance_state.rb', line 29 def to @to end |
Instance Method Details
#auto? ⇒ Boolean
37 38 39 |
# File 'lib/instance_state.rb', line 37 def auto? @action.nil? end |