Class: DeltaCloud::InstanceState::State
- Inherits:
-
Object
- Object
- DeltaCloud::InstanceState::State
- Defined in:
- lib/instance_state.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#transitions ⇒ Object
readonly
Returns the value of attribute transitions.
Instance Method Summary collapse
-
#initialize(name) ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize(name) ⇒ State
23 24 25 |
# File 'lib/instance_state.rb', line 23 def initialize(name) @name, @transitions = name, [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
20 21 22 |
# File 'lib/instance_state.rb', line 20 def name @name end |
#transitions ⇒ Object (readonly)
Returns the value of attribute transitions.
21 22 23 |
# File 'lib/instance_state.rb', line 21 def transitions @transitions end |