Class: Acfs::Middleware::Print
- Defined in:
- lib/acfs/middleware/print.rb
Overview
Print resquests and response on terminal
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Acfs::Middleware::Base
Instance Method Details
#call(req) ⇒ Object
[View source]
8 9 10 11 12 13 14 |
# File 'lib/acfs/middleware/print.rb', line 8 def call(req) puts '-' * 80 puts req.inspect puts '-' * 80 super end |
#response(res) ⇒ Object
[View source]
16 17 18 19 20 |
# File 'lib/acfs/middleware/print.rb', line 16 def response(res) puts '-' * 80 puts res.inspect puts '-' * 80 end |