class Notifi::Notification

Public Instance Methods

fire_notification_event() click to toggle source
# File lib/notifi/notification.rb, line 21
def fire_notification_event
  self.subscriber.notification_event.call(self) if self.notification_event?
end
notification_event?() click to toggle source
# File lib/notifi/notification.rb, line 17
def notification_event?
  self.subscriber && self.subscriber.notification_event
end