Class: Denouncer::Notifiers::ConsoleNotifier

Inherits:
BaseNotifier show all
Defined in:
lib/denouncer/notifiers/console_notifier.rb

Instance Attribute Summary

Attributes inherited from BaseNotifier

#config

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: #{get_current_timestamp}"
  puts "Error Class: #{error.class.name}"
  puts "Error Message: #{error.message}"
  puts "Metadata: #{.to_s}"
end

#set_configuration!(options) ⇒ Object



5
6
7
# File 'lib/denouncer/notifiers/console_notifier.rb', line 5

def set_configuration!(options)
  return options
end