Sha256: 7e8f6fad5d58c502097b0a87a5db7493202732fa8d7a9a3214763770dffdb47f
Contents?: true
Size: 879 Bytes
Versions: 1
Compression:
Stored size: 879 Bytes
Contents
require "canvas_qti_to_learnosity_converter/questions/question" module CanvasQtiToLearnosityConverter class FileUploadQuestion < QuizQuestion def to_learnosity { type: "fileupload", stimulus: extract_stimulus(), validation: { max_score: extract_points_possible, }, allow_pdf: true, allow_jpg: true, allow_gif: true, allow_png: true, allow_csv: true, allow_rtf: true, allow_txt: true, allow_xps: true, allow_ms_word: true, allow_ms_excel: true, allow_ms_powerpoint: true, allow_ms_publisher: true, allow_open_office: true } end def add_learnosity_assets(assets, path, learnosity) process_assets!( assets, path, learnosity[:stimulus] ) learnosity end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
canvas_qti_to_learnosity_converter-3.0.0 | lib/canvas_qti_to_learnosity_converter/questions/file_upload.rb |