Class: Hellio::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/hellio/http.rb

Overview

A minimal HTTP response value object returned by an adapter.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



8
9
10
# File 'lib/hellio/http.rb', line 8

def body
  @body
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



8
9
10
# File 'lib/hellio/http.rb', line 8

def status
  @status
end