Class: Twilio::TwiML::SsmlW

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

Overview

Improving Pronunciation by Specifying Parts of Speech in <Say>

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

Returns a new instance of SsmlW.

Yields:

  • (_self)

Yield Parameters:


628
629
630
631
632
633
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 628

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