Class: Bandwidth::Xml::Verbs::SpeakSentence
- Inherits:
-
Object
- Object
- Bandwidth::Xml::Verbs::SpeakSentence
- Includes:
- XmlVerb
- Defined in:
- lib/bandwidth/xml/verbs/speak_sentence.rb
Overview
The SpeakSentence verb is used to convert any text into speak for the caller
Instance Method Summary collapse
Methods included from XmlVerb
#compact_hash, #initialize, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Bandwidth::Xml::XmlVerb
Instance Method Details
#to_xml(xml) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/bandwidth/xml/verbs/speak_sentence.rb', line 8 def to_xml(xml) xml.SpeakSentence(sentence, compact_hash({ 'voice' => voice, 'locale' => locale, 'gender' => gender })) end |