Class: Optimizely::BaseUserProfileService
- Inherits:
-
Object
- Object
- Optimizely::BaseUserProfileService
- Defined in:
- lib/optimizely/user_profile_service.rb
Instance Method Summary collapse
-
#lookup(user_id) ⇒ Object
Class encapsulating user profile service functionality.
- #save(user_profile) ⇒ Object
Instance Method Details
#lookup(user_id) ⇒ Object
Class encapsulating user profile service functionality. Override with your own implementation for storing and retrieving user profiles.
22 23 24 25 26 27 28 |
# File 'lib/optimizely/user_profile_service.rb', line 22 def lookup(user_id) # Retrieve the Hash user profile associated with a given user ID. # # user_id - String user ID # # Returns Hash user profile. end |
#save(user_profile) ⇒ Object
30 31 32 33 34 |
# File 'lib/optimizely/user_profile_service.rb', line 30 def save(user_profile) # Saves a given user profile. # # user_profile - Hash user profile. end |