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



432
433
434
435
# File 'lib/deltacloud.rb', line 432

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

Instance Attribute Details

- (Object) action (readonly)

Returns the value of attribute action



430
431
432
# File 'lib/deltacloud.rb', line 430

def action
  @action
end

- (Object) to (readonly)

Returns the value of attribute to



429
430
431
# File 'lib/deltacloud.rb', line 429

def to
  @to
end

Instance Method Details

- (Boolean) auto?

Returns:

  • (Boolean)


437
438
439
# File 'lib/deltacloud.rb', line 437

def auto?
  @action.nil?
end