Class: FSR::App::Set

Inherits:
Application show all
Defined in:
lib/fsr/app/set.rb

Overview

http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_set

Instance Method Summary (collapse)

Methods inherited from Application

#app_name, #raw, #to_s

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