Class: Denouncer::Notifiers::ConsoleNotifier
- Inherits:
-
BaseNotifier
- Object
- BaseNotifier
- Denouncer::Notifiers::ConsoleNotifier
- Defined in:
- lib/denouncer/notifiers/console_notifier.rb
Instance Attribute Summary
Attributes inherited from BaseNotifier
Instance Method Summary collapse
Methods inherited from BaseNotifier
#get_current_timestamp, #initialize
Constructor Details
This class inherits a constructor from Denouncer::Notifiers::BaseNotifier
Instance Method Details
#notify(error, metadata = nil) ⇒ Object
9 10 11 12 13 14 |
# File 'lib/denouncer/notifiers/console_notifier.rb', line 9 def notify(error, = nil) puts "Timestamp: #{}" puts "Error Class: #{error.class.name}" puts "Error Message: #{error.}" puts "Metadata: #{.to_s}" end |
#set_configuration!(options) ⇒ Object
5 6 7 |
# File 'lib/denouncer/notifiers/console_notifier.rb', line 5 def set_configuration!() return end |