Module: Hue

Defined in:
lib/hue.rb,
lib/hue/cli.rb,
lib/hue/group.rb,
lib/hue/light.rb,
lib/hue/scene.rb,
lib/hue/client.rb,
lib/hue/errors.rb,
lib/hue/bridge.rb,
lib/hue/version.rb,
lib/hue/editable_state.rb,
lib/hue/translate_keys.rb

Defined Under Namespace

Modules: EditableState, TranslateKeys Classes: Bridge, Cli, Client, Error, Group, GroupTooFull, InternalError, InvalidJSON, InvalidUsername, InvalidValueForParameter, Light, LinkButtonNotPressed, MethodNotAvailable, MissingBody, NoBridgeFound, ParameterNotAvailable, ParameterNotModifiable, ParameterNotModifiableWhileOff, ResourceNotAvailable, Scene, TooManyGroups, UnauthorizedUser, UnknownError

Constant Summary collapse

USERNAME_RANGE =
10..40
ERROR_MAP =

Status code to exception map

{
    1 => Hue::UnauthorizedUser,
    2 => Hue::InvalidJSON,
    3 => Hue::ResourceNotAvailable,
    4 => Hue::MethodNotAvailable,
    5 => Hue::MissingBody,
    6 => Hue::ParameterNotAvailable,
    7 => Hue::InvalidValueForParameter,
    8 => Hue::ParameterNotModifiable,
  901 => Hue::InternalError,
  101 => Hue::LinkButtonNotPressed,
  201 => Hue::ParameterNotModifiableWhileOff,
  301 => Hue::TooManyGroups,
  302 => Hue::GroupTooFull
}
VERSION =
'0.1.5'