Class: Importr::Notifier
- Inherits:
-
Object
- Object
- Importr::Notifier
- Defined in:
- lib/importr/notifier.rb
Class Method Summary collapse
Class Method Details
.notify(channel, msg) ⇒ Object
5 6 7 8 9 |
# File 'lib/importr/notifier.rb', line 5 def self.notify(channel, msg) if Importr::Config.web_socket_class.present? and defined?(Importr::Config.web_socket_class.constantize) Importr::Config.web_socket_class.constantize.send(Importr::Config.web_socket_method.to_sym, channel, msg) end end |