Module: RestClient::Response
- Includes:
- AbstractResponse
- Defined in:
- lib/restclient/response.rb
Overview
A Response from RestClient, you can access the response body, the code or the headers.
Instance Attribute Summary
Attributes included from AbstractResponse
#args, #net_http_res, #request
Class Method Summary collapse
Instance Method Summary collapse
Methods included from AbstractResponse
beautify_headers, #code, #cookie_jar, #cookies, #description, #follow_redirection, #headers, #raw_headers, #response_set_vars, #return!, #to_i
Class Method Details
.create(body, net_http_res, args, request) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/restclient/response.rb', line 13 def self.create body, net_http_res, args, request result = body || '' result.extend Response result.response_set_vars(net_http_res, args, request) result end |
Instance Method Details
#body ⇒ Object
9 10 11 |
# File 'lib/restclient/response.rb', line 9 def body self end |