Class: Artoo::Drivers::Pebble
- Inherits:
-
Driver
- Object
- Driver
- Artoo::Drivers::Pebble
- Defined in:
- lib/artoo/drivers/pebble.rb
Overview
The pebble driver behaviors
Constant Summary collapse
- COMMANDS =
[:message_queue, :last_message]
Instance Method Summary collapse
- #last_message ⇒ Object
- #message_queue ⇒ Object
-
#start_driver ⇒ Object
Start driver and any required connections Public: Starts the driver.
Instance Method Details
#last_message ⇒ Object
22 23 24 |
# File 'lib/artoo/drivers/pebble.rb', line 22 def @messages.pop end |
#message_queue ⇒ Object
18 19 20 |
# File 'lib/artoo/drivers/pebble.rb', line 18 def @messages end |
#start_driver ⇒ Object
Start driver and any required connections Public: Starts the driver.
Returns null.
14 15 16 |
# File 'lib/artoo/drivers/pebble.rb', line 14 def start_driver @messages = [] end |