Class: MEACControl::Command::Drive
- Defined in:
- lib/meac_control/command/drive.rb
Instance Attribute Summary
Attributes inherited from Generic
Instance Method Summary collapse
-
#initialize ⇒ Drive
constructor
A new instance of Drive.
- #off ⇒ Object
- #on ⇒ Object
Methods inherited from Generic
#command_set?, #hash_for, request
Constructor Details
#initialize ⇒ Drive
Returns a new instance of Drive.
7 8 9 |
# File 'lib/meac_control/command/drive.rb', line 7 def initialize @command = 'Drive' end |
Instance Method Details
#off ⇒ Object
15 16 17 |
# File 'lib/meac_control/command/drive.rb', line 15 def off @value = 'OFF' end |
#on ⇒ Object
11 12 13 |
# File 'lib/meac_control/command/drive.rb', line 11 def on @value = 'ON' end |