class PlatformAPI::UserPreferences

Tracks a user's preferences and message dismissals

Public Class Methods

new(client) click to toggle source
# File lib/platform-api/client.rb, line 3568
def initialize(client)
  @client = client
end

Public Instance Methods

list(user_preferences_self) click to toggle source

Retrieve User Preferences

@param user_preferences_self: Implicit reference to currently authorized user

# File lib/platform-api/client.rb, line 3575
def list(user_preferences_self)
  @client.user_preferences.list(user_preferences_self)
end
update(user_preferences_self, body = {}) click to toggle source

Update User Preferences

@param user_preferences_self: Implicit reference to currently authorized user @param body: the object to pass as the request payload

# File lib/platform-api/client.rb, line 3583
def update(user_preferences_self, body = {})
  @client.user_preferences.update(user_preferences_self, body)
end