Class: RestClientWrapper::Response

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

Overview

Response

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(headers, body, code) ⇒ Response

Returns a new instance of Response.



26
27
28
29
30
# File 'lib/rest_client_wrapper/response.rb', line 26

def initialize(headers, body, code)
  @headers = headers
  @body = body
  @code = code
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



24
25
26
# File 'lib/rest_client_wrapper/response.rb', line 24

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



24
25
26
# File 'lib/rest_client_wrapper/response.rb', line 24

def code
  @code
end

#headersObject (readonly)

Returns the value of attribute headers.



24
25
26
# File 'lib/rest_client_wrapper/response.rb', line 24

def headers
  @headers
end