Method: Fog::Compute::Ecloud::Associations#all

Defined in:
lib/fog/ecloud/models/compute/associations.rb

#allObject



12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/fog/ecloud/models/compute/associations.rb', line 12

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