Class: BrazeRuby::REST::ScheduleMessages
- Defined in:
- lib/braze_ruby/rest/schedule_messages.rb
Instance Attribute Summary collapse
-
#external_user_ids ⇒ Object
readonly
Returns the value of attribute external_user_ids.
-
#in_local_time ⇒ Object
readonly
Returns the value of attribute in_local_time.
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(api_key, braze_url, options, time: nil, messages: [], external_user_ids: [], in_local_time: false) ⇒ ScheduleMessages
constructor
A new instance of ScheduleMessages.
- #perform ⇒ Object
Constructor Details
#initialize(api_key, braze_url, options, time: nil, messages: [], external_user_ids: [], in_local_time: false) ⇒ ScheduleMessages
Returns a new instance of ScheduleMessages.
8 9 10 11 12 13 14 |
# File 'lib/braze_ruby/rest/schedule_messages.rb', line 8 def initialize(api_key, braze_url, , time: nil, messages: [], external_user_ids: [], in_local_time: false) @messages = @time = time @external_user_ids = external_user_ids @in_local_time = in_local_time super(api_key, braze_url, ) end |
Instance Attribute Details
#external_user_ids ⇒ Object (readonly)
Returns the value of attribute external_user_ids.
6 7 8 |
# File 'lib/braze_ruby/rest/schedule_messages.rb', line 6 def external_user_ids @external_user_ids end |
#in_local_time ⇒ Object (readonly)
Returns the value of attribute in_local_time.
6 7 8 |
# File 'lib/braze_ruby/rest/schedule_messages.rb', line 6 def in_local_time @in_local_time end |
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
6 7 8 |
# File 'lib/braze_ruby/rest/schedule_messages.rb', line 6 def @messages end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
6 7 8 |
# File 'lib/braze_ruby/rest/schedule_messages.rb', line 6 def time @time end |
Instance Method Details
#perform ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# 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: } end |