Class: DCA::Notifier
- Inherits:
-
Object
- Object
- DCA::Notifier
- Defined in:
- lib/dca/notifier/notifier.rb
Class Method Summary collapse
Class Method Details
.create(config) ⇒ Object
3 4 5 |
# File 'lib/dca/notifier/notifier.rb', line 3 def self.create config @driver = "DCA::#{config[:driver]}Notifier".constantize.new config end |
.push(object, event, options = {}) ⇒ Object
7 8 9 |
# File 'lib/dca/notifier/notifier.rb', line 7 def self.push object, event, = {} @driver.push object, event, unless @driver.nil? end |