nl_tokens: Class is optional . if omitted a Class object will be created and returned . type is optional . if omitted constructor name is used as the usergrid type .
pl_tokens: function define ( Class , constructor , <mask> ) { if ( ! client ) { throw new Error ( 'Usergrid not configured' ) ; } if ( typeof Class === 'function' ) { type = constructor ; constructor = Class ; Class = { } ; } Class . _usergrid = { constructor : constructor , type : ( type ) ? type : constructor . name . toLowerCase ( ) } ; _ . mixin ( Class , usergridStatics ( client ) ) ; return Class ; }