Class: TivoKeys

Inherits:
BaseKeys show all
Defined in:
lib/keys/tivo/tivo_keys.rb

Overview

The TivoKeys class extends Keys, adding keys common to all Tivos.

Instance Method Summary collapse

Constructor Details

#initializeTivoKeys

Public: Initializes Tivo keys.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/keys/tivo/tivo_keys.rb', line 8

def initialize
  assign(
      # Renamed arrows so they are sorted together. This is consistent with the naming for "volume" and "channel".
      :ARROW_UP => 'up_arrow',
      :ARROW_DOWN => 'down_arrow',
      :ARROW_LEFT => 'left_arrow',
      :ARROW_RIGHT => 'right_arrow',
      :SELECT => 'select',
      :SELECT_LONG => 'select_long',
      :MENU => 'menu',
      :MENU_LONG => 'menu_long',
      :MENU_DOUBLE => 'menu_double',
      :PLAY => 'play',
      :PAUSE => 'play'
  )
end