Class: MEACControl::Command::FanSpeed

Inherits:
Generic
  • Object
show all
Defined in:
lib/meac_control/command/fan_speed.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

#initializeFanSpeed

Returns a new instance of FanSpeed.



7
8
9
# File 'lib/meac_control/command/fan_speed.rb', line 7

def initialize
  @command = 'FanSpeed'
end

Instance Method Details

#autoObject



27
28
29
# File 'lib/meac_control/command/fan_speed.rb', line 27

def auto
  @value = 'auto'
end

#highObject



23
24
25
# File 'lib/meac_control/command/fan_speed.rb', line 23

def high
  @value = 'high'
end

#lowObject



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

def low
  @value = 'low'
end

#mid1Object



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

def mid1
  @value = 'mid1'
end

#mid2Object



19
20
21
# File 'lib/meac_control/command/fan_speed.rb', line 19

def mid2
  @value = 'mid2'
end