Module: Massive::Notifications::ClassMethods

Defined in:
lib/massive/notifications.rb

Instance Method Summary collapse

Instance Method Details

#notifier(name, options = {}) ⇒ Object



26
27
28
29
# File 'lib/massive/notifications.rb', line 26

def notifier(name, options={})
  @notifier_class = name.is_a?(Class) ? name : "massive/notifiers/#{name}".camelize.constantize
  @notifier_options = options
end

#notifier_classObject



31
32
33
# File 'lib/massive/notifications.rb', line 31

def notifier_class
  @notifier_class || Massive::Notifiers::Base
end

#notifier_optionsObject



35
36
37
# File 'lib/massive/notifications.rb', line 35

def notifier_options
  @notifier_options
end