class Fog::Compute::ProfitBricks::Snapshots
Public Instance Methods
all()
click to toggle source
# File lib/fog/profitbricks/models/compute/snapshots.rb, line 11 def all result = service.get_all_snapshots load(result.body['items'].each { |snapshot| flatten(snapshot) }) end
get(id)
click to toggle source
# File lib/fog/profitbricks/models/compute/snapshots.rb, line 17 def get(id) snapshot = service.get_snapshot(id).body new(flatten(snapshot)) end