Class: Twilio::TwiML::Play

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

Overview

<Play> 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(url: nil, **keyword_args) {|_self| ... } ⇒ Play

Returns a new instance of Play.

Yields:

  • (_self)

Yield Parameters:



615
616
617
618
619
620
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 615

def initialize(url: nil, **keyword_args)
  super(**keyword_args)
  @name = 'Play'
  @value = url unless url.nil?
  yield(self) if block_given?
end