Methods

Class/Module Index [+]

Quicksearch

Fog::Rackspace::BlockStorage::Snapshots

Public Instance Methods

all() click to toggle source
# File lib/fog/rackspace/models/block_storage/snapshots.rb, line 11
def all
  data = service.list_snapshots.body['snapshots']
  load(data)
end
get(snapshot_id) click to toggle source
# File lib/fog/rackspace/models/block_storage/snapshots.rb, line 16
def get(snapshot_id)
  data = service.get_snapshot(snapshot_id).body['snapshot']
  new(data)
rescue Fog::Rackspace::BlockStorage::NotFound
  nil
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.