Class: Tolliver::Jobs::DeliveryJob
- Inherits:
-
ActiveJob::Base
- Object
- ActiveJob::Base
- Tolliver::Jobs::DeliveryJob
- Defined in:
- lib/tolliver/jobs/delivery_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(notification_id) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# 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 |