Class: Twilio::TwiML::VirtualAgent

Inherits:
TwiML
  • Object
show all
Defined in:
lib/twilio-ruby/twiml/voice_response.rb

Overview

<VirtualAgent> TwiML Noun

Instance Attribute Summary

Attributes inherited from TwiML

#name

Instance Method Summary collapse

Methods inherited from TwiML

#add_child, #add_text, #append, #comment, to_lower_camel_case, #to_s, #xml

Constructor Details

#initialize(**keyword_args) {|_self| ... } ⇒ VirtualAgent

Returns a new instance of VirtualAgent.

Yields:

  • (_self)

Yield Parameters:



2109
2110
2111
2112
2113
2114
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2109

def initialize(**keyword_args)
  super(**keyword_args)
  @name = 'VirtualAgent'

  yield(self) if block_given?
end

Instance Method Details

#config(name: nil, value: nil, **keyword_args) ⇒ Object

Create a new <Config> element

name

The name of the custom config

value

The value of the custom config

keyword_args

additional attributes



2121
2122
2123
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2121

def config(name: nil, value: nil, **keyword_args)
  append(Config.new(name: name, value: value, **keyword_args))
end

#parameter(name: nil, value: nil, **keyword_args) ⇒ Object

Create a new <Parameter> element

name

The name of the custom parameter

value

The value of the custom parameter

keyword_args

additional attributes



2130
2131
2132
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 2130

def parameter(name: nil, value: nil, **keyword_args)
  append(Parameter.new(name: name, value: value, **keyword_args))
end