class Fog::Compute::Gridscale::Locations

Public Instance Methods

all(filters={}) click to toggle source
# File lib/fog/compute/gridscale/models/locations.rb, line 10
def all(filters={})
  data = service.locations_get(filters)
  droplets = data.body["locations"].values
  load(droplets)
end
get(object_uuid) click to toggle source
# File lib/fog/compute/gridscale/models/locations.rb, line 16
def get(object_uuid)
  location = service.location_get(object_uuid).body
  new(location) if location
rescue Fog::Errors::NotFound
  nil
end