Module: APNS
- Defined in:
- lib/mercurius/apns.rb,
lib/mercurius/apns/pem.rb,
lib/mercurius/apns/service.rb,
lib/mercurius/apns/connection.rb,
lib/mercurius/apns/notification.rb,
lib/mercurius/testing/apns/successful_connection.rb
Defined Under Namespace
Classes: Connection, Notification, Pem, Service, SuccessfulConnection
Constant Summary collapse
- HOSTS =
{ development: 'gateway.sandbox.push.apple.com', production: 'gateway.push.apple.com', }
Class Attribute Summary collapse
-
.host ⇒ Object
Returns the value of attribute host.
-
.pem ⇒ Object
Returns the value of attribute pem.
-
.port ⇒ Object
Returns the value of attribute port.
Class Method Summary collapse
Class Attribute Details
.host ⇒ Object
Returns the value of attribute host.
12 13 14 |
# File 'lib/mercurius/apns.rb', line 12 def host @host end |
.pem ⇒ Object
Returns the value of attribute pem.
12 13 14 |
# File 'lib/mercurius/apns.rb', line 12 def pem @pem end |
.port ⇒ Object
Returns the value of attribute port.
12 13 14 |
# File 'lib/mercurius/apns.rb', line 12 def port @port end |
Class Method Details
.mode=(mode) ⇒ Object
14 15 16 |
# File 'lib/mercurius/apns.rb', line 14 def mode=(mode) @host = HOSTS.fetch(mode.to_sym) { raise InvalidApnsModeError.new } end |