class Twilio::TwiML::Message
<Message> TwiML
Verb
Public Class Methods
new(body: nil, **keyword_args) { |self| ... }
click to toggle source
Calls superclass method
# File lib/twilio-ruby/twiml/messaging_response.rb 61 def initialize(body: nil, **keyword_args) 62 super(**keyword_args) 63 @name = 'Message' 64 @value = body unless body.nil? 65 yield(self) if block_given? 66 end
Public Instance Methods
body(message, **keyword_args)
click to toggle source
media(url, **keyword_args)
click to toggle source
Create a new <Media> element
- url
-
Media
URL - keyword_args
-
additional attributes
# File lib/twilio-ruby/twiml/messaging_response.rb 80 def media(url, **keyword_args) 81 append(Media.new(url, **keyword_args)) 82 end