Class: AppPerfRpm::Instruments::RackMiddleware

Inherits:
Object
  • Object
show all
Defined in:
lib/app_perf_rpm/instruments/rack_middleware.rb

Defined Under Namespace

Modules: AppPerfRpmRack

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#appObject (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