class VWO::UserProfile

Abstract class encapsulating user profile service functionality. Override with your own implementation for storing And retrieving the user profile.

Public Instance Methods

lookup(_user_id) click to toggle source

Abstract method, must be defined to fetch the User profile dict corresponding to the user_id.

@param :user_id ID for user whose profile needs to be retrieved. @return :user_profile_obj Object representing the user's profile.

# File lib/vwo/user_profile.rb, line 15
def lookup(_user_id); end
save(_user_profile_obj) click to toggle source

Abstract method, must be to defined to save The user profile dict sent to this method. @param :user_profile_obj Object representing the user's profile.

# File lib/vwo/user_profile.rb, line 21
def save(_user_profile_obj); end