Class: RokuTvKeys

Inherits:
BaseKeys show all
Defined in:
lib/keys/roku_tv/roku_tv_keys.rb

Overview

The RokuTvKeys class extends Keys, adding keys common to all Roku Tvs.

Instance Method Summary collapse

Constructor Details

#initializeRokuTvKeys

Public: Initializes Roku Tv keys.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# File 'lib/keys/roku_tv/roku_tv_keys.rb', line 8

def initialize
  # todo this needs to be updated when we get the new remote file installed
  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