Class: NotifyUser::Apns
Constant Summary collapse
- NO_ERROR =
-42- INVALID_TOKEN_ERROR =
8- CONNECTION =
APNConnection.new
Constants inherited from Push
Push::PAYLOAD_LIMIT, Push::SYMBOL_NAMES_SIZE
Instance Attribute Summary collapse
-
#push_options ⇒ Object
Returns the value of attribute push_options.
Instance Method Summary collapse
-
#initialize(notifications, devices, options) ⇒ Apns
constructor
A new instance of Apns.
- #push ⇒ Object
Constructor Details
#initialize(notifications, devices, options) ⇒ Apns
Returns a new instance of Apns.
12 13 14 15 16 17 |
# File 'app/models/notify_user/apns.rb', line 12 def initialize(notifications, devices, ) super(notifications, devices, ) = @devices = devices end |
Instance Attribute Details
#push_options ⇒ Object
Returns the value of attribute push_options.
10 11 12 |
# File 'app/models/notify_user/apns.rb', line 10 def end |
Instance Method Details
#push ⇒ Object
19 20 21 |
# File 'app/models/notify_user/apns.rb', line 19 def push send_notifications end |