Class: Fog::Compute::Ecloud::OperatingSystemFamilies
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::OperatingSystemFamilies
- Defined in:
- lib/fog/compute/ecloud/models/operating_system_families.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
11 12 13 14 |
# File 'lib/fog/compute/ecloud/models/operating_system_families.rb', line 11 def all data = service.(href).body[:OperatingSystemFamily] load(data) end |
#get(uri) ⇒ Object
16 17 18 19 20 21 22 23 |
# File 'lib/fog/compute/ecloud/models/operating_system_families.rb', line 16 def get(uri) if data = service.(uri) new(data.body) end rescue ServiceError => e raise e unless e.status_code == 404 nil end |