Class: AlexaSkillsRuby::JsonObjects::OutputSpeech
- Inherits:
-
AlexaSkillsRuby::JsonObject
- Object
- AlexaSkillsRuby::JsonObject
- AlexaSkillsRuby::JsonObjects::OutputSpeech
- Defined in:
- lib/alexa_skills_ruby/json_objects/output_speech.rb
Class Method Summary collapse
Methods inherited from AlexaSkillsRuby::JsonObject
#as_json, attribute, inherited, #initialize, json_object_attribute, #populate_from_json, #serialize_attributes, #to_json
Constructor Details
This class inherits a constructor from AlexaSkillsRuby::JsonObject
Class Method Details
.ssml(ssml) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/alexa_skills_ruby/json_objects/output_speech.rb', line 13 def self.ssml(ssml) os = new os.ssml = ssml os.type = 'SSML' os end |
.text(text) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/alexa_skills_ruby/json_objects/output_speech.rb', line 6 def self.text(text) os = new os.text = text os.type = 'PlainText' os end |