class Fog::Storage::StormOnDemand::Volumes

Public Instance Methods

all(options={}) click to toggle source
# File lib/fog/storm_on_demand/models/storage/volumes.rb, line 21
def all(options={})
  vols = service.list_volumes(options).body['items']
  load(vols)
end
create(options) click to toggle source
# File lib/fog/storm_on_demand/models/storage/volumes.rb, line 11
def create(options)
  vol = service.create_volume(options).body
  new(vol)
end
get(uniq_id) click to toggle source
# File lib/fog/storm_on_demand/models/storage/volumes.rb, line 16
def get(uniq_id)
  vol = service.get_volume(:uniq_id => uniq_id).body
  new(vol)
end