Skip to content

Instantly share code, notes, and snippets.

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