Skip to content

Instantly share code, notes, and snippets.

@jamesleelee
Forked from sergiors/gist:a89b5f4cb09b77c24c82
Created December 7, 2015 05:53
Show Gist options
  • Save jamesleelee/8d64c8ed4dd8e147c39c to your computer and use it in GitHub Desktop.
Save jamesleelee/8d64c8ed4dd8e147c39c to your computer and use it in GitHub Desktop.
User.js
var User = (function() {
'use strict';
var user = {};
function User(attrs) {
user.profile = attrs.profile || {};
user.address = attrs.address || {};
user.payments = attrs.payments || {};
}
User.prototype.getProfile = fucntion() {
return user.profile;
}
User.prototype.getAddress = fucntion() {
return user.address;
}
return User;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment