Class: Twilio::TwiML::Media

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

Overview

<Media> TwiML Noun

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, **keyword_args) {|_self| ... } ⇒ Media

Returns a new instance of Media.

Yields:

  • (_self)

Yield Parameters:



88
89
90
91
92
93
# File 'lib/twilio-ruby/twiml/messaging_response.rb', line 88

def initialize(url, **keyword_args)
  super(**keyword_args)
  @name = 'Media'
  @value = url
  yield(self) if block_given?
end