Class: JunkDrawer::Notifier::HoneybadgerStrategy
- Inherits:
-
Object
- Object
- JunkDrawer::Notifier::HoneybadgerStrategy
- Includes:
- Callable
- Defined in:
- lib/junk_drawer/notifier/honeybadger_strategy.rb
Overview
Notifier strategy to send a notification to Honeybadger
Instance Method Summary collapse
Methods included from Callable
Instance Method Details
#call(message, **context) ⇒ Object
11 12 13 14 |
# File 'lib/junk_drawer/notifier/honeybadger_strategy.rb', line 11 def call(, **context) error = .is_a?(Exception) ? : NotifierError.new() Honeybadger.notify(error, context: context) end |