Last active
October 22, 2015 18:14
-
-
Save rawls238/53cdfe7bc9a90b7f78ef to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InviteSuggestions extends Experiment { | |
//do some logger configuration | |
setup() { | |
this.setName(‘InviteSuggestions’); | |
} | |
assign(params, args) { | |
if (!args.paying_user) { | |
return false; | |
} | |
params.set(‘suggestionCount’, new PlanOut.Ops.Random.UniformChoice(choices=[3, 4, 5], unit=user_id)); | |
params.set(‘inviteText’, new PlanOut.Ops.Random.UniformChoice(choices=[‘Invite’, ‘Gift’], unit=user_id)); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment