module RestClient::Response

A Response from RestClient, you can access the response body, the code or the headers.

Public Class Methods

create(body, net_http_res, args, request) click to toggle source
# 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

Public Instance Methods

body() click to toggle source
# File lib/restclient/response.rb, line 9
def body
  self
end