Method: AssemblyAI::Lemur::LemurQuestionAnswer#initialize

Defined in:
lib/assemblyai/lemur/types/lemur_question_answer.rb

#initialize(question:, answer:, additional_properties: nil) ⇒ AssemblyAI::Lemur::LemurQuestionAnswer

Parameters:

  • question (String)

    The question for LeMUR to answer

  • answer (String)

    The answer generated by LeMUR

  • additional_properties (OpenStruct) (defaults to: nil)

    Additional properties unmapped to the current class definition



26
27
28
29
30
31
# File 'lib/assemblyai/lemur/types/lemur_question_answer.rb', line 26

def initialize(question:, answer:, additional_properties: nil)
  @question = question
  @answer = answer
  @additional_properties = additional_properties
  @_field_set = { "question": question, "answer": answer }
end