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
- #update(user_preferences_self, body = {}) ⇒ Object
Constructor Details
#initialize(client) ⇒ UserPreferences
Returns a new instance of UserPreferences.
5487 5488 5489 |
# File 'lib/platform-api/client.rb', line 5487 def initialize(client) @client = client end |
Instance Method Details
#list(user_preferences_self) ⇒ Object
5499 5500 5501 |
# File 'lib/platform-api/client.rb', line 5499 def list(user_preferences_self) @client.user_preferences.list(user_preferences_self) end |
#update(user_preferences_self, body = {}) ⇒ Object
5513 5514 5515 |
# File 'lib/platform-api/client.rb', line 5513 def update(user_preferences_self, body = {}) @client.user_preferences.update(user_preferences_self, body) end |