class Fog::Compute::ProfitBricks::Regions

Public Instance Methods

all() click to toggle source
# File lib/fog/compute/profit_bricks/models/regions.rb, line 9
def all()
  load(service.get_all_locations.body["getAllLocationsResponse"])
end
get(id) click to toggle source
# File lib/fog/compute/profit_bricks/models/regions.rb, line 13
def get(id)
  region = service.get_location(id).body["getLocationResponse"]
  Excon::Errors
  new(region)
rescue Excon::Errors::NotFound
  nil
end