Sha256: a7647c2e2b0b16eb87cdf65ebe8ae74527fc41c3d8e21786d1fd4a8a2eb4840e
Contents?: true
Size: 780 Bytes
Versions: 13
Compression:
Stored size: 780 Bytes
Contents
require 'fog/ecloud/models/compute/association' module Fog module Compute class Ecloud class Associations < Fog::Ecloud::Collection identity :href model Fog::Compute::Ecloud::Association def all data = connection.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 def get(uri) if data = connection.get_association(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
13 entries across 13 versions & 7 rubygems