Class: BotPlatform::Dialogs::Prompts::PromptOptions

Inherits:
Object
  • Object
show all
Defined in:
lib/bot_platform/dialogs/prompts/prompt_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(prompt: nil) ⇒ PromptOptions

Returns a new instance of PromptOptions.



9
10
11
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 9

def initialize(prompt:nil)
  @prompt = prompt
end

Instance Attribute Details

#choicesObject

Returns the value of attribute choices.



7
8
9
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 7

def choices
  @choices
end

#promptObject

Returns the value of attribute prompt.



7
8
9
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 7

def prompt
  @prompt
end

#retry_promptObject

Returns the value of attribute retry_prompt.



7
8
9
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 7

def retry_prompt
  @retry_prompt
end

#validationsObject

Returns the value of attribute validations.



7
8
9
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 7

def validations
  @validations
end