Class: Denouncer::Notifiers::ConsoleNotifier
Instance Attribute Summary
Attributes inherited from BaseNotifier
#config
Instance Method Summary
collapse
#get_current_timestamp, #get_error_cause, #initialize
Instance Method Details
#name ⇒ String
6
7
8
|
# File 'lib/denouncer/notifiers/console_notifier.rb', line 6
def name
'console'
end
|
#notify(error, metadata = nil) ⇒ Object
14
15
16
17
18
19
|
# File 'lib/denouncer/notifiers/console_notifier.rb', line 14
def notify(error, metadata = nil)
puts "Timestamp: #{get_current_timestamp.to_s}"
puts "Error Class: #{error.class.name}"
puts "Error Message: #{error.message}"
puts "Metadata: #{metadata.to_s}"
end
|
#set_configuration!(options) ⇒ Object
10
11
12
|
# File 'lib/denouncer/notifiers/console_notifier.rb', line 10
def set_configuration!(options)
return options
end
|