# File lib/openstack/volume/connection.rb, line 39 def list_volumes(options = {}) path = options.empty? ? "/#{@volume_path}/detail" : "/#{@volume_path}/detail?#{options.to_query}" response = @connection.req("GET", path) volumes_hash = JSON.parse(response.body)["volumes"] volumes_hash.inject([]){|res, current| res << OpenStack::Volume::Volume.new(self, current); res} end