Class: Rest::Wrappers::ExconResponseWrapper
- Inherits:
-
BaseResponseWrapper
- Object
- BaseResponseWrapper
- Rest::Wrappers::ExconResponseWrapper
- Defined in:
- lib/rest/wrappers/excon_wrapper.rb
Instance Attribute Summary
Attributes inherited from BaseResponseWrapper
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
- #headers_orig ⇒ Object
-
#initialize(response) ⇒ ExconResponseWrapper
constructor
A new instance of ExconResponseWrapper.
Methods inherited from BaseResponseWrapper
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
#body ⇒ Object
22 23 24 |
# File 'lib/rest/wrappers/excon_wrapper.rb', line 22 def body @response.body end |
#code ⇒ Object
18 19 20 |
# File 'lib/rest/wrappers/excon_wrapper.rb', line 18 def code @response.status end |
#headers_orig ⇒ Object
26 27 28 |
# File 'lib/rest/wrappers/excon_wrapper.rb', line 26 def headers_orig @response.headers end |