Class: BotPlatform::Dialogs::Prompts::PromptOptions
- Inherits:
-
Object
- Object
- BotPlatform::Dialogs::Prompts::PromptOptions
- Defined in:
- lib/bot_platform/dialogs/prompts/prompt_options.rb
Instance Attribute Summary collapse
-
#choices ⇒ Object
Returns the value of attribute choices.
-
#prompt ⇒ Object
Returns the value of attribute prompt.
-
#retry_prompt ⇒ Object
Returns the value of attribute retry_prompt.
-
#validations ⇒ Object
Returns the value of attribute validations.
Instance Method Summary collapse
-
#initialize(prompt: nil) ⇒ PromptOptions
constructor
A new instance of PromptOptions.
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
#choices ⇒ Object
Returns the value of attribute choices.
7 8 9 |
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 7 def choices @choices end |
#prompt ⇒ Object
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_prompt ⇒ Object
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 |
#validations ⇒ Object
Returns the value of attribute validations.
7 8 9 |
# File 'lib/bot_platform/dialogs/prompts/prompt_options.rb', line 7 def validations @validations end |