device
From the devices class, you can get reference to a device class by calling this function. Then you can perform various operations on a device using the device reference.
// Get reference to the devices class
// by calling the device method
var devices = devices.device(deviceID);