Class: Rest::Wrappers::TyphoeusResponseWrapper

Inherits:
BaseResponseWrapper show all
Defined in:
lib/rest/wrappers/typhoeus_wrapper.rb

Instance Attribute Summary

Attributes inherited from BaseResponseWrapper

#tries

Instance Method Summary collapse

Methods inherited from BaseResponseWrapper

#headers

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

#bodyObject



24
25
26
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 24

def body
  @response.body
end

#codeObject



20
21
22
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 20

def code
  @response.code
end

#headers_origObject



28
29
30
# File 'lib/rest/wrappers/typhoeus_wrapper.rb', line 28

def headers_orig
  @response.headers_hash
end