Class: Transport::HTTP::Formatter
- Inherits:
-
Object
- Object
- Transport::HTTP::Formatter
- Defined in:
- lib/transport/http/formatter.rb
Overview
Formatter for the http request and response objects. Used for log output.
Defined Under Namespace
Instance Attribute Summary collapse
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
-
#initialize(logger) ⇒ Formatter
constructor
A new instance of Formatter.
- #log_transport(uri, request, response) ⇒ Object
Constructor Details
#initialize(logger) ⇒ Formatter
Returns a new instance of Formatter.
62 63 64 |
# File 'lib/transport/http/formatter.rb', line 62 def initialize(logger) @logger = logger end |
Instance Attribute Details
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
60 61 62 |
# File 'lib/transport/http/formatter.rb', line 60 def logger @logger end |