Class: Deltacloud::BaseDriver::Feature
- Inherits:
-
Object
- Object
- Deltacloud::BaseDriver::Feature
- Defined in:
- lib/deltacloud/base_driver/features.rb
Overview
A specific feature enabled by a driver (see feature
)
Instance Attribute Summary collapse
-
#decl ⇒ Object
readonly
Returns the value of attribute decl.
Instance Method Summary collapse
- #description ⇒ Object
-
#initialize(decl, &block) ⇒ Feature
constructor
A new instance of Feature.
- #name ⇒ Object
- #operations ⇒ Object
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
#decl ⇒ Object (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
#description ⇒ Object
71 72 73 |
# File 'lib/deltacloud/base_driver/features.rb', line 71 def description decl.description end |
#name ⇒ Object
63 64 65 |
# File 'lib/deltacloud/base_driver/features.rb', line 63 def name decl.name end |
#operations ⇒ Object
67 68 69 |
# File 'lib/deltacloud/base_driver/features.rb', line 67 def operations decl.operations end |