Skip to content

Commit

Permalink
changing decisions to experiment_bucket_map
Browse files Browse the repository at this point in the history
  • Loading branch information
aliabbasrizvi committed May 17, 2017
1 parent 8041cf0 commit bec330f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions optimizely/user_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,16 @@


class UserProfile(object):
""" Class encapsulating information representing a user's profile. """
""" Class encapsulating information representing a user's profile.
def __init__(self, user_id, decisions=None, **kwargs):
user_id: User's identifier.
experiment_bucket_map: Dict mapping experiment ID to dict consisting of the
variation ID identifying the variation for the user.
"""

def __init__(self, user_id, experiment_bucket_map=None, **kwargs):
self.user_id = user_id
self.decisions = decisions or {}
self.experiment_bucket_map = experiment_bucket_map or {}


class UserProfileService(object):
Expand Down

0 comments on commit bec330f

Please sign in to comment.