Class: Fog::Compute::Ecloud::Associations
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::Associations
- Defined in:
- lib/fog/ecloud/models/compute/associations.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 |
# 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 |