Class: APND::Settings::AppleConnection
- Inherits:
-
Object
- Object
- APND::Settings::AppleConnection
- Defined in:
- lib/apnd/settings.rb
Overview
Settings for APND::Daemon::AppleConnection
Instance Attribute Summary collapse
-
#cert ⇒ Object
Path to APN cert for your application.
-
#cert_pass ⇒ Object
Password for APN cert, optional.
-
#host ⇒ Object
Host used to connect to Apple.
-
#port ⇒ Object
Port used to connect to Apple.
Instance Method Summary collapse
-
#initialize ⇒ AppleConnection
constructor
A new instance of AppleConnection.
Constructor Details
#initialize ⇒ AppleConnection
Returns a new instance of AppleConnection.
35 36 37 38 |
# File 'lib/apnd/settings.rb', line 35 def initialize @host = 'gateway.sandbox.push.apple.com' @port = 2195 end |
Instance Attribute Details
#cert ⇒ Object
Path to APN cert for your application
28 29 30 |
# File 'lib/apnd/settings.rb', line 28 def cert @cert end |
#cert_pass ⇒ Object
Password for APN cert, optional
33 34 35 |
# File 'lib/apnd/settings.rb', line 33 def cert_pass @cert_pass end |
#host ⇒ Object
Host used to connect to Apple
Development: gateway.sandbox.push.apple.com
Production: gateway.push.apple.com
18 19 20 |
# File 'lib/apnd/settings.rb', line 18 def host @host end |
#port ⇒ Object
Port used to connect to Apple
23 24 25 |
# File 'lib/apnd/settings.rb', line 23 def port @port end |