Class: Uber::RestClientResponseWrapper
- Inherits:
-
Object
- Object
- Uber::RestClientResponseWrapper
- Defined in:
- lib/simple_worker/uber_client.rb
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
-
#initialize(response) ⇒ RestClientResponseWrapper
constructor
A new instance of RestClientResponseWrapper.
Constructor Details
#initialize(response) ⇒ RestClientResponseWrapper
Returns a new instance of RestClientResponseWrapper.
24 25 26 |
# File 'lib/simple_worker/uber_client.rb', line 24 def initialize(response) @response = response end |
Instance Method Details
#body ⇒ Object
32 33 34 |
# File 'lib/simple_worker/uber_client.rb', line 32 def body @response.body end |
#code ⇒ Object
28 29 30 |
# File 'lib/simple_worker/uber_client.rb', line 28 def code @response.code end |