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.



32
33
34
35
# File 'lib/instance_state.rb', line 32

def initialize(to, action)
  @to = to
  @action = action
end

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



30
31
32
# File 'lib/instance_state.rb', line 30

def action
  @action
end

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

Returns:

  • (Boolean)


37
38
39
# File 'lib/instance_state.rb', line 37

def auto?
  @action.nil?
end