Class: DeltaCloud::InstanceState::Transition

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

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Transition) initialize(to, action)

A new instance of Transition



496
497
498
499
# File 'lib/deltacloud.rb', line 496

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

Instance Attribute Details

- (Object) action (readonly)

Returns the value of attribute action



494
495
496
# File 'lib/deltacloud.rb', line 494

def action
  @action
end

- (Object) to (readonly)

Returns the value of attribute to



493
494
495
# File 'lib/deltacloud.rb', line 493

def to
  @to
end

Instance Method Details

- (Boolean) auto?

Returns:

  • (Boolean)


501
502
503
# File 'lib/deltacloud.rb', line 501

def auto?
  @action.nil?
end