Class: Transport::HTTP::Formatter::Request
- Inherits:
-
Object
- Object
- Transport::HTTP::Formatter::Request
- Defined in:
- lib/transport/http/formatter.rb
Overview
Request formatter.
Instance Method Summary collapse
-
#initialize(uri, request) ⇒ Request
constructor
A new instance of Request.
- #message ⇒ Object
Constructor Details
#initialize(uri, request) ⇒ Request
Returns a new instance of Request.
13 14 15 |
# File 'lib/transport/http/formatter.rb', line 13 def initialize(uri, request) @uri, @request = uri, request end |
Instance Method Details
#message ⇒ Object
17 18 19 20 |
# File 'lib/transport/http/formatter.rb', line 17 def "transport to #{@uri.host} #{@uri.port}\n" + request end |