Skip to content

Instantly share code, notes, and snippets.

@rawls238
Last active October 22, 2015 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawls238/53cdfe7bc9a90b7f78ef to your computer and use it in GitHub Desktop.
Save rawls238/53cdfe7bc9a90b7f78ef to your computer and use it in GitHub Desktop.
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