Class: Wrake::Api::Response
- Inherits:
-
Object
- Object
- Wrake::Api::Response
- Defined in:
- lib/wrake/api/response.rb
Instance Method Summary collapse
- #body ⇒ Object
- #code ⇒ Object
- #headers ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
5 6 7 |
# File 'lib/wrake/api/response.rb', line 5 def initialize(response) @response = response end |
Instance Method Details
#body ⇒ Object
9 10 11 |
# File 'lib/wrake/api/response.rb', line 9 def body @response.body end |
#code ⇒ Object
13 14 15 |
# File 'lib/wrake/api/response.rb', line 13 def code @response.code end |
#headers ⇒ Object
21 22 23 |
# File 'lib/wrake/api/response.rb', line 21 def headers @response.headers end |
#message ⇒ Object
17 18 19 |
# File 'lib/wrake/api/response.rb', line 17 def @response. end |