Class: Dirigible::Push
- Inherits:
-
Object
- Object
- Dirigible::Push
- Defined in:
- lib/dirigible/push.rb
Overview
Class Method Summary collapse
-
.create(params) ⇒ Object
Send a push notification to a specified device or list of devices.
-
.validate(params) ⇒ Object
Accept the same range of payloads as /api/push, but parse and validate only, without sending any pushes.
Class Method Details
.create(params) ⇒ Object
Send a push notification to a specified device or list of devices. Must be one of:
-
A single Push Object
-
An array of one or more Push Object
17 18 19 |
# File 'lib/dirigible/push.rb', line 17 def self.create(params) Dirigible.post('/push', params) end |
.validate(params) ⇒ Object
Accept the same range of payloads as /api/push, but parse and validate only, without sending any pushes.
48 49 50 |
# File 'lib/dirigible/push.rb', line 48 def self.validate(params) Dirigible.post('/push/validate', params) end |