Class: RokuKeys
Overview
The RokuKeys class extends Keys, adding keys common to all Rokus.
Instance Method Summary collapse
-
#initialize ⇒ RokuKeys
constructor
Public: Initializes Roku keys.
Constructor Details
#initialize ⇒ RokuKeys
Public: Initializes Roku keys.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/keys/roku/roku_keys.rb', line 8 def initialize assign( # Renamed arrow methods for proper grouping :ARROW_UP => 'up_arrow', :ARROW_DOWN => 'down_arrow', :ARROW_LEFT => 'left_arrow', :ARROW_RIGHT => 'right_arrow', :PAGE_UP => 'page_up', :MENU => 'menu', :SELECT => 'select', :REPLAY => 'replay', :SETTINGS => 'settings', :REWIND => 'rewind', :PLAY => 'play', :PAUSE => 'pause', # Renamed fast-forward for readability. :FAST_FORWARD => 'fastforward', :A => 'a', :B => 'b' ) end |