Class: MEACControl::Command::Drive

Inherits:
Generic
  • Object
show all
Defined in:
lib/meac_control/command/drive.rb

Instance Attribute Summary

Attributes inherited from Generic

#command, #value

Instance Method Summary collapse

Methods inherited from Generic

#command_set?, #hash_for, request

Constructor Details

#initializeDrive

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

#offObject



15
16
17
# File 'lib/meac_control/command/drive.rb', line 15

def off
  @value = 'OFF'
end

#onObject



11
12
13
# File 'lib/meac_control/command/drive.rb', line 11

def on
  @value = 'ON'
end