Class: IrPtz::Configuration
- Inherits:
-
Object
- Object
- IrPtz::Configuration
- Defined in:
- lib/ir_ptz.rb
Instance Attribute Summary collapse
-
#action_mappings ⇒ Object
Returns the value of attribute action_mappings.
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#device_path ⇒ Object
Returns the value of attribute device_path.
-
#escape_key ⇒ Object
Returns the value of attribute escape_key.
-
#help_key ⇒ Object
Returns the value of attribute help_key.
-
#record_key ⇒ Object
Returns the value of attribute record_key.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
28 29 30 31 32 33 34 35 |
# File 'lib/ir_ptz.rb', line 28 def initialize self.escape_key = 'e' self.help_key = '?' self.record_key = 'r' self.action_mappings = ArduinoIrRemote::DATA['action_mappings'] self.actions = ArduinoIrRemote::DATA['actions'] self.device_path = ArduinoIrRemote::DATA['device_path'] end |
Instance Attribute Details
#action_mappings ⇒ Object
Returns the value of attribute action_mappings.
25 26 27 |
# File 'lib/ir_ptz.rb', line 25 def action_mappings @action_mappings end |
#actions ⇒ Object
Returns the value of attribute actions.
25 26 27 |
# File 'lib/ir_ptz.rb', line 25 def actions @actions end |
#device_path ⇒ Object
Returns the value of attribute device_path.
26 27 28 |
# File 'lib/ir_ptz.rb', line 26 def device_path @device_path end |
#escape_key ⇒ Object
Returns the value of attribute escape_key.
25 26 27 |
# File 'lib/ir_ptz.rb', line 25 def escape_key @escape_key end |
#help_key ⇒ Object
Returns the value of attribute help_key.
25 26 27 |
# File 'lib/ir_ptz.rb', line 25 def help_key @help_key end |
#record_key ⇒ Object
Returns the value of attribute record_key.
25 26 27 |
# File 'lib/ir_ptz.rb', line 25 def record_key @record_key end |