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
Returns a new instance of State.
8 9 10 |
# File 'lib/instance_state.rb', line 8 def initialize(name) @name, @transitions = name, [] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/instance_state.rb', line 5 def name @name end |
#transitions ⇒ Object (readonly)
Returns the value of attribute transitions.
6 7 8 |
# File 'lib/instance_state.rb', line 6 def transitions @transitions end |