Code coverage report for api/user/Users.js

Statements: 100% (10 / 10)      Branches: 50% (1 / 2)      Functions: 100% (2 / 2)      Lines: 100% (10 / 10)      Ignored: none     

All files » api/user/ » Users.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 461 1                       1 294 294   294 294     1                                 982           1  
var Collection = require("./../Collection").Collection;
var UserMask = require("./UserMask").UserMask;
 
/**
 * @class Collection of Datum validation states
 
 * @name  Users
 * @description The Users is a minimal customization of the Collection
 * to add an internal model of UserMask.
 *
 * @extends Collection
 * @constructs
 */
var Users = function Users(options) {
  Eif (!this._fieldDBtype) {
    this._fieldDBtype = "Users";
  }
  this.debug("Constructing Users ", options);
  Collection.apply(this, arguments);
};
 
Users.prototype = Object.create(Collection.prototype, /** @lends Users.prototype */ {
  constructor: {
    value: Users
  },
 
  primaryKey: {
    value: "username"
  },
 
  INTERNAL_MODELS: {
    value: {
      item: UserMask
    }
  },
 
  sanitizeStringForPrimaryKey: {
    value: function(value) {
      return value;
    }
  }
 
});
 
exports.Users = Users;