Class: VWO::UserProfile

Inherits:
Object
  • Object
show all
Defined in:
lib/vwo/user_profile.rb

Overview

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

Instance Method Summary collapse

Instance Method Details

#lookup(_user_id) ⇒ Object

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.



15
# File 'lib/vwo/user_profile.rb', line 15

def lookup(_user_id); end

#save(_user_profile_obj) ⇒ Object

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.



21
# File 'lib/vwo/user_profile.rb', line 21

def save(); end