Class: Telebugs::BaseMiddleware

Inherits:
Object
  • Object
show all
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.

Constant Summary collapse

DEFAULT_WEIGHT =
0

Instance Method Summary collapse

Instance Method Details

#call(_report) ⇒ Object

Raises:

  • (NotImplementedError)


13
14
15
# File 'lib/telebugs/base_middleware.rb', line 13

def call(_report)
  raise NotImplementedError, "You must implement the #call method"
end

#weightObject



9
10
11
# File 'lib/telebugs/base_middleware.rb', line 9

def weight
  DEFAULT_WEIGHT
end