Class: PlatformAPI::UserPreferences
- Inherits:
-
Object
- Object
- PlatformAPI::UserPreferences
- Defined in:
- lib/platform-api/client.rb
Overview
Tracks a user's preferences and message dismissals
Instance Method Summary collapse
-
#initialize(client) ⇒ UserPreferences
constructor
A new instance of UserPreferences.
-
#list(user_preferences_self) ⇒ Object
Retrieve User Preferences.
-
#update(user_preferences_self, body = {}) ⇒ Object
Update User Preferences.
Constructor Details
#initialize(client) ⇒ UserPreferences
Returns a new instance of UserPreferences.
2338 2339 2340 |
# File 'lib/platform-api/client.rb', line 2338 def initialize(client) @client = client end |
Instance Method Details
#list(user_preferences_self) ⇒ Object
Retrieve User Preferences
2345 2346 2347 |
# File 'lib/platform-api/client.rb', line 2345 def list(user_preferences_self) @client.user_preferences.list(user_preferences_self) end |
#update(user_preferences_self, body = {}) ⇒ Object
Update User Preferences
2353 2354 2355 |
# File 'lib/platform-api/client.rb', line 2353 def update(user_preferences_self, body = {}) @client.user_preferences.update(user_preferences_self, body) end |