/usr/lib/ruby/vendor_ruby/restclient/response.rb is in ruby-rest-client 1.6.7-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | module RestClient
# A Response from RestClient, you can access the response body, the code or the headers.
#
module Response
include AbstractResponse
attr_accessor :args, :body, :net_http_res
def body
self
end
def Response.create body, net_http_res, args
result = body || ''
result.extend Response
result.net_http_res = net_http_res
result.args = args
result
end
end
end
|