Class: Pushcrew::PushNotification
- Inherits:
-
Object
- Object
- Pushcrew::PushNotification
- Extended by:
- Pushcrew
- Defined in:
- lib/pushcrew.rb
Constant Summary
Constants included from Pushcrew
Class Method Summary collapse
-
.send_to_a_list_subscribers(notification) ⇒ JSON
Send to a List of Subscribers!.
-
.send_to_all_subscribers(notification) ⇒ JSON
Send to All Subscribers.
-
.send_to_an_individual_subscribers(notification) ⇒ JSON
Send to an Individual Subscriber.
-
.send_to_subscribers_a_particular_segment(notification, segment_id) ⇒ JSON
Send to Subscribers of a Particular Segment.
Methods included from Pushcrew
deleteRequest, getRequest, handle_error_response, patchRequest, postRequest, putRequest
Class Method Details
.send_to_a_list_subscribers(notification) ⇒ JSON
Send to a List of Subscribers!
Parameters:
127 128 129 |
# File 'lib/pushcrew.rb', line 127 def self.send_to_a_list_subscribers(notification) postRequest(notification, "send/list") end |
.send_to_all_subscribers(notification) ⇒ JSON
Send to All Subscribers
Parameters:
108 109 110 |
# File 'lib/pushcrew.rb', line 108 def self.send_to_all_subscribers(notification) postRequest(notification, "send/all") end |
.send_to_an_individual_subscribers(notification) ⇒ JSON
Send to an Individual Subscriber
Parameters:
136 137 138 |
# File 'lib/pushcrew.rb', line 136 def self.send_to_an_individual_subscribers(notification) postRequest(notification, "send/individual") end |
.send_to_subscribers_a_particular_segment(notification, segment_id) ⇒ JSON
Send to Subscribers of a Particular Segment
Parameters:
118 119 120 |
# File 'lib/pushcrew.rb', line 118 def self.send_to_subscribers_a_particular_segment(notification, segment_id) postRequest(notification, "send/segment/#{segment_id}") end |