class Twilio::TwiML::Client

<Client> TwiML Noun

Public Class Methods

new(identity: nil, **keyword_args) { |self| ... } click to toggle source
Calls superclass method Twilio::TwiML::TwiML::new
     # File lib/twilio-ruby/twiml/voice_response.rb
1084 def initialize(identity: nil, **keyword_args)
1085   super(**keyword_args)
1086   @name = 'Client'
1087   @value = identity unless identity.nil?
1088   yield(self) if block_given?
1089 end

Public Instance Methods

identity(client_identity, **keyword_args) click to toggle source

Create a new <Identity> element

client_identity

Identity of the client to dial

keyword_args

additional attributes

     # File lib/twilio-ruby/twiml/voice_response.rb
1095 def identity(client_identity, **keyword_args)
1096   append(Identity.new(client_identity, **keyword_args))
1097 end
parameter(name: nil, value: nil, **keyword_args) click to toggle source

Create a new <Parameter> element

name

The name of the custom parameter

value

The value of the custom parameter

keyword_args

additional attributes

     # File lib/twilio-ruby/twiml/voice_response.rb
1104 def parameter(name: nil, value: nil, **keyword_args)
1105   append(Parameter.new(name: name, value: value, **keyword_args))
1106 end