Class: Adhearsion::Translator::Asterisk::AGIApp

Inherits:
Object
  • Object
show all
Defined in:
lib/adhearsion/translator/asterisk/agi_app.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, *args) ⇒ AGIApp

Returns a new instance of AGIApp



7
8
9
# File 'lib/adhearsion/translator/asterisk/agi_app.rb', line 7

def initialize(app, *args)
  @app, @args = app, args
end

Instance Method Details

#execute(call) ⇒ Object



11
12
13
# File 'lib/adhearsion/translator/asterisk/agi_app.rb', line 11

def execute(call)
  call.execute_agi_command "EXEC #{@app}", @args.join(',')
end