Class: AtomicAssessmentsImport::Questions::ShortAnswer
- Defined in:
- lib/atomic_assessments_import/questions/short_answer.rb
Instance Attribute Summary
Attributes inherited from Question
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_data ⇒ Object
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_type ⇒ Object
8 9 10 |
# File 'lib/atomic_assessments_import/questions/short_answer.rb', line 8 def question_type "shorttext" end |