Skip to content

Instantly share code, notes, and snippets.

@stephen
Last active August 29, 2015 14:11
Show Gist options
  • Save stephen/c832e82c2fd13ae4e72e to your computer and use it in GitHub Desktop.
Save stephen/c832e82c2fd13ae4e72e to your computer and use it in GitHub Desktop.
class Session extends BaseModel {
get definition() {
return {
user: 'string',
expirationTime: 'date'
};
}
// "instance methods"
expire() { ... }
renew(date) { ... }
// "class methods"
static findForUser(user) { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment