Class: Dionysus::Utils::DefaultMessageFilter
- Inherits:
-
Object
- Object
- Dionysus::Utils::DefaultMessageFilter
- Defined in:
- lib/dionysus/utils/default_message_filter.rb
Instance Method Summary collapse
- #ignore_message?(topic:, message:, transformed_data:) ⇒ Boolean
-
#initialize(error_handler:) ⇒ DefaultMessageFilter
constructor
A new instance of DefaultMessageFilter.
- #notify_about_ignored_message(topic:, message:, transformed_data:) ⇒ Object
Constructor Details
#initialize(error_handler:) ⇒ DefaultMessageFilter
Returns a new instance of DefaultMessageFilter.
7 8 9 |
# File 'lib/dionysus/utils/default_message_filter.rb', line 7 def initialize(error_handler:) @error_handler = error_handler end |
Instance Method Details
#ignore_message?(topic:, message:, transformed_data:) ⇒ Boolean
11 12 13 |
# File 'lib/dionysus/utils/default_message_filter.rb', line 11 def (topic:, message:, transformed_data:) false end |
#notify_about_ignored_message(topic:, message:, transformed_data:) ⇒ Object
15 16 17 |
# File 'lib/dionysus/utils/default_message_filter.rb', line 15 def (topic:, message:, transformed_data:) error_handler.((topic, , transformed_data)) end |