class Fog::HP::BlockStorage::Snapshots
Public Instance Methods
all()
click to toggle source
# File lib/fog/hp/models/block_storage/snapshots.rb, line 10 def all data = service.list_snapshots.body['snapshots'] load(data) end
get(snapshot_id)
click to toggle source
# File lib/fog/hp/models/block_storage/snapshots.rb, line 15 def get(snapshot_id) if snapshot = service.get_snapshot_details(snapshot_id).body['snapshot'] new(snapshot) end rescue Fog::HP::BlockStorage::NotFound nil end