# File lib/openstack/volume/connection.rb, line 65 def list_snapshots response = @connection.req("GET", "/#{@snapshot_path}") snapshot_hash = JSON.parse(response.body)["snapshots"] snapshot_hash.inject([]){|res, current| res << OpenStack::Volume::Snapshot.new(current); res} end