Module: Urbanairship::Push::Schedule
- Included in:
- Urbanairship
- Defined in:
- lib/urbanairship/push/schedule.rb
Instance Method Summary collapse
-
#local_scheduled_time(datetime) ⇒ Object
Select a local date and time for Scheduled Push.
-
#optimal_scheduled_time(date) ⇒ Object
Uses predictive analysis to send push at optimal time.
-
#scheduled_time(datetime) ⇒ Object
Select a date and time for Scheduled Push.
Instance Method Details
#local_scheduled_time(datetime) ⇒ Object
Select a local date and time for Scheduled Push
13 14 15 |
# File 'lib/urbanairship/push/schedule.rb', line 13 def local_scheduled_time(datetime) payload(:local_scheduled_time, datetime) end |
#optimal_scheduled_time(date) ⇒ Object
Uses predictive analysis to send push at optimal time
18 19 20 21 22 23 24 |
# File 'lib/urbanairship/push/schedule.rb', line 18 def optimal_scheduled_time(date) { 'best_time': { 'send_date': date } } end |
#scheduled_time(datetime) ⇒ Object
Select a date and time for Scheduled Push
8 9 10 |
# File 'lib/urbanairship/push/schedule.rb', line 8 def scheduled_time(datetime) payload(:scheduled_time, datetime) end |