class AbstractNotifier::Notification
Notificaiton payload wrapper which contains information about the current notifier class and knows how to trigger the delivery
Attributes
owner[R]
payload[R]
Public Class Methods
new(owner, payload)
click to toggle source
# File lib/abstract_notifier/base.rb, line 10 def initialize(owner, payload) @owner = owner @payload = payload end
Public Instance Methods
notify_later()
click to toggle source
# File lib/abstract_notifier/base.rb, line 15 def notify_later return if AbstractNotifier.noop? owner.async_adapter.enqueue owner, payload end
notify_now()
click to toggle source
# File lib/abstract_notifier/base.rb, line 20 def notify_now return if AbstractNotifier.noop? owner.driver.call(payload) end