Class: AppleTvKeys
- Defined in:
- lib/keys/apple_tv/apple_tv_keys.rb
Overview
The AppleTvKeys class extends Keys, adding keys common to all AppleTvs.
Instance Method Summary collapse
-
#initialize ⇒ AppleTvKeys
constructor
Public: Initializes AppleTv keys.
Constructor Details
#initialize ⇒ AppleTvKeys
Public: Initializes AppleTv keys.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/keys/apple_tv/apple_tv_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 |