Sha256: fbc3494d06cc44d6e10bf7a83d307361b388bf203a5d45ed094500b2c4aee5e0

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

require "canvas_qti_to_learnosity_converter/questions/question"

module CanvasQtiToLearnosityConverter
  class EssayQuestion < QuizQuestion
    def to_learnosity
      {
        type: "longtextV2",
        stimulus: extract_stimulus(),
      }
    end

    def add_learnosity_assets(assets, path)
      learnosity = to_learnosity
      CanvasQtiToLearnosityConverter.add_files_to_assets(
        assets,
        path + [:stimulus],
        learnosity[:stimulus]
      )
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
canvas_qti_to_learnosity_converter-2.3.0 lib/canvas_qti_to_learnosity_converter/questions/essay.rb
canvas_qti_to_learnosity_converter-2.2.0 lib/canvas_qti_to_learnosity_converter/questions/essay.rb
canvas_qti_to_learnosity_converter-2.1.0 lib/canvas_qti_to_learnosity_converter/questions/essay.rb