Class: Twilio::TwiML::SsmlEmphasis

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

Overview

Emphasizing Words 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| ... } ⇒ SsmlEmphasis

Returns a new instance of SsmlEmphasis.

Yields:

  • (_self)

Yield Parameters:


716
717
718
719
720
721
# File 'lib/twilio-ruby/twiml/voice_response.rb', line 716

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