Class: HTTP::Response
- Inherits:
-
Object
- Object
- HTTP::Response
- Defined in:
- lib/http/http.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
Returns the value of attribute code.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#http_response ⇒ Object
Returns the value of attribute http_response.
-
#parsed_body ⇒ Object
Returns the value of attribute parsed_body.
Instance Method Summary collapse
-
#initialize(body, code, headers, response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(body, code, headers, response) ⇒ Response
Returns a new instance of Response.
13 14 15 16 17 18 |
# File 'lib/http/http.rb', line 13 def initialize(body, code, headers, response) self.parsed_body = body self.code = code self.headers = headers self.http_response = response end |
Instance Attribute Details
#code ⇒ Object
Returns the value of attribute code.
11 12 13 |
# File 'lib/http/http.rb', line 11 def code @code end |
#headers ⇒ Object
Returns the value of attribute headers.
11 12 13 |
# File 'lib/http/http.rb', line 11 def headers @headers end |
#http_response ⇒ Object
Returns the value of attribute http_response.
11 12 13 |
# File 'lib/http/http.rb', line 11 def http_response @http_response end |
#parsed_body ⇒ Object
Returns the value of attribute parsed_body.
11 12 13 |
# File 'lib/http/http.rb', line 11 def parsed_body @parsed_body end |