Class: TivoKeys
Overview
The TivoKeys class extends Keys, adding keys common to all Tivos.
Instance Method Summary collapse
-
#initialize ⇒ TivoKeys
constructor
Public: Initializes Tivo keys.
Constructor Details
#initialize ⇒ TivoKeys
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 |