Class: Calpack::HttpResponse
- Inherits:
-
Object
- Object
- Calpack::HttpResponse
- Defined in:
- lib/calpack/http/http_response.rb
Overview
Http response received.
Instance Attribute Summary collapse
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#raw_body ⇒ Object
Returns the value of attribute raw_body.
-
#status_code ⇒ Object
Returns the value of attribute status_code.
Instance Method Summary collapse
-
#initialize(status_code, headers, raw_body) ⇒ HttpResponse
constructor
The constructor.
Constructor Details
#initialize(status_code, headers, raw_body) ⇒ HttpResponse
The constructor
15 16 17 18 19 20 21 |
# File 'lib/calpack/http/http_response.rb', line 15 def initialize(status_code, headers, raw_body) @status_code = status_code @headers = headers @raw_body = raw_body end |
Instance Attribute Details
#headers ⇒ Object
Returns the value of attribute headers.
9 10 11 |
# File 'lib/calpack/http/http_response.rb', line 9 def headers @headers end |
#raw_body ⇒ Object
Returns the value of attribute raw_body.
9 10 11 |
# File 'lib/calpack/http/http_response.rb', line 9 def raw_body @raw_body end |
#status_code ⇒ Object
Returns the value of attribute status_code.
9 10 11 |
# File 'lib/calpack/http/http_response.rb', line 9 def status_code @status_code end |