Class: CanvasQtiToLearnosityConverter::EssayQuestion
- Inherits:
-
QuizQuestion
- Object
- QuizQuestion
- CanvasQtiToLearnosityConverter::EssayQuestion
- Defined in:
- lib/canvas_qti_to_learnosity_converter/questions/essay.rb
Instance Method Summary collapse
Methods inherited from QuizQuestion
#dynamic_content_data, #extract_mattext, #extract_points_possible, #extract_stimulus, #initialize, #make_identifier
Constructor Details
This class inherits a constructor from CanvasQtiToLearnosityConverter::QuizQuestion
Instance Method Details
#add_learnosity_assets(assets, path) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/canvas_qti_to_learnosity_converter/questions/essay.rb', line 15 def add_learnosity_assets(assets, path) learnosity = to_learnosity CanvasQtiToLearnosityConverter.add_files_to_assets( assets, path + [:stimulus], learnosity[:stimulus] ) end |
#to_learnosity ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/canvas_qti_to_learnosity_converter/questions/essay.rb', line 5 def to_learnosity { type: "longtextV2", stimulus: extract_stimulus(), validation: { max_score: extract_points_possible, }, } end |