class Fog::Compute::ProfitBricks::Regions

Public Instance Methods

all() click to toggle source
# File lib/fog/profitbricks/models/compute/regions.rb, line 10
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 14
def get(id)
    region = service.get_location(id).body['getLocationResponse']
    Excon::Errors
    new(region)
rescue Excon::Errors::NotFound
    nil
end