Class: AppPerformMetrics::GetMetrics

Inherits:
Object
  • Object
show all
Defined in:
lib/app_perform_metrics.rb

Instance Method Summary collapse

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