Class: Uber::RestClientResponseWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/simple_worker/uber_client.rb

Instance Method Summary collapse

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

#bodyObject



32
33
34
# File 'lib/simple_worker/uber_client.rb', line 32

def body
  @response.body
end

#codeObject



28
29
30
# File 'lib/simple_worker/uber_client.rb', line 28

def code
  @response.code
end