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

#indent, #name

Instance Method Summary collapse

Methods inherited from TwiML

#append, 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:



257
258
259
260
261
262
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 257

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