class APN::Jobs::ResqueNotificationJob
This is the class that's actually enqueued via Resque when user calls APN.notify
. It gets added to the apple_server_notifications
Resque queue, which should only be operated on by workers of the APN::Sender
class.
Public Class Methods
perform(token, opts)
click to toggle source
Build a notification from arguments and send to Apple
# File lib/apn/jobs/resque_notification_job.rb, line 11 def self.perform(token, opts) APN.notify_sync(token, opts) end