Class: Deltacloud::Client::InstanceState::Transition

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#actionObject (readonly)

Returns the value of attribute action.



39
40
41
# File 'lib/deltacloud/client/models/instance_state.rb', line 39

def action
  @action
end

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

Returns:

  • (Boolean)


46
47
48
# File 'lib/deltacloud/client/models/instance_state.rb', line 46

def auto?
  @action.nil?
end