Class: Fog::Storage::StormOnDemand::Volumes
- Inherits:
-
Collection
- Object
- Collection
- Fog::Storage::StormOnDemand::Volumes
- Defined in:
- lib/fog/storm_on_demand/models/storage/volumes.rb
Instance Method Summary collapse
Instance Method Details
#all(options = {}) ⇒ Object
20 21 22 23 |
# File 'lib/fog/storm_on_demand/models/storage/volumes.rb', line 20 def all(={}) vols = service.list_volumes().body['items'] load(vols) end |
#create(options) ⇒ Object
10 11 12 13 |
# File 'lib/fog/storm_on_demand/models/storage/volumes.rb', line 10 def create() vol = service.create_volume().body new(vol) end |
#get(uniq_id) ⇒ Object
15 16 17 18 |
# File 'lib/fog/storm_on_demand/models/storage/volumes.rb', line 15 def get(uniq_id) vol = service.get_volume(:uniq_id => uniq_id).body new(vol) end |