Class: Fog::HP::BlockStorage::BootableVolumes

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/hp/models/block_storage/bootable_volumes.rb

Instance Method Summary collapse

Instance Method Details

#allObject



10
11
12
13
# File 'lib/fog/hp/models/block_storage/bootable_volumes.rb', line 10

def all
  data = service.list_bootable_volumes.body['volumes']
  load(data)
end

#get(volume_id) ⇒ Object



15
16
17
18
19
20
# File 'lib/fog/hp/models/block_storage/bootable_volumes.rb', line 15

def get(volume_id)
  volume = service.get_bootable_volume_details(volume_id).body['volume']
  new(volume)
rescue Fog::HP::BlockStorage::NotFound
  nil
end