Skip to content

Instantly share code, notes, and snippets.

@marcelolebre
Created April 30, 2017 12:14
Show Gist options
  • Save marcelolebre/5c3c80a9efce16309d657bfcd4d1f812 to your computer and use it in GitHub Desktop.
Save marcelolebre/5c3c80a9efce16309d657bfcd4d1f812 to your computer and use it in GitHub Desktop.
class UserValue(ValueComposite):
def __init__(self, username, email, first_name, last_name):
super(UserValue, self).initialize({})
self.serialize_with(username=username)
self.serialize_with(email=email)
self.serialize_with(first_name=first_name)
self.serialize_with(last_name=last_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment