Class: Deltacloud::BaseDriver::Operation
- Inherits:
-
Object
- Object
- Deltacloud::BaseDriver::Operation
- Includes:
- Validation
- Defined in:
- lib/deltacloud/base_driver/features.rb
Overview
An operation on a collection like cretae or show. Features can add parameters to operations
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, &block) ⇒ Operation
constructor
A new instance of Operation.
Methods included from Validation
#add_params, #each_param, #param, #params, #validate
Constructor Details
#initialize(name, &block) ⇒ Operation
Returns a new instance of Operation.
19 20 21 22 23 |
# File 'lib/deltacloud/base_driver/features.rb', line 19 def initialize(name, &block) @name = name @params = {} instance_eval &block end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
15 16 17 |
# File 'lib/deltacloud/base_driver/features.rb', line 15 def name @name end |