Last active
August 29, 2015 14:11
-
-
Save stephen/c832e82c2fd13ae4e72e 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 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