Class: Rest::Wrappers::ExconResponseWrapper

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

Instance Attribute Summary

Attributes inherited from BaseResponseWrapper

#tries

Instance Method Summary collapse

Methods inherited from BaseResponseWrapper

#headers

Constructor Details

#initialize(response) ⇒ ExconResponseWrapper

Returns a new instance of ExconResponseWrapper.



14
15
16
# File 'lib/rest/wrappers/excon_wrapper.rb', line 14

def initialize(response)
  @response = response
end

Instance Method Details

#bodyObject



22
23
24
# File 'lib/rest/wrappers/excon_wrapper.rb', line 22

def body
  @response.body
end

#codeObject



18
19
20
# File 'lib/rest/wrappers/excon_wrapper.rb', line 18

def code
  @response.status
end

#headers_origObject



26
27
28
# File 'lib/rest/wrappers/excon_wrapper.rb', line 26

def headers_orig
  @response.headers
end