Module: BrazeRuby::Endpoints::TrackUsers

Included in:
API
Defined in:
lib/braze_ruby/endpoints/track_users.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#track_users_service=(value) ⇒ Object

Sets the attribute track_users_service

Parameters:

  • value

    the value to set the attribute track_users_service to.



6
7
8
# File 'lib/braze_ruby/endpoints/track_users.rb', line 6

def track_users_service=(value)
  @track_users_service = value
end

Instance Method Details

#track_attribute(**payload) ⇒ Object



20
21
22
# File 'lib/braze_ruby/endpoints/track_users.rb', line 20

def track_attribute(**payload)
  track_users(attributes: [payload])
end

#track_event(**payload) ⇒ Object



16
17
18
# File 'lib/braze_ruby/endpoints/track_users.rb', line 16

def track_event(**payload)
  track_users(events: [payload])
end

#track_purchase(**payload) ⇒ Object



12
13
14
# File 'lib/braze_ruby/endpoints/track_users.rb', line 12

def track_purchase(**payload)
  track_users(purchases: [payload])
end

#track_users(**payload) ⇒ Object



8
9
10
# File 'lib/braze_ruby/endpoints/track_users.rb', line 8

def track_users(**payload)
  track_users_service.perform(**payload)
end