Module: BrazeRuby::Deprecated

Included in:
API
Defined in:
lib/braze_ruby/deprecated.rb

Instance Method Summary collapse

Instance Method Details

#schedule_message(date, message, segment_id, local_timezone = false) ⇒ Object



15
16
17
18
# File 'lib/braze_ruby/deprecated.rb', line 15

def schedule_message(date, message, segment_id, local_timezone = false)
  warn("[BrazeRuby] `schedule_message` is deprecated. Please use `schedule_messages` instead.")
  schedule_messages(send_at: date, messages: message, segment_id: segment_id, local_timezone: local_timezone)
end

#send_message(message, user_ids, segment_ids = nil) ⇒ Object



10
11
12
13
# File 'lib/braze_ruby/deprecated.rb', line 10

def send_message(message, user_ids, segment_ids = nil)
  warn("[BrazeRuby] `send_message` is deprecated. Please use `send_messages` instead.")
  send_messages(messages: message, user_ids: user_ids, segment_ids: segment_ids)
end

#track(attribute, events = [], purchases = []) ⇒ Object



5
6
7
8
# File 'lib/braze_ruby/deprecated.rb', line 5

def track(attribute, events = [], purchases = [])
  warn("[BrazeRuby] `track` is deprecated. Please use `track_users` instead.")
  track_users(attribute: attribute, events: events, purchases: purchases)
end