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/growl.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/honeybadger.rb,
lib/uniform_notifier/rails_logger.rb,
lib/uniform_notifier/javascript_alert.rb,
lib/uniform_notifier/customized_logger.rb,
lib/uniform_notifier/javascript_console.rb

Defined Under Namespace

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

Constant Summary collapse

AVAILABLE_NOTIFIERS =
[:alert, :console, :growl, :honeybadger, :xmpp, :rails_logger,
 :customized_logger, :airbrake, :rollbar, :bugsnag, :slack, :raise,
 :sentry
]
NOTIFIERS =
[JavascriptAlert, JavascriptConsole, Growl, HoneybadgerNotifier, Xmpp, RailsLogger,
 CustomizedLogger, AirbrakeNotifier, RollbarNotifier, BugsnagNotifier, Raise, Slack,
 SentryNotifier
]
VERSION =
"1.11.0"

Class Method Summary collapse

Class Method Details

.active_notifiersObject



33
34
35
# File 'lib/uniform_notifier.rb', line 33

def active_notifiers
  NOTIFIERS.select { |notifier| notifier.active? }
end

.customized_logger=(logdev) ⇒ Object



48
49
50
# File 'lib/uniform_notifier.rb', line 48

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

.growl=(growl) ⇒ Object



38
39
40
# File 'lib/uniform_notifier.rb', line 38

def growl=(growl)
  UniformNotifier::Growl.setup_connection(growl)
end

.raise=(exception_class) ⇒ Object



58
59
60
# File 'lib/uniform_notifier.rb', line 58

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

.slack=(slack) ⇒ Object



53
54
55
# File 'lib/uniform_notifier.rb', line 53

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

.xmpp=(xmpp) ⇒ Object



43
44
45
# File 'lib/uniform_notifier.rb', line 43

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