Class: Aws::Lex::Conversation::Response::ElicitSlot

Inherits:
Base
  • Object
show all
Defined in:
lib/aws/lex/conversation/response/elicit_slot.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#fulfillment_state, #messages, #request_attributes, #session_state

Instance Method Summary collapse

Methods inherited from Base

#to_lex

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_styleObject

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_elicitObject

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_actionObject



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