Module: Pwush::Api::Devices
- Included in:
- Client
- Defined in:
- lib/pwush/api/devices.rb
Instance Method Summary collapse
- #application_open(hwid) ⇒ Object
- #create_test_device(params) ⇒ Object
- #list_test_devices ⇒ Object
- #message_delivery_event(hwid, hash_tag = nil) ⇒ Object
- #push_stat(hwid, hash_tag = nil) ⇒ Object
- #register_device(params) ⇒ Object
- #set_badge(hwid, badge) ⇒ Object
- #set_purchase(hwid, params = {}) ⇒ Object
- #unregister_device(hwid) ⇒ Object
Instance Method Details
#application_open(hwid) ⇒ Object
24 25 26 |
# File 'lib/pwush/api/devices.rb', line 24 def application_open(hwid) post(:applicationOpen, hwid: hwid) end |
#create_test_device(params) ⇒ Object
12 13 14 |
# File 'lib/pwush/api/devices.rb', line 12 def create_test_device(params) post(:createTestDevice, params) end |
#list_test_devices ⇒ Object
16 17 18 |
# File 'lib/pwush/api/devices.rb', line 16 def list_test_devices post(:listTestDevices) end |
#message_delivery_event(hwid, hash_tag = nil) ⇒ Object
32 33 34 |
# File 'lib/pwush/api/devices.rb', line 32 def (hwid, hash_tag = nil) post(:messageDeliveryEvent, hwid: hwid, hash: hash_tag) end |
#push_stat(hwid, hash_tag = nil) ⇒ Object
28 29 30 |
# File 'lib/pwush/api/devices.rb', line 28 def push_stat(hwid, hash_tag = nil) post(:pushStat, hwid: hwid, hash: hash_tag) end |
#register_device(params) ⇒ Object
4 5 6 |
# File 'lib/pwush/api/devices.rb', line 4 def register_device(params) post(:registerDevice, params) end |
#set_badge(hwid, badge) ⇒ Object
20 21 22 |
# File 'lib/pwush/api/devices.rb', line 20 def set_badge(hwid, badge) post(:setBadge, hwid: hwid, badge: badge) end |
#set_purchase(hwid, params = {}) ⇒ Object
36 37 38 |
# File 'lib/pwush/api/devices.rb', line 36 def set_purchase(hwid, params = {}) post(:setPurchase, params.merge(hwid: hwid)) end |
#unregister_device(hwid) ⇒ Object
8 9 10 |
# File 'lib/pwush/api/devices.rb', line 8 def unregister_device(hwid) post(:unregisterDevice, hwid: hwid) end |