Class: Aws::Lex::Conversation::Response::ElicitIntent

Inherits:
Base
  • Object
show all
Defined in:
lib/aws/lex/conversation/response/elicit_intent.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 = {}) ⇒ ElicitIntent

Returns a new instance of ElicitIntent.



10
11
12
13
14
15
# File 'lib/aws/lex/conversation/response/elicit_intent.rb', line 10

def initialize(opts = {})
  super
  session_state.dialog_action = dialog_action
  # by default, we set intent as nil unless overridden
  session_state.intent = opts[:intent]
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



8
9
10
# File 'lib/aws/lex/conversation/response/elicit_intent.rb', line 8

def message
  @message
end

#response_cardObject

Returns the value of attribute response_card.



8
9
10
# File 'lib/aws/lex/conversation/response/elicit_intent.rb', line 8

def response_card
  @response_card
end

Instance Method Details

#dialog_actionObject



17
18
19
20
21
# File 'lib/aws/lex/conversation/response/elicit_intent.rb', line 17

def dialog_action
  Aws::Lex::Conversation::Type::DialogAction.shrink_wrap(
    type: 'ElicitIntent'
  )
end