Class: FSR::App::Callcenter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Application

#app_name, #raw, #to_s

Constructor Details

#initialize(queue) ⇒ Callcenter

Returns a new instance of Callcenter.



6
7
8
# File 'lib/fsr/app/callcenter.rb', line 6

def initialize(queue)
  @queue = queue
end

Instance Attribute Details

#queueObject (readonly)

Returns the value of attribute queue.



5
6
7
# File 'lib/fsr/app/callcenter.rb', line 5

def queue
  @queue
end

Instance Method Details

#argumentsObject



10
11
12
# File 'lib/fsr/app/callcenter.rb', line 10

def arguments
  [queue]
end

#sendmsgObject



14
15
16
# File 'lib/fsr/app/callcenter.rb', line 14

def sendmsg
  "call-command: execute\nexecute-app-name: %s\nexecute-app-arg: %s\nevent-lock:true\n\n" % [app_name, arguments.join(" ")]
end