Class: Twilio::TwiML::Play
- Defined in:
- lib/twilio-ruby/twiml/voice_response.rb
Overview
<Play> TwiML Verb
Instance Attribute Summary
Attributes inherited from TwiML
Instance Method Summary collapse
-
#initialize(url: nil, **keyword_args) {|_self| ... } ⇒ Play
constructor
A new instance of Play.
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.
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 |