Class: HttpDouble::RequestLogger::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/http_double/request_logger.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code, headers, body) ⇒ Response

Returns a new instance of Response.



38
39
40
41
42
# File 'lib/http_double/request_logger.rb', line 38

def initialize(code, headers, body)
  @code    = code
  @headers = headers
  @body    = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



36
37
38
# File 'lib/http_double/request_logger.rb', line 36

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



36
37
38
# File 'lib/http_double/request_logger.rb', line 36

def code
  @code
end

#headersObject (readonly)

Returns the value of attribute headers.



36
37
38
# File 'lib/http_double/request_logger.rb', line 36

def headers
  @headers
end