Class: Dionysus::Utils::DefaultMessageFilter

Inherits:
Object
  • Object
show all
Defined in:
lib/dionysus/utils/default_message_filter.rb

Instance Method Summary collapse

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/dionysus/utils/default_message_filter.rb', line 11

def ignore_message?(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 notify_about_ignored_message(topic:, message:, transformed_data:)
  error_handler.capture_message(error_message(topic, message, transformed_data))
end