Class: Relax2::Response

Inherits:
Struct
  • Object
show all
Defined in:
lib/relax2/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResponse

Returns a new instance of Response.



5
6
7
8
# File 'lib/relax2/response.rb', line 5

def initialize(...)
  super
  freeze
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



4
5
6
# File 'lib/relax2/response.rb', line 4

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



4
5
6
# File 'lib/relax2/response.rb', line 4

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



4
5
6
# File 'lib/relax2/response.rb', line 4

def status
  @status
end