class BrazeRuby::REST::ScheduleMessages
Attributes
external_user_ids[R]
in_local_time[R]
messages[R]
time[R]
Public Class Methods
new(api_key, braze_url, options, time: nil, messages: [], external_user_ids: [], in_local_time: false)
click to toggle source
Calls superclass method
BrazeRuby::REST::Base::new
# File lib/braze_ruby/rest/schedule_messages.rb, line 8 def initialize(api_key, braze_url, options, time: nil, messages: [], external_user_ids: [], in_local_time: false) @messages = messages @time = time @external_user_ids = external_user_ids @in_local_time = in_local_time super api_key, braze_url, options end
Public Instance Methods
perform()
click to toggle source
# File lib/braze_ruby/rest/schedule_messages.rb, line 16 def perform http.post "/messages/schedule/create", { external_user_ids: external_user_ids, schedule: { time: time, in_local_time: in_local_time }, messages: messages } end