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