Module: UniformNotifier

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/errors.rb,
lib/uniform_notifier/bugsnag.rb,
lib/uniform_notifier/version.rb,
lib/uniform_notifier/airbrake.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, JavascriptAlert, JavascriptConsole, NotificationError, RailsLogger, Raise, Xmpp

Constant Summary collapse

NOTIFIERS =
[JavascriptAlert, JavascriptConsole, Growl, Xmpp, RailsLogger, CustomizedLogger, AirbrakeNotifier, Raise]
VERSION =
"1.6.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.airbrakeObject

Returns the value of attribute airbrake.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def airbrake
  @airbrake
end

.alertObject

Returns the value of attribute alert.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def alert
  @alert
end

.bugsnagObject

Returns the value of attribute bugsnag.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def bugsnag
  @bugsnag
end

.consoleObject

Returns the value of attribute console.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def console
  @console
end

.growlObject

Returns the value of attribute growl.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def growl
  @growl
end

.rails_loggerObject

Returns the value of attribute rails_logger.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def rails_logger
  @rails_logger
end

.raiseObject

Returns the value of attribute raise.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def raise
  @raise
end

.xmppObject

Returns the value of attribute xmpp.



17
18
19
# File 'lib/uniform_notifier.rb', line 17

def xmpp
  @xmpp
end

Class Method Details

.active_notifiersObject



21
22
23
# File 'lib/uniform_notifier.rb', line 21

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

.customized_logger=(logdev) ⇒ Object



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

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