Class: Network::Client::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/network/client.rb

Overview

The success response template.

Represents the return of rest-like methods holding two values: HTTP response code, and body (parsed as json if request type is json).

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



18
19
20
# File 'lib/network/client.rb', line 18

def body
  @body
end

#codeObject

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



18
19
20
# File 'lib/network/client.rb', line 18

def code
  @code
end