Module: Pebble::SystemMessages
- Defined in:
- lib/pebble/system_messages.rb
Constant Summary collapse
- FIRMWARE_AVAILABLE =
0
- FIRMWARE_START =
1
- FIRMWARE_COMPLETE =
2
- FIRMWARE_FAIL =
3
- FIRMWARE_UP_TO_DATE =
4
- FIRMWARE_OUT_OF_DATE =
5
- BLUETOOTH_START_DISCOVERABLE =
6
- BLUETOOTH_END_DISCOVERABLE =
7
Class Method Summary collapse
Class Method Details
.for_code(code) ⇒ Object
12 13 14 |
# File 'lib/pebble/system_messages.rb', line 12 def self.for_code(code) constants.find { |constant| const_get(constant) == code } end |