class Fog::Compute::ProfitBricks::Volumes
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/profit_bricks/models/volumes.rb, line 9 def all load(service.get_all_storages.body["getAllStoragesResponse"]) end
get(id)
click to toggle source
# 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