Class: Passbook::PushNotification
- Inherits:
-
Object
- Object
- Passbook::PushNotification
- Defined in:
- lib/passbook/push_notification.rb
Class Method Summary collapse
Class Method Details
.send_notification(device_token) ⇒ Object
3 4 5 6 7 8 |
# File 'lib/passbook/push_notification.rb', line 3 def self.send_notification(device_token) pusher = Grocer.pusher({:certificate => Passbook.notification_cert, :gateway => Passbook.notification_gateway}) notification = Grocer::PassbookNotification.new(:device_token => device_token) pusher.push notification end |