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.
-
#update(body) ⇒ Object
Update User Preferences.
-
#user_preferences ⇒ Object
Retrieve User Preferences.
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
1651 1652 1653 |
# File 'lib/platform-api/client.rb', line 1651 def update(body) @client.user_preferences.update(body) end |
#user_preferences ⇒ Object
Retrieve User Preferences
1644 1645 1646 |
# File 'lib/platform-api/client.rb', line 1644 def user_preferences() @client.user_preferences.user_preferences() end |