Class: Mj::ChatGpt::Commands::AskCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/mj/chatgpt/commands/ask_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(question, options: {}) ⇒ AskCommand

Returns a new instance of AskCommand.



10
11
12
13
# File 'lib/mj/chatgpt/commands/ask_command.rb', line 10

def initialize(question, options: {})
  @question = question
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



8
9
10
# File 'lib/mj/chatgpt/commands/ask_command.rb', line 8

def options
  @options
end

#questionObject (readonly)

Returns the value of attribute question.



7
8
9
# File 'lib/mj/chatgpt/commands/ask_command.rb', line 7

def question
  @question
end