Class: HP::Cloud::Volumes
- Inherits:
-
FogCollection
- Object
- FogCollection
- HP::Cloud::Volumes
- Defined in:
- lib/hpcloud/volumes.rb
Instance Attribute Summary
Attributes inherited from FogCollection
Instance Method Summary collapse
- #create(item = nil) ⇒ Object
-
#initialize ⇒ Volumes
constructor
A new instance of Volumes.
Methods inherited from FogCollection
#empty?, #filter, #get, #get_array, #matches, #unique
Constructor Details
#initialize ⇒ Volumes
Returns a new instance of Volumes.
28 29 30 31 |
# File 'lib/hpcloud/volumes.rb', line 28 def initialize super("volume") @items = @connection.block.volumes end |
Instance Method Details
#create(item = nil) ⇒ Object
33 34 35 |
# File 'lib/hpcloud/volumes.rb', line 33 def create(item = nil) return VolumeHelper.new(@connection, item) end |