Class: Fog::Storage::IBM::Volumes
- Inherits:
-
Collection
- Object
- Collection
- Fog::Storage::IBM::Volumes
- Defined in:
- lib/fog/ibm/models/storage/volumes.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
10 11 12 |
# File 'lib/fog/ibm/models/storage/volumes.rb', line 10 def all load(service.list_volumes.body['volumes']) end |
#get(volume_id) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/fog/ibm/models/storage/volumes.rb', line 14 def get(volume_id) begin new(service.get_volume(volume_id).body) rescue Fog::Storage::IBM::NotFound nil end end |