Class: AppPerformMetrics::GetMetrics
- Inherits:
-
Object
- Object
- AppPerformMetrics::GetMetrics
- Defined in:
- lib/app_perform_metrics.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ GetMetrics
constructor
A new instance of GetMetrics.
Constructor Details
#initialize(app) ⇒ GetMetrics
Returns a new instance of GetMetrics.
6 7 8 |
# File 'lib/app_perform_metrics.rb', line 6 def initialize(app) @app = app end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 |
# File 'lib/app_perform_metrics.rb', line 10 def call(env) env[:timestamp] = Time.now @app.call(env) end |