Class: FSR::App::Callcenter
- Inherits:
-
Application
- Object
- Application
- FSR::App::Callcenter
- Defined in:
- lib/fsr/app/callcenter.rb
Instance Attribute Summary collapse
-
#queue ⇒ Object
readonly
Returns the value of attribute queue.
Instance Method Summary collapse
- #arguments ⇒ Object
-
#initialize(queue) ⇒ Callcenter
constructor
A new instance of Callcenter.
- #sendmsg ⇒ Object
Methods inherited from Application
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
#queue ⇒ Object (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
#arguments ⇒ Object
10 11 12 |
# File 'lib/fsr/app/callcenter.rb', line 10 def arguments [queue] end |
#sendmsg ⇒ Object
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 |