class RailsPushNotifications::APNSApp
This class represents an Apple iOS application.
@author Carlos Alonso
Private Instance Methods
build_pusher()
click to toggle source
@return [RubyPushNotifications::APNS::APNSPusher] configured and
ready to push
# File lib/rails-push-notifications/apps/apns_app.rb, line 26 def build_pusher RubyPushNotifications::APNS::APNSPusher.new cert, sandbox_mode end
cert()
click to toggle source
@return [String] the certificate(dev or prod) to use
# File lib/rails-push-notifications/apps/apns_app.rb, line 20 def cert sandbox_mode ? apns_dev_cert : apns_prod_cert end
notification_type()
click to toggle source
@return [RubyPushNotifications::APNS::APNSNotification]. The type of
notifications this app manages
# File lib/rails-push-notifications/apps/apns_app.rb, line 32 def notification_type RubyPushNotifications::APNS::APNSNotification end