Class: CrashHook::Middleware
- Inherits:
-
Object
- Object
- CrashHook::Middleware
- Defined in:
- lib/crash_hook/middleware.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, options = {}) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, options = {}) ⇒ Middleware
Returns a new instance of Middleware.
5 6 7 8 |
# File 'lib/crash_hook/middleware.rb', line 5 def initialize(app, ={}) @app = app @config = CrashHook.configure() end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
3 4 5 |
# File 'lib/crash_hook/middleware.rb', line 3 def config @config end |