# File lib/fog/ecloud/models/compute/associations.rb, line 11 def all data = service.get_associations(href).body if data[:Associations] data = data[:Associations] if data.is_a?(String) && data.empty? data = [] elsif data.is_a?(Hash) data = data[:Association] end end load(data) end
# File lib/fog/ecloud/models/compute/associations.rb, line 24 def get(uri) if data = service.get_association(uri) new(data.body) end rescue Fog::Errors::NotFound nil end