Class: FSR::App::Set
- Inherits:
-
Application
- Object
- Application
- FSR::App::Set
- Defined in:
- lib/fsr/app/set.rb
Overview
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set
Instance Method Summary (collapse)
- - (Object) arguments
-
- (Set) initialize(key, value)
constructor
A new instance of Set.
- - (Object) sendmsg
Methods inherited from Application
Constructor Details
- (Set) initialize(key, value)
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
- (Object) arguments
11 12 13 |
# File 'lib/fsr/app/set.rb', line 11 def arguments [@key, @value] end |
- (Object) sendmsg
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 |