class Flic::Protocol::Primitives::Uuid
The uuid of a button (nil is represented as all zeros)
Constants
- NULL_UUID_OCTETS
- PRINTF_FORMAT_STRING
- SCANF_FORMAT_STRING
Public Instance Methods
get()
click to toggle source
# File lib/flic/protocol/primitives/uuid.rb, line 17 def get if NULL_UUID_OCTETS == octets nil else sprintf(PRINTF_FORMAT_STRING, *octets) end end
set(value)
click to toggle source
# File lib/flic/protocol/primitives/uuid.rb, line 25 def set(value) if value self.octets = value.scanf(SCANF_FORMAT_STRING) else self.octets = NULL_UUID_OCTETS end end