Methods

Class/Module Index [+]

Quicksearch

Fog::HP::BlockStorage::Snapshots

Public Instance Methods

all() click to toggle source
# File lib/fog/hp/models/block_storage/snapshots.rb, line 12
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 17
def get(snapshot_id)
  if snapshot = service.get_snapshot_details(snapshot_id).body['snapshot']
    new(snapshot)
  end
rescue Fog::HP::BlockStorage::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.