Class: PlatformAPI::UserPreferences

Inherits:
Object
  • Object
show all
Defined in:
lib/platform-api/client.rb

Overview

Tracks a user's preferences and message dismissals

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ UserPreferences

Returns a new instance of UserPreferences.



1639
1640
1641
# File 'lib/platform-api/client.rb', line 1639

def initialize(client)
  @client = client
end

Instance Method Details

#update(body) ⇒ Object

Update User Preferences

Parameters:

  • body:

    the object to pass as the request payload



1651
1652
1653
# File 'lib/platform-api/client.rb', line 1651

def update(body)
  @client.user_preferences.update(body)
end

#user_preferencesObject

Retrieve User Preferences



1644
1645
1646
# File 'lib/platform-api/client.rb', line 1644

def user_preferences()
  @client.user_preferences.user_preferences()
end