Class: Lamian::Middleware
- Inherits:
-
Object
- Object
- Lamian::Middleware
- Defined in:
- lib/lamian/middleware.rb
Overview
Provides rack middleware, which allows to collect request logs
Instance Method Summary collapse
-
#call(env) ⇒ Object
wraps application inside lamian context and calls it.
-
#initialize(app) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app) ⇒ Middleware
Returns a new instance of Middleware.
8 9 10 |
# File 'lib/lamian/middleware.rb', line 8 def initialize(app) self.app = app end |