Class: Wrake::Api::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/wrake/api/response.rb

Instance Method Summary collapse

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

#bodyObject



9
10
11
# File 'lib/wrake/api/response.rb', line 9

def body
  @response.body
end

#codeObject



13
14
15
# File 'lib/wrake/api/response.rb', line 13

def code
  @response.code
end

#headersObject



21
22
23
# File 'lib/wrake/api/response.rb', line 21

def headers
  @response.headers
end

#messageObject



17
18
19
# File 'lib/wrake/api/response.rb', line 17

def message
  @response.message
end