Skip to content

Instantly share code, notes, and snippets.

@dannewns
Created January 4, 2015 18:13
Show Gist options
  • Save dannewns/cd77600e3d30a82a81c1 to your computer and use it in GitHub Desktop.
Save dannewns/cd77600e3d30a82a81c1 to your computer and use it in GitHub Desktop.
//Current
$devices = $cube->get('devices/');
//Just wondering if it might be worth having some common methods such as
$devices = $cube->devices();
$device = $cube->getDevice($deviceId);
$device = $cube->getDeviceCurrentState($deviceId);
$device = $cube->getDeviceHistroy($deviceId, $start_date, $end_date, $resolution);
//Not sure if you think this is a dumb idea?
//they would just internally call the get function it also might be worth adding some method visibility??
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment