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 collapse
- 
  
    
      #args  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute args. 
- 
  
    
      #body  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute body. 
- 
  
    
      #net_http_res  ⇒ Object 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Returns the value of attribute net_http_res. 
Class Method Summary collapse
Methods included from AbstractResponse
beautify_headers, #code, #cookies, #description, #follow_redirection, #headers, #raw_headers, #return!, #to_i
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
| 9 10 11 | # File 'lib/restclient/response.rb', line 9 def args @args end | 
#body ⇒ Object
Returns the value of attribute body.
| 9 10 11 | # File 'lib/restclient/response.rb', line 9 def body @body end | 
#net_http_res ⇒ Object
Returns the value of attribute net_http_res.
| 9 10 11 | # File 'lib/restclient/response.rb', line 9 def net_http_res @net_http_res end |