Class: Luis::Dialog
Overview
Luis dialog class
Instance Attribute Summary collapse
-
#context_id ⇒ Object
Returns the value of attribute context_id.
-
#parameter_name ⇒ Object
Returns the value of attribute parameter_name.
-
#parameter_type ⇒ Object
Returns the value of attribute parameter_type.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#status ⇒ Object
Returns the value of attribute status.
Instance Method Summary collapse
-
#finished? ⇒ Boolean
Whether the dialog is finished.
-
#question? ⇒ Boolean
Whether the dialog is question.
-
#reply(query) ⇒ Object
Reply to dialog.
Methods inherited from Base
Constructor Details
This class inherits a constructor from Luis::Base
Instance Attribute Details
#context_id ⇒ Object
Returns the value of attribute context_id.
4 5 6 |
# File 'lib/luis/dialog.rb', line 4 def context_id @context_id end |
#parameter_name ⇒ Object
Returns the value of attribute parameter_name.
4 5 6 |
# File 'lib/luis/dialog.rb', line 4 def parameter_name @parameter_name end |
#parameter_type ⇒ Object
Returns the value of attribute parameter_type.
4 5 6 |
# File 'lib/luis/dialog.rb', line 4 def parameter_type @parameter_type end |
#prompt ⇒ Object
Returns the value of attribute prompt.
4 5 6 |
# File 'lib/luis/dialog.rb', line 4 def prompt @prompt end |
#status ⇒ Object
Returns the value of attribute status.
4 5 6 |
# File 'lib/luis/dialog.rb', line 4 def status @status end |
Instance Method Details
#finished? ⇒ Boolean
Returns whether the dialog is finished.
7 8 9 |
# File 'lib/luis/dialog.rb', line 7 def finished? status == 'Finished' end |
#question? ⇒ Boolean
Returns whether the dialog is question.
12 13 14 |
# File 'lib/luis/dialog.rb', line 12 def question? status == 'Question' end |