Class: Deltacloud::BaseDriver::Feature

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

Overview

A specific feature enabled by a driver (see feature)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decl, &block) ⇒ Feature

Returns a new instance of Feature.



58
59
60
61
# File 'lib/deltacloud/base_driver/features.rb', line 58

def initialize(decl, &block)
  @decl = decl
  instance_eval &block if block_given?
end

Instance Attribute Details

#declObject (readonly)

Returns the value of attribute decl.



56
57
58
# File 'lib/deltacloud/base_driver/features.rb', line 56

def decl
  @decl
end

Instance Method Details

#descriptionObject



71
72
73
# File 'lib/deltacloud/base_driver/features.rb', line 71

def description
  decl.description
end

#nameObject



63
64
65
# File 'lib/deltacloud/base_driver/features.rb', line 63

def name
  decl.name
end

#operationsObject



67
68
69
# File 'lib/deltacloud/base_driver/features.rb', line 67

def operations
  decl.operations
end