Class: SimplyReddit::BaseClient::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/simply_reddit/base_client.rb

Overview

Response struct to wrap API responses

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



5
6
7
# File 'lib/simply_reddit/base_client.rb', line 5

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



5
6
7
# File 'lib/simply_reddit/base_client.rb', line 5

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



5
6
7
# File 'lib/simply_reddit/base_client.rb', line 5

def status
  @status
end