Class: UniformNotifier::Raise
- Inherits:
-
Base
- Object
- Base
- UniformNotifier::Raise
show all
- Defined in:
- lib/uniform_notifier/raise.rb
Class Method Summary
collapse
Methods inherited from Base
inline_notify, out_of_channel_notify
Class Method Details
.active? ⇒ Boolean
6
7
8
|
# File 'lib/uniform_notifier/raise.rb', line 6
def active?
defined?(@exception_class) ? @exception_class : false
end
|
.setup_connection(exception_class) ⇒ Object
10
11
12
|
# File 'lib/uniform_notifier/raise.rb', line 10
def setup_connection(exception_class)
@exception_class = exception_class == true ? Exception : exception_class
end
|