Class: CanvasQtiToLearnosityConverter::FillBlanksDropdownQuestion
- Inherits:
-
TemplateQuestion
- Object
- QuizQuestion
- TemplateQuestion
- CanvasQtiToLearnosityConverter::FillBlanksDropdownQuestion
- Defined in:
- lib/canvas_qti_to_learnosity_converter/questions/fill_the_blanks.rb
Overview
Handles fill_in_multiple_blanks_question where all blanks are choice-based (answer_type=“dropdown” in New Quizzes). Each response_lid has its own distinct set of choices. Produces a Learnosity clozedropdown question.
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
150 151 152 153 154 155 156 157 158 |
# File 'lib/canvas_qti_to_learnosity_converter/questions/fill_the_blanks.rb', line 150 def to_learnosity { type: "clozedropdown", stimulus: "", template: extract_template(), validation: extract_validation(), possible_responses: extract_responses(), } end |