class Fog::Compute::ProfitBricks::Images

Public Instance Methods

all() click to toggle source
# File lib/fog/profitbricks/models/compute/images.rb, line 11
def all
  result = service.get_all_images

  load(result.body['items'].each {|img| flatten(img)})
end
get(id) click to toggle source
# File lib/fog/profitbricks/models/compute/images.rb, line 17
def get(id)
  image = service.get_image(id).body

  Excon::Errors
  new(flatten(image))
rescue Excon::Errors::NotFound
  nil
end