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/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, CustomizedLogger, Growl, JavascriptAlert, JavascriptConsole, NotificationError, RailsLogger, Xmpp
Constant Summary collapse
- NOTIFIERS =
[JavascriptAlert, JavascriptConsole, Growl, Xmpp, RailsLogger, CustomizedLogger, AirbrakeNotifier]
- VERSION =
"1.2.0"
Class Attribute Summary collapse
-
.airbrake ⇒ Object
Returns the value of attribute airbrake.
-
.alert ⇒ Object
Returns the value of attribute alert.
-
.console ⇒ Object
Returns the value of attribute console.
-
.growl ⇒ Object
Returns the value of attribute growl.
-
.rails_logger ⇒ Object
Returns the value of attribute rails_logger.
-
.xmpp ⇒ Object
Returns the value of attribute xmpp.
Class Method Summary collapse
Class Attribute Details
.airbrake ⇒ Object
Returns the value of attribute airbrake.
14 15 16 |
# File 'lib/uniform_notifier.rb', line 14 def airbrake @airbrake end |
.alert ⇒ Object
Returns the value of attribute alert.
14 15 16 |
# File 'lib/uniform_notifier.rb', line 14 def alert @alert end |
.console ⇒ Object
Returns the value of attribute console.
14 15 16 |
# File 'lib/uniform_notifier.rb', line 14 def console @console end |
.growl ⇒ Object
Returns the value of attribute growl.
14 15 16 |
# File 'lib/uniform_notifier.rb', line 14 def growl @growl end |
.rails_logger ⇒ Object
Returns the value of attribute rails_logger.
14 15 16 |
# File 'lib/uniform_notifier.rb', line 14 def rails_logger @rails_logger end |
.xmpp ⇒ Object
Returns the value of attribute xmpp.
14 15 16 |
# File 'lib/uniform_notifier.rb', line 14 def xmpp @xmpp end |
Class Method Details
.active_notifiers ⇒ Object
18 19 20 |
# File 'lib/uniform_notifier.rb', line 18 def active_notifiers NOTIFIERS.select { |notifier| notifier.active? } end |
.customized_logger=(logdev) ⇒ Object
30 31 32 |
# File 'lib/uniform_notifier.rb', line 30 def customized_logger=(logdev) UniformNotifier::CustomizedLogger.setup(logdev) end |