Class: AlexaRubykit::Dialog
- Inherits:
-
Object
- Object
- AlexaRubykit::Dialog
- Defined in:
- lib/alexa_rubykit/response/dialog.rb
Overview
Represents the encapsulation of Amazon Alexa Dialog Interface developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/dialog-interface-reference
Constant Summary collapse
- DELEGATE_TYPE =
"Dialog.Delegate".freeze
- ELICIT_SLOT_TYPE =
"Dialog.ElicitSlot".freeze
- CONFIRM_SLOT_TYPE =
"Dialog.ConfirmSlot".freeze
- CONFIRM_INTENT_TYPE =
"Dialog.ConfirmIntent".freeze
Class Method Summary collapse
- .confirm_intent_directive(updated_intents) ⇒ Object
- .confirm_slot_directive(slot, updated_intents) ⇒ Object
- .delegate_directive(updated_intents) ⇒ Object
- .elicit_slot_directive(slot, updated_intents) ⇒ Object
Class Method Details
.confirm_intent_directive(updated_intents) ⇒ Object
34 35 36 37 38 39 |
# File 'lib/alexa_rubykit/response/dialog.rb', line 34 def confirm_intent_directive(updated_intents) { 'type' => CONFIRM_INTENT_TYPE, 'updatedIntent' => updated_intents } end |
.confirm_slot_directive(slot, updated_intents) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/alexa_rubykit/response/dialog.rb', line 26 def confirm_slot_directive(slot, updated_intents) { 'type' => CONFIRM_SLOT_TYPE, 'slotToConfirm' => slot, 'updatedIntent' => updated_intents } end |
.delegate_directive(updated_intents) ⇒ Object
11 12 13 14 15 16 |
# File 'lib/alexa_rubykit/response/dialog.rb', line 11 def delegate_directive(updated_intents) { 'type' => DELEGATE_TYPE, 'updatedIntent' => updated_intents } end |
.elicit_slot_directive(slot, updated_intents) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/alexa_rubykit/response/dialog.rb', line 18 def elicit_slot_directive(slot, updated_intents) { 'type' => ELICIT_SLOT_TYPE, 'slotToElicit' => slot, 'updatedIntent' => updated_intents } end |