Sha256: abae62fcb11169866dd2175577cde23580c41525edade171bad6d36dd86122d8
Contents?: true
Size: 540 Bytes
Versions: 2
Compression:
Stored size: 540 Bytes
Contents
module APN::Jobs # This is the class that's actually enqueued via Sidekiq when user calls +APN.notify+. # It gets added to the +apple_server_notifications+ Sidekiq queue, which should only be operated on by # workers of the +APN::Sender+ class. class SidekiqNotificationJob include Sidekiq::Worker # Behind the scenes, this is the name of our Sidekiq queue @queue = QUEUE_NAME # Build a notification from arguments and send to Apple def perform(token, opts) APN.notify_sync(token, opts) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
apn_sender-2.0.2 | lib/apn/jobs/sidekiq_notification_job.rb |
apn_sender-2.0.1 | lib/apn/jobs/sidekiq_notification_job.rb |