Class: HttpDouble::RequestLogger::Response
- Inherits:
-
Object
- Object
- HttpDouble::RequestLogger::Response
- Defined in:
- lib/http_double/request_logger.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(code, headers, body) ⇒ Response
constructor
A new instance of Response.
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
#body ⇒ Object (readonly)
Returns the value of attribute body.
36 37 38 |
# File 'lib/http_double/request_logger.rb', line 36 def body @body end |
#code ⇒ Object (readonly)
Returns the value of attribute code.
36 37 38 |
# File 'lib/http_double/request_logger.rb', line 36 def code @code end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
36 37 38 |
# File 'lib/http_double/request_logger.rb', line 36 def headers @headers end |