nitrogen
Version:
Nitrogen is a platform for building connected devices. Nitrogen provides the authentication, authorization, and real time message passing framework so that you can focus on your device and application. All with a consistent development platform that lev
19 lines (14 loc) • 394 B
JavaScript
var Principal = require('./principal');
/**
* Device is a subclass of principal that houses all device specific principal functionality.
*
* @class Device
* @namespace nitrogen
*/
function Device() {
Principal.apply(this, arguments);
this.type = 'device';
}
Device.prototype = Object.create(Principal.prototype);
Device.prototype.constructor = Device;
module.exports = Device;