Class: Fog::Volume::OpenStack::Volumes
- Inherits:
-
Collection
- Object
- Collection
- Fog::Volume::OpenStack::Volumes
- Defined in:
- lib/fog/openstack/models/volume/volumes.rb
Instance Method Summary collapse
- #all(options = {:detailed => true}) ⇒ Object
- #get(volume_id) ⇒ Object (also: #find_by_id)
Instance Method Details
#all(options = {:detailed => true}) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/fog/openstack/models/volume/volumes.rb', line 10 def all( = {:detailed => true}) # the parameter has been "detailed = true" before. Make sure we are # backwards compatible detailed = .is_a?(Hash) ? .delete(:detailed) : load(service.list_volumes(detailed, ).body['volumes']) end |