Class: Twilio::TwiML::Sms

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

Overview

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

Returns a new instance of Sms.

Yields:

  • (_self)

Yield Parameters:


772
773
774
775
776
777
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 772

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