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, wrap_js_association
Class Method Details
.active? ⇒ Boolean
3
4
5
|
# File 'lib/uniform_notifier/raise.rb', line 3
def self.active?
@exception_class
end
|
.out_of_channel_notify(message) ⇒ Object
7
8
9
10
11
|
# File 'lib/uniform_notifier/raise.rb', line 7
def self.out_of_channel_notify( message )
return unless self.active?
raise @exception_class, message
end
|
.setup_connection(exception_class) ⇒ Object
13
14
15
|
# File 'lib/uniform_notifier/raise.rb', line 13
def self.setup_connection(exception_class)
@exception_class = exception_class == true ? Exception : exception_class
end
|