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