Class: Aws::Lex::Conversation::Response::ElicitIntent
- Defined in:
- lib/aws/lex/conversation/response/elicit_intent.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
Returns the value of attribute message.
-
#response_card ⇒ Object
Returns the value of attribute response_card.
Attributes inherited from Base
#fulfillment_state, #messages, #request_attributes, #session_state
Instance Method Summary collapse
- #dialog_action ⇒ Object
-
#initialize(opts = {}) ⇒ ElicitIntent
constructor
A new instance of ElicitIntent.
Methods inherited from Base
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
#message ⇒ Object
Returns the value of attribute message.
8 9 10 |
# File 'lib/aws/lex/conversation/response/elicit_intent.rb', line 8 def @message end |
#response_card ⇒ Object
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_action ⇒ Object
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 |