class Tolliver::Jobs::DeliveryJob

Public Instance Methods

perform(notification_id) click to toggle source
# File lib/tolliver/jobs/delivery_job.rb, line 6
def perform(notification_id)

  # Instantiate notification object
  notification = Tolliver.notification_model.find_by_id(notification_id)
  return nil if notification.nil?

  # Call standard API
  Tolliver::Services::DeliveryService.instance.deliver(notification)

end