Class: MyTargetApi::NetClient::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/my_target_api/net_client.rb

Overview

NetClient response

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, code, headers) ⇒ Response

Returns a new instance of Response.



13
14
15
16
17
# File 'lib/my_target_api/net_client.rb', line 13

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

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



19
20
21
# File 'lib/my_target_api/net_client.rb', line 19

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



19
20
21
# File 'lib/my_target_api/net_client.rb', line 19

def code
  @code
end

#headersObject (readonly)

Returns the value of attribute headers.



19
20
21
# File 'lib/my_target_api/net_client.rb', line 19

def headers
  @headers
end