class Fog::Compute::Ecloud::Locations
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/ecloud/models/locations.rb, line 13 def all data = service.get_organization(href).body[:Locations][:Location] load(data) end
get(uri)
click to toggle source
# File lib/fog/compute/ecloud/models/locations.rb, line 18 def get(uri) if data = service.get_location(uri) new(data.body) end rescue ServiceError => e raise e unless e.status_code == 404 nil end