Sha256: 81c839d4aa7027bf1385ac62f306ea911124b585e5cbae7ee73f79751cd01e06
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
module Ralyxa module ResponseEntities class Reprompt def initialize(reprompt_speech, reprompt_ssml) @reprompt_speech = reprompt_speech @reprompt_ssml = reprompt_ssml end def to_h {}.tap do |reprompt| reprompt[:outputSpeech] = Ralyxa::ResponseEntities::OutputSpeech.as_hash(speech: @reprompt_speech, ssml: @reprompt_ssml) end end def self.as_hash(reprompt_speech: nil, reprompt_ssml: false) new(reprompt_speech, reprompt_ssml).to_h end end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ralyxa-lambda-1.9.0 | lib/ralyxa/response_entities/reprompt.rb |
ralyxa-lambda-1.8.0 | lib/ralyxa/response_entities/reprompt.rb |
ralyxa-1.8.0 | lib/ralyxa/response_entities/reprompt.rb |