class Fog::Compute::ProfitBricks::Regions

Public Instance Methods

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