Class: Deltacloud::BaseDriver::Operation

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#nameObject (readonly)

Returns the value of attribute name.



15
16
17
# File 'lib/deltacloud/base_driver/features.rb', line 15

def name
  @name
end