class Fog::Compute::IBM::Locations

Public Instance Methods

all() click to toggle source
# File lib/fog/ibm/models/compute/locations.rb, line 10
def all
  load(service.list_locations.body['locations'])
end
get(location_id) click to toggle source
# File lib/fog/ibm/models/compute/locations.rb, line 14
def get(location_id)
  begin
    new(service.get_location(location_id).body)
  rescue Fog::Compute::IBM::NotFound
    nil
  end
end