Class: AtomicAssessmentsImport::Questions::ShortAnswer

Inherits:
Question
  • Object
show all
Defined in:
lib/atomic_assessments_import/questions/short_answer.rb

Instance Attribute Summary

Attributes inherited from Question

#reference

Instance Method Summary collapse

Methods inherited from Question

#initialize, load, #metadata, #points, #scoring_type, #to_learnosity

Constructor Details

This class inherits a constructor from AtomicAssessmentsImport::Questions::Question

Instance Method Details

#question_dataObject



12
13
14
15
16
17
18
19
20
21
# File 'lib/atomic_assessments_import/questions/short_answer.rb', line 12

def question_data
  super.merge(
    validation: {
      valid_response: {
        score: points,
        value: @row["correct answer"] || "",
      },
    }
  )
end

#question_typeObject



8
9
10
# File 'lib/atomic_assessments_import/questions/short_answer.rb', line 8

def question_type
  "shorttext"
end