Class: AppPerfRpm::Instruments::RackMiddleware
- Inherits:
-
Object
- Object
- AppPerfRpm::Instruments::RackMiddleware
- Defined in:
- lib/app_perf_rpm/instruments/rack_middleware.rb
Defined Under Namespace
Modules: AppPerfRpmRack
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ RackMiddleware
constructor
A new instance of RackMiddleware.
Constructor Details
#initialize(app) ⇒ RackMiddleware
Returns a new instance of RackMiddleware.
6 7 8 9 |
# File 'lib/app_perf_rpm/instruments/rack_middleware.rb', line 6 def initialize(app) @app = app self.extend(AppPerfRpmRack) end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
4 5 6 |
# File 'lib/app_perf_rpm/instruments/rack_middleware.rb', line 4 def app @app end |
Instance Method Details
#call(env) ⇒ Object
11 12 13 |
# File 'lib/app_perf_rpm/instruments/rack_middleware.rb', line 11 def call(env) @app.call(env) end |