Sha256: 57da326c58b7af4c64d9d068bf0ecc689b70d0a4183f646fb6b0c18040aee78d
Contents?: true
Size: 773 Bytes
Versions: 17
Compression:
Stored size: 773 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 = 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 def get(uri) if data = service.get_association(uri) new(data.body) end rescue Fog::Errors::NotFound nil end end end end end
Version data entries
17 entries across 17 versions & 5 rubygems