Class: DeltaCloud::InstanceState::Transition

Inherits:
Object
  • Object
show all
Defined in:
lib/instance_state.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



15
16
17
# File 'lib/instance_state.rb', line 15

def action
  @action
end

#toObject (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

Returns:

  • (Boolean)


22
23
24
# File 'lib/instance_state.rb', line 22

def auto?
  @action.nil?
end