Class: Fog::Compute::ProfitBricks::Volumes
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::ProfitBricks::Volumes
- Defined in:
- lib/fog/compute/profit_bricks/models/volumes.rb
Instance Method Summary collapse
Instance Method Details
#all ⇒ Object
9 10 11 |
# File 'lib/fog/compute/profit_bricks/models/volumes.rb', line 9 def all load(service.get_all_storages.body["getAllStoragesResponse"]) end |
#get(id) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/fog/compute/profit_bricks/models/volumes.rb', line 13 def get(id) volume = service.get_storage(id).body["getStorageResponse"] Excon::Errors new(volume) rescue Excon::Errors::NotFound nil end |