Exception: FlowChat::Interrupt::Prompt

Inherits:
Base
  • Object
show all
Defined in:
lib/flow_chat/interrupt.rb

Overview

standard:enable Lint/InheritException

Instance Attribute Summary collapse

Attributes inherited from Base

#media, #prompt

Instance Method Summary collapse

Constructor Details

#initialize(prompt, choices: nil, media: nil) ⇒ Prompt

Returns a new instance of Prompt.



18
19
20
21
# File 'lib/flow_chat/interrupt.rb', line 18

def initialize(prompt, choices: nil, media: nil)
  @choices = choices
  super(prompt, media: media)
end

Instance Attribute Details

#choicesObject (readonly)

Returns the value of attribute choices.



16
17
18
# File 'lib/flow_chat/interrupt.rb', line 16

def choices
  @choices
end