Class: Fog::Compute::Ecloud::DetachedDisks
- Inherits:
-
Ecloud::Collection
- Object
- Fog::Collection
- Ecloud::Collection
- Fog::Compute::Ecloud::DetachedDisks
- Defined in:
- lib/fog/ecloud/models/compute/detached_disks.rb
Instance Method Summary collapse
Methods inherited from Ecloud::Collection
Instance Method Details
#all ⇒ Object
12 13 14 15 16 |
# File 'lib/fog/ecloud/models/compute/detached_disks.rb', line 12 def all data = service.get_detached_disks(href).body[:DetachedDisk] data = [] if data.nil? load(data) end |
#get(uri) ⇒ Object
18 19 20 21 22 23 |
# File 'lib/fog/ecloud/models/compute/detached_disks.rb', line 18 def get(uri) data = service.get_detached_disk(uri).body new(data) rescue Fog::Errors::NotFound nil end |