index.js
function Device(apple_id, password, display_name) {
  if (!(this instanceof Device)) return new Device(apple_id, password, display_name);
  this.apple_id = apple_id;
  this.password = password;
  this.display_name = display_name;
  this.devices = [];
  this.authenticated = false;
}
function Device(apple_id, password, display_name) {
  if (!(this instanceof Device)) return new Device(apple_id, password, display_name);
  this.apple_id = apple_id;
  this.password = password;
  this.display_name = display_name;
  this.devices = [];
  this.authenticated = false;
}
function Device ( apple_id , password , display_name ) { if ( ! ( this instanceof Device ) ) return new Device ( apple_id , password , display_name ) ; this . apple_id = apple_id ; this . password = password ; this . display_name = display_name ; this . devices = [ ] ; this . authenticated = false ; }
Initialize a new `Device`.
@param {String} username
@param {String} password
@param {String} device_name
Initialize a new Device .