Sha256: 3ff88ee114b8a5a9bbc56cf7525f178355c9424659f43a98998ffbc77d987981

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

module AlexaSkillsRuby
  module JsonObjects
    class OutputSpeech < JsonObject
      attributes :type, :text, :ssml

      def self.text(text)
        os = new
        os.text = text
        os.type = 'PlainText'
        os
      end

      def self.ssml(ssml)
        os = new
        os.ssml = ssml
        os.type = 'SSML'
        os
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alexa_skills_ruby-1.1.0 lib/alexa_skills_ruby/json_objects/output_speech.rb
alexa_skills_ruby-1.0.0 lib/alexa_skills_ruby/json_objects/output_speech.rb
alexa_skills_ruby-0.0.7 lib/alexa_skills_ruby/json_objects/output_speech.rb
alexa_skills_ruby-0.0.6 lib/alexa_skills_ruby/json_objects/output_speech.rb
alexa_skills_ruby-0.0.5 lib/alexa_skills_ruby/json_objects/output_speech.rb