Class: CanvasQtiToLearnosityConverter::FillBlanksTextQuestion
- Inherits:
-
TemplateQuestion
- Object
- QuizQuestion
- TemplateQuestion
- CanvasQtiToLearnosityConverter::FillBlanksTextQuestion
- Defined in:
- lib/canvas_qti_to_learnosity_converter/questions/fill_the_blanks.rb
Overview
Handles fill_in_multiple_blanks_question where all blanks are typed-text (answer_type=“openEntry” in New Quizzes, or no answer_type in Classic Quizzes). Produces a Learnosity clozetext question with combinatorial alt_responses to cover every accepted-answer combination across all blanks.
Instance Method Summary collapse
Methods inherited from TemplateQuestion
#add_learnosity_assets, #extract_template, #extract_template_values, #get_template
Methods inherited from QuizQuestion
#convert, #dynamic_content_data, #extract_feedback, #extract_mattext, #extract_points_possible, #extract_stimulus, for, #initialize, #make_identifier, #process_assets!
Constructor Details
This class inherits a constructor from CanvasQtiToLearnosityConverter::QuizQuestion
Instance Method Details
#to_learnosity ⇒ Object
42 43 44 45 46 47 48 49 |
# File 'lib/canvas_qti_to_learnosity_converter/questions/fill_the_blanks.rb', line 42 def to_learnosity { type: "clozetext", stimulus: "", template: extract_template(), validation: extract_validation(), } end |