class JunkDrawer::Notifier::HoneybadgerStrategy

Notifier strategy to send a notification to Honeybadger

Public Instance Methods

call(message, **context) click to toggle source
# File lib/junk_drawer/notifier/honeybadger_strategy.rb, line 11
def call(message, **context)
  error = message.is_a?(Exception) ? message : NotifierError.new(message)
  Honeybadger.notify(error, context: context)
end