Class: Deltacloud::Client::InstanceState::Transition
- Inherits:
-
Object
- Object
- Deltacloud::Client::InstanceState::Transition
- Defined in:
- lib/deltacloud/client/models/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.
41 42 43 44 |
# File 'lib/deltacloud/client/models/instance_state.rb', line 41 def initialize(to, action) @to = to @action = action end |
Instance Attribute Details
#action ⇒ Object (readonly)
Returns the value of attribute action.
39 40 41 |
# File 'lib/deltacloud/client/models/instance_state.rb', line 39 def action @action end |
#to ⇒ Object (readonly)
Returns the value of attribute to.
38 39 40 |
# File 'lib/deltacloud/client/models/instance_state.rb', line 38 def to @to end |
Instance Method Details
#auto? ⇒ Boolean
46 47 48 |
# File 'lib/deltacloud/client/models/instance_state.rb', line 46 def auto? @action.nil? end |