Module: Rusen
- Defined in:
- lib/rusen.rb,
lib/rusen/version.rb,
lib/rusen/notifier.rb,
lib/rusen/settings.rb,
lib/rusen/notifiers.rb,
lib/rusen/notification.rb,
lib/rusen/middleware/rusen_rack.rb,
lib/rusen/notifiers/io_notifier.rb,
lib/rusen/notifiers/base_notifier.rb,
lib/rusen/notifiers/mail_notifier.rb,
lib/rusen/notifiers/pony_notifier.rb,
lib/rusen/middleware/rusen_sidekiq.rb,
lib/rusen/notifiers/log4r_notifier.rb
Defined Under Namespace
Modules: Middleware, Notifiers Classes: Notification, Notifier, Settings
Constant Summary collapse
- VERSION =
'0.0.3'
Class Method Summary collapse
- .notifier ⇒ Object
-
.notify(exception, request = nil, environment = nil, session = nil) ⇒ Object
Sends a notification to the configured outputs.
-
.settings ⇒ Rusen::Settings
Returns the global settings for rusen.
Class Method Details
.notifier ⇒ Object
23 24 25 |
# File 'lib/rusen.rb', line 23 def self.notifier @notifier || Notifier.new(@settings) end |
.notify(exception, request = nil, environment = nil, session = nil) ⇒ Object
Sends a notification to the configured outputs.
19 20 21 |
# File 'lib/rusen.rb', line 19 def self.notify(exception, request = nil, environment = nil, session = nil) notifier.notify(exception, request, environment, session) end |
.settings ⇒ Rusen::Settings
Returns the global settings for rusen.
This settings apply to the notifications sent with Rusen.notify
14 15 16 |
# File 'lib/rusen.rb', line 14 def self.settings @settings end |