Class: Altertable::Adapters::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/altertable/adapters.rb,
sig/altertable/adapters.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.

Parameters:

  • status (Integer)
  • body (String)


7
# File 'sig/altertable/adapters.rbs', line 7

def initialize: (Integer status, String body) -> void

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



3
4
5
# File 'lib/altertable/adapters.rb', line 3

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



3
4
5
# File 'lib/altertable/adapters.rb', line 3

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



3
4
5
# File 'lib/altertable/adapters.rb', line 3

def status
  @status
end