# File lib/fog/profitbricks/requests/compute/get_volume.rb, line 55 def get_volume(datacenter_id, volume_id) if volume = data[:volumes]['items'].find do |vlm| vlm["id"] == volume_id && vlm["datacenter_id"] == datacenter_id end else raise Excon::Error::HTTPStatus, "Resource does not exist" end response = Excon::Response.new response.status = 200 response.body = volume response end