Class: Aws::Lex::Conversation::Response::ElicitSlot
- Defined in:
- lib/aws/lex/conversation/response/elicit_slot.rb
Instance Attribute Summary collapse
-
#slot_elicitation_style ⇒ Object
Returns the value of attribute slot_elicitation_style.
-
#slot_to_elicit ⇒ Object
Returns the value of attribute slot_to_elicit.
Attributes inherited from Base
#fulfillment_state, #messages, #request_attributes, #session_state
Instance Method Summary collapse
- #dialog_action ⇒ Object
-
#initialize(opts = {}) ⇒ ElicitSlot
constructor
A new instance of ElicitSlot.
Methods inherited from Base
Constructor Details
#initialize(opts = {}) ⇒ ElicitSlot
Returns a new instance of ElicitSlot.
10 11 12 13 14 |
# File 'lib/aws/lex/conversation/response/elicit_slot.rb', line 10 def initialize(opts = {}) super self.slot_to_elicit = opts.fetch(:slot_to_elicit) session_state.dialog_action = dialog_action end |
Instance Attribute Details
#slot_elicitation_style ⇒ Object
Returns the value of attribute slot_elicitation_style.
8 9 10 |
# File 'lib/aws/lex/conversation/response/elicit_slot.rb', line 8 def slot_elicitation_style @slot_elicitation_style end |
#slot_to_elicit ⇒ Object
Returns the value of attribute slot_to_elicit.
8 9 10 |
# File 'lib/aws/lex/conversation/response/elicit_slot.rb', line 8 def slot_to_elicit @slot_to_elicit end |
Instance Method Details
#dialog_action ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/aws/lex/conversation/response/elicit_slot.rb', line 16 def dialog_action Aws::Lex::Conversation::Type::DialogAction.shrink_wrap( type: 'ElicitSlot', slotToElicit: slot_to_elicit, slotElicitationStyle: slot_elicitation_style ) end |