Class: APN::Jobs::SidekiqNotificationJob
- Inherits:
-
Object
- Object
- APN::Jobs::SidekiqNotificationJob
- Includes:
- Sidekiq::Worker
- Defined in:
- lib/apn/jobs/sidekiq_notification_job.rb
Overview
This is the class that’s actually enqueued via Sidekiq when user calls APN.notify
. It gets added to the apple_push_notifications
Sidekiq queue, which should only be operated on by workers of the APN::Sender
class.
Instance Method Summary collapse
-
#perform(token, opts) ⇒ Object
Build a notification from arguments and send to Apple.
Instance Method Details
#perform(token, opts) ⇒ Object
Build a notification from arguments and send to Apple
11 12 13 |
# File 'lib/apn/jobs/sidekiq_notification_job.rb', line 11 def perform(token, opts) APN.notify_sync(token, opts) end |