Class: IrPtz::IrCommandRecorder::Command
- Inherits:
-
Struct
- Object
- Struct
- IrPtz::IrCommandRecorder::Command
- Defined in:
- lib/ir_ptz/ir_command_recorder.rb
Instance Attribute Summary collapse
-
#action_code ⇒ Object
Returns the value of attribute action_code.
-
#key ⇒ Object
Returns the value of attribute key.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
Instance Attribute Details
#action_code ⇒ Object
Returns the value of attribute action_code
5 6 7 |
# File 'lib/ir_ptz/ir_command_recorder.rb', line 5 def action_code @action_code end |
#key ⇒ Object
Returns the value of attribute key
5 6 7 |
# File 'lib/ir_ptz/ir_command_recorder.rb', line 5 def key @key end |
#title ⇒ Object
Returns the value of attribute title
5 6 7 |
# File 'lib/ir_ptz/ir_command_recorder.rb', line 5 def title @title end |
Instance Method Details
#save ⇒ Object
6 7 8 9 10 11 |
# File 'lib/ir_ptz/ir_command_recorder.rb', line 6 def save ArduinoIrRemote::DATA['action_mappings'][key] = title ArduinoIrRemote::DATA['actions'][title] = action_code ArduinoIrRemote::DATA.save puts "#{title} saved!" end |