Class: Optimizely::BaseUserProfileService

Inherits:
Object
  • Object
show all
Defined in:
lib/optimizely/user_profile_service.rb

Instance Method Summary collapse

Instance Method Details

#lookup(user_id) ⇒ Object

Class encapsulating user profile service functionality. Override with your own implementation for storing and retrieving user profiles.



24
25
26
27
28
29
30
# File 'lib/optimizely/user_profile_service.rb', line 24

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



32
33
34
35
36
# File 'lib/optimizely/user_profile_service.rb', line 32

def save()
  # Saves a given user profile.
  #
  # user_profile - Hash user profile.
end