Class: Pushwoosh::PushNotification
- Inherits:
-
Object
- Object
- Pushwoosh::PushNotification
- Defined in:
- lib/pushwoosh/push_notification.rb
Constant Summary collapse
- STRING_BYTE_LIMIT =
recommended value, see community.pushwoosh.com/questions/286/why-am-i-receiving-a-payload-error for more details
205
Instance Method Summary collapse
-
#initialize(auth_hash = {}) ⇒ PushNotification
constructor
A new instance of PushNotification.
- #notify_all(message, other_options = {}) ⇒ Object
- #notify_devices(message, devices, other_options = {}) ⇒ Object
Constructor Details
#initialize(auth_hash = {}) ⇒ PushNotification
Returns a new instance of PushNotification.
13 14 15 |
# File 'lib/pushwoosh/push_notification.rb', line 13 def initialize(auth_hash = {}) @auth_hash = auth_hash end |
Instance Method Details
#notify_all(message, other_options = {}) ⇒ Object
17 18 19 20 |
# File 'lib/pushwoosh/push_notification.rb', line 17 def notify_all(, = {}) .merge!(content: limited_content()) () end |
#notify_devices(message, devices, other_options = {}) ⇒ Object
22 23 24 25 |
# File 'lib/pushwoosh/push_notification.rb', line 22 def notify_devices(, devices, = {}) .merge!(content: limited_content(), devices: devices) () end |