Class: DCA::Notifier

Inherits:
Object
  • Object
show all
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, options = {}
  @driver.push object, event, options unless @driver.nil?
end