class Fog::Compute::ProfitBricks::Images

Public Instance Methods

all() click to toggle source
# File lib/fog/compute/profit_bricks/models/images.rb, line 9
def all
  load(service.get_all_images.body["getAllImagesResponse"])
end
get(id) click to toggle source
# File lib/fog/compute/profit_bricks/models/images.rb, line 13
def get(id)
  image = service.get_image(id).body["getImageResponse"]
  new(image)
rescue Fog::Errors::NotFound
  nil
end