Class: Eli::RestApi::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/eli/rest_api.rb

Overview

Lightweight response value object exposing status and the parsed body.

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/eli/rest_api.rb', line 18

def body
  @body
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



18
19
20
# File 'lib/eli/rest_api.rb', line 18

def status
  @status
end