class Luis::Dialog

Luis dialog class

Attributes

context_id[RW]
parameter_name[RW]
parameter_type[RW]
prompt[RW]
status[RW]

Public Instance Methods

finished?() click to toggle source

@return whether the dialog is finished

# File lib/luis/dialog.rb, line 7
def finished?
  status == 'Finished'
end
question?() click to toggle source

@return whether the dialog is question

# File lib/luis/dialog.rb, line 12
def question?
  status == 'Question'
end
reply(query) click to toggle source

Reply to dialog @param reply message

# File lib/luis/dialog.rb, line 18
def reply(query)
  Luis.query(query, context_id)
end