Class: Artoo::Drivers::Test
Overview
Test driver
Constant Summary
Constants inherited from Driver
Instance Attribute Summary
Attributes inherited from Driver
Instance Method Summary collapse
Methods inherited from Driver
#commands, #connection, #event_topic_name, #initialize, #interval, #known_command?, #method_missing, #pin, #require_interface
Constructor Details
This class inherits a constructor from Artoo::Drivers::Driver
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Artoo::Drivers::Driver
Instance Method Details
#command(method_name, *arguments) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/artoo/drivers/test.rb', line 13 def command(method_name, *arguments) if method_name == "publish" super else Logger.info "Driver command '#{method_name}'" true end end |
#start_driver ⇒ Object
7 8 9 10 11 |
# File 'lib/artoo/drivers/test.rb', line 7 def start_driver Logger.info "Test driver starting..." super end |