Class: RequestLumberjack::App
- Inherits:
-
Object
- Object
- RequestLumberjack::App
- Defined in:
- lib/request_lumberjack.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ App
constructor
A new instance of App.
Constructor Details
#initialize(app) ⇒ App
Returns a new instance of App.
17 18 19 |
# File 'lib/request_lumberjack.rb', line 17 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
21 22 23 24 25 |
# File 'lib/request_lumberjack.rb', line 21 def call(env) status, headers, response = @app.call(env) Thread.new { LoggedResponse.create_from_response(response) } [status, headers, response] end |