Method: Command#get_variable

Defined in:
lib/ruby-agi/command.rb

#get_variable(name) ⇒ Object

Raises:



208
209
210
211
212
213
# File 'lib/ruby-agi/command.rb', line 208

def get_variable(name)
  cmd = "GET VARIABLE #{name.to_s}"
  rs = exec_command(cmd, GetVariable)
  raise CommandError, rs.to_s if rs.command_error?
  return rs
end