Class: FSR::App::Set
- Inherits:
-
Application
- Object
- Application
- FSR::App::Set
- Defined in:
- lib/fsr/app/set.rb
Overview
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(key, value) ⇒ Set
constructor
A new instance of Set.
- #sendmsg ⇒ Object
Methods inherited from Application
Constructor Details
#initialize(key, value) ⇒ Set
Returns a new instance of Set.
6 7 8 9 |
# File 'lib/fsr/app/set.rb', line 6 def initialize(key, value) @key = key @value = value end |
Instance Method Details
#arguments ⇒ Object
11 12 13 |
# File 'lib/fsr/app/set.rb', line 11 def arguments [@key, @value] end |
#sendmsg ⇒ Object
15 16 17 |
# File 'lib/fsr/app/set.rb', line 15 def sendmsg "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments.join("=")] end |