Class: Twilio::TwiML::Refer

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

Overview

<Refer> TwiML Verb

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| ... } ⇒ Refer

Returns a new instance of Refer.

Yields:

  • (_self)

Yield Parameters:



308
309
310
311
312
313
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 308

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

  yield(self) if block_given?
end

Instance Method Details

#sip(sip_url, **keyword_args) ⇒ Object

Create a new <Sip> element

sip_url

SIP URL

keyword_args

additional attributes



319
320
321
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 319

def sip(sip_url, **keyword_args)
  append(ReferSip.new(sip_url, **keyword_args))
end