Class: Acfs::Middleware::Print

Inherits:
Base
  • Object
show all
Defined in:
lib/acfs/middleware/print.rb

Overview

Print resquests and response on terminal

Instance Attribute Summary

Attributes inherited from Base

#app, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Acfs::Middleware::Base

Instance Method Details

#call(req) ⇒ Object



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



16
17
18
19
20
# File 'lib/acfs/middleware/print.rb', line 16

def response(res)
  puts '-' * 80
  puts res.inspect
  puts '-' * 80
end