Class: Fog::HP::BlockStorage::Volumes
- Inherits:
-
Collection
- Object
- Collection
- Fog::HP::BlockStorage::Volumes
- Defined in:
- lib/fog/hp/models/block_storage/volumes.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
12 13 14 15 |
# File 'lib/fog/hp/models/block_storage/volumes.rb', line 12 def all data = service.list_volumes.body['volumes'] load(data) end |
#get(volume_id) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/fog/hp/models/block_storage/volumes.rb', line 17 def get(volume_id) volume = service.get_volume_details(volume_id).body['volume'] new(volume) rescue Fog::HP::BlockStorage::NotFound nil end |