Class: Aws::Lex::Conversation::Response::Base
- Inherits:
-
Object
- Object
- Aws::Lex::Conversation::Response::Base
- Defined in:
- lib/aws/lex/conversation/response/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#fulfillment_state ⇒ Object
Returns the value of attribute fulfillment_state.
-
#messages ⇒ Object
Returns the value of attribute messages.
-
#request_attributes ⇒ Object
Returns the value of attribute request_attributes.
-
#session_state ⇒ Object
Returns the value of attribute session_state.
Instance Method Summary collapse
- #dialog_action ⇒ Object
-
#initialize(opts = {}) ⇒ Base
constructor
A new instance of Base.
- #to_lex ⇒ Object
Constructor Details
#initialize(opts = {}) ⇒ Base
Returns a new instance of Base.
15 16 17 18 19 20 |
# File 'lib/aws/lex/conversation/response/base.rb', line 15 def initialize(opts = {}) self.session_state = opts[:session_state] self. = opts[:messages] self.request_attributes = opts[:request_attributes] session_state.intent.state = opts.fetch(:fulfillment_state) { session_state.intent.state } end |
Instance Attribute Details
#fulfillment_state ⇒ Object
Returns the value of attribute fulfillment_state.
8 9 10 |
# File 'lib/aws/lex/conversation/response/base.rb', line 8 def fulfillment_state @fulfillment_state end |
#messages ⇒ Object
Returns the value of attribute messages.
8 9 10 |
# File 'lib/aws/lex/conversation/response/base.rb', line 8 def @messages end |
#request_attributes ⇒ Object
Returns the value of attribute request_attributes.
8 9 10 |
# File 'lib/aws/lex/conversation/response/base.rb', line 8 def request_attributes @request_attributes end |
#session_state ⇒ Object
Returns the value of attribute session_state.
8 9 10 |
# File 'lib/aws/lex/conversation/response/base.rb', line 8 def session_state @session_state end |
Instance Method Details
#dialog_action ⇒ Object
22 23 24 |
# File 'lib/aws/lex/conversation/response/base.rb', line 22 def dialog_action raise NotImplementedError, 'define dialog_action in a subclass' end |