class Fog::Compute::ProfitBricks::Locations

Public Instance Methods

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

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

  new(flatten(location))
end