Created
April 25, 2015 17:14
-
-
Save Killavus/09a74bd54d2fbdcc0e72 to your computer and use it in GitHub Desktop.
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 DomainModel | |
constructor: (@id, @name, ... rest of arguments) -> | |
@fromJSON: (json) -> | |
new DomainModel(json.id, json.name, ... rest of arguments) | |
# put your domain logic here. | |
module.exports = DomainModel |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment