Class: IrPtz::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/ir_ptz.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_mappingsObject

Returns the value of attribute action_mappings.



25
26
27
# File 'lib/ir_ptz.rb', line 25

def action_mappings
  @action_mappings
end

#actionsObject

Returns the value of attribute actions.



25
26
27
# File 'lib/ir_ptz.rb', line 25

def actions
  @actions
end

#device_pathObject

Returns the value of attribute device_path.



26
27
28
# File 'lib/ir_ptz.rb', line 26

def device_path
  @device_path
end

#escape_keyObject

Returns the value of attribute escape_key.



25
26
27
# File 'lib/ir_ptz.rb', line 25

def escape_key
  @escape_key
end

#help_keyObject

Returns the value of attribute help_key.



25
26
27
# File 'lib/ir_ptz.rb', line 25

def help_key
  @help_key
end

#record_keyObject

Returns the value of attribute record_key.



25
26
27
# File 'lib/ir_ptz.rb', line 25

def record_key
  @record_key
end