Class: APND::Settings::AppleConnection

Inherits:
Object
  • Object
show all
Defined in:
lib/apnd/settings.rb

Overview

Settings for APND::Daemon::AppleConnection

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeAppleConnection

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

#certObject

Path to APN cert for your application



28
29
30
# File 'lib/apnd/settings.rb', line 28

def cert
  @cert
end

#cert_passObject

Password for APN cert, optional



33
34
35
# File 'lib/apnd/settings.rb', line 33

def cert_pass
  @cert_pass
end

#hostObject

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

#portObject

Port used to connect to Apple



23
24
25
# File 'lib/apnd/settings.rb', line 23

def port
  @port
end