Class: AtomicAssessmentsImport::Questions::Essay

Inherits:
Question
  • Object
show all
Defined in:
lib/atomic_assessments_import/questions/essay.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
# File 'lib/atomic_assessments_import/questions/essay.rb', line 12

def question_data
  data = super
  word_limit = @row["word_limit"]&.to_i
  data[:max_length] = word_limit if word_limit&.positive?
  data
end

#question_typeObject



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

def question_type
  "longtext"
end