Last active
August 29, 2015 14:11
This file contains hidden or 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