Class: UniformNotifier

Inherits:
Object
  • Object
show all
Defined in:
lib/uniform_notifier.rb,
lib/uniform_notifier/base.rb,
lib/uniform_notifier/xmpp.rb,
lib/uniform_notifier/raise.rb,
lib/uniform_notifier/slack.rb,
lib/uniform_notifier/errors.rb,
lib/uniform_notifier/sentry.rb,
lib/uniform_notifier/bugsnag.rb,
lib/uniform_notifier/rollbar.rb,
lib/uniform_notifier/version.rb,
lib/uniform_notifier/airbrake.rb,
lib/uniform_notifier/appsignal.rb,
lib/uniform_notifier/honeybadger.rb,
lib/uniform_notifier/rails_logger.rb,
lib/uniform_notifier/javascript_alert.rb,
lib/uniform_notifier/customized_logger.rb,
lib/uniform_notifier/terminal_notifier.rb,
lib/uniform_notifier/javascript_console.rb

Defined Under Namespace

Classes: AirbrakeNotifier, AppsignalNotifier, Base, BugsnagNotifier, CustomizedLogger, Exception, HoneybadgerNotifier, JavascriptAlert, JavascriptConsole, NotificationError, RailsLogger, Raise, RollbarNotifier, SentryNotifier, Slack, TerminalNotifier, Xmpp

Constant Summary collapse

AVAILABLE_NOTIFIERS =
%i[
  alert
  console
  honeybadger
  xmpp
  rails_logger
  customized_logger
  airbrake
  rollbar
  bugsnag
  slack
  raise
  sentry
  appsignal
  terminal_notifier
].freeze
NOTIFIERS =
[
  JavascriptAlert,
  JavascriptConsole,
  HoneybadgerNotifier,
  Xmpp,
  RailsLogger,
  CustomizedLogger,
  AirbrakeNotifier,
  RollbarNotifier,
  BugsnagNotifier,
  Raise,
  Slack,
  SentryNotifier,
  AppsignalNotifier,
  TerminalNotifier
].freeze
VERSION =
'1.16.0'

Class Method Summary collapse

Class Method Details

.active_notifiersObject



61
62
63
# File 'lib/uniform_notifier.rb', line 61

def active_notifiers
  NOTIFIERS.select(&:active?)
end

.customized_logger=(logdev) ⇒ Object



71
72
73
# File 'lib/uniform_notifier.rb', line 71

def customized_logger=(logdev)
  UniformNotifier::CustomizedLogger.setup(logdev)
end

.raise=(exception_class) ⇒ Object



81
82
83
# File 'lib/uniform_notifier.rb', line 81

def raise=(exception_class)
  UniformNotifier::Raise.setup_connection(exception_class)
end

.slack=(slack) ⇒ Object



76
77
78
# File 'lib/uniform_notifier.rb', line 76

def slack=(slack)
  UniformNotifier::Slack.setup_connection(slack)
end

.xmpp=(xmpp) ⇒ Object



66
67
68
# File 'lib/uniform_notifier.rb', line 66

def xmpp=(xmpp)
  UniformNotifier::Xmpp.setup_connection(xmpp)
end