Class: Rapa::Responses::BaseResponse
- Inherits:
-
Object
- Object
- Rapa::Responses::BaseResponse
show all
- Defined in:
- lib/rapa/responses/base_response.rb
Instance Method Summary
collapse
Constructor Details
#initialize(faraday_response) ⇒ BaseResponse
Returns a new instance of BaseResponse.
5
6
7
|
# File 'lib/rapa/responses/base_response.rb', line 5
def initialize(faraday_response)
@faraday_response = faraday_response
end
|
Instance Method Details
#body ⇒ String
10
11
12
|
# File 'lib/rapa/responses/base_response.rb', line 10
def body
faraday_response.body
end
|
15
16
17
|
# File 'lib/rapa/responses/base_response.rb', line 15
def
faraday_response.
end
|
#status ⇒ Integer
20
21
22
|
# File 'lib/rapa/responses/base_response.rb', line 20
def status
faraday_response.status
end
|