class DCA::Notifier

Public Class Methods

create(config) click to toggle source
# 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 = {}) click to toggle source
# File lib/dca/notifier/notifier.rb, line 7
def self.push object, event, options = {}
  @driver.push object, event, options unless @driver.nil?
end