class Passbook::PushNotification
Public Class Methods
pusher()
click to toggle source
# File lib/passbook/push_notification.rb, line 4 def pusher @pusher ||= Grocer.pusher( :certificate => Passbook.notification_cert, :passphrase => Passbook.notification_passphrase || "", :gateway => Passbook.notification_gateway ) end
send_notification(device_token)
click to toggle source
# File lib/passbook/push_notification.rb, line 12 def send_notification(device_token) notification = Grocer::PassbookNotification.new(:device_token => device_token) pusher.push notification end