Class: Rest::Wrappers::TyphoeusResponseWrapper
- Inherits:
-
BaseResponseWrapper
- Object
- BaseResponseWrapper
- Rest::Wrappers::TyphoeusResponseWrapper
- Defined in:
- lib/rest/wrappers/typhoeus_wrapper.rb
Instance Attribute Summary
Attributes inherited from BaseResponseWrapper
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
- #headers_orig ⇒ Object
-
#initialize(response) ⇒ TyphoeusResponseWrapper
constructor
A new instance of TyphoeusResponseWrapper.
Methods inherited from BaseResponseWrapper
Constructor Details
#initialize(response) ⇒ TyphoeusResponseWrapper
Returns a new instance of TyphoeusResponseWrapper.
16 17 18 |
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 16 def initialize(response) @response = response end |
Instance Method Details
#body ⇒ Object
24 25 26 |
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 24 def body @response.body end |
#code ⇒ Object
20 21 22 |
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 20 def code @response.code end |
#headers_orig ⇒ Object
28 29 30 |
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 28 def headers_orig @response.headers_hash end |