Class: Telebugs::BaseMiddleware
- Inherits:
-
Object
- Object
- Telebugs::BaseMiddleware
- Defined in:
- lib/telebugs/base_middleware.rb
Overview
Represents a middleware that can be used to filter out errors. You must inherit from this class and implement the #call method.
Direct Known Subclasses
Middleware::GemRootFilter, Middleware::IgnoreEnvironments, Middleware::RootDirectoryFilter
Constant Summary collapse
- DEFAULT_WEIGHT =
0
Instance Method Summary collapse
Instance Method Details
#call(_report) ⇒ Object
13 14 15 |
# File 'lib/telebugs/base_middleware.rb', line 13 def call(_report) raise NotImplementedError, "You must implement the #call method" end |
#weight ⇒ Object
9 10 11 |
# File 'lib/telebugs/base_middleware.rb', line 9 def weight DEFAULT_WEIGHT end |