Class: OklogApi::Response

Inherits:
Object show all
Defined in:
lib/oklog-api/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body: {}, headers: {}, status_code: nil) ⇒ Response

Returns a new instance of Response.



5
6
7
8
9
# File 'lib/oklog-api/response.rb', line 5

def initialize(body: {}, headers: {}, status_code: nil)
  @body = body
  @headers = headers
  @status_code = status_code
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



3
4
5
# File 'lib/oklog-api/response.rb', line 3

def body
  @body
end

#headersObject

Returns the value of attribute headers.



3
4
5
# File 'lib/oklog-api/response.rb', line 3

def headers
  @headers
end

#status_codeObject

Returns the value of attribute status_code.



3
4
5
# File 'lib/oklog-api/response.rb', line 3

def status_code
  @status_code
end