Class: Transport::HTTP::Formatter::Response
- Inherits:
-
Object
- Object
- Transport::HTTP::Formatter::Response
- Defined in:
- lib/transport/http/formatter.rb
Overview
Response formatter.
Instance Method Summary collapse
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
- #message ⇒ Object
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
48 49 50 |
# File 'lib/transport/http/formatter.rb', line 48 def initialize(response) @response = response end |
Instance Method Details
#message ⇒ Object
52 53 54 55 56 |
# File 'lib/transport/http/formatter.rb', line 52 def = "response: #{@response.code}\n" += Formatter.intend(" #{@response.body}") end |