Module RestClient::Response
In: lib/rest-client-1.6.3/lib/restclient/response.rb

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

Methods

body   create  

Included Modules

AbstractResponse

Attributes

args  [RW] 
body  [RW] 
net_http_res  [RW] 

Public Class methods

[Source]

# File lib/rest-client-1.6.3/lib/restclient/response.rb, line 15
    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

Public Instance methods

[Source]

# File lib/rest-client-1.6.3/lib/restclient/response.rb, line 11
    def body
      self
    end

[Validate]