Class: Estackprof::Middleware

Inherits:
StackProf::Middleware
  • Object
show all
Defined in:
lib/estackprof/middleware.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, options = {}) ⇒ Middleware

Returns a new instance of Middleware.



7
8
9
10
11
12
13
# File 'lib/estackprof/middleware.rb', line 7

def initialize(app, options = {})
  options[:enabled] = true if options[:enabled].nil?
  options[:raw] = true if options[:raw].nil?
  options[:save_every] ||= 10

  super(app, **options)
end