Class: Moodle2CC::CanvasCC::AssessmentWriter
- Inherits:
-
Object
- Object
- Moodle2CC::CanvasCC::AssessmentWriter
- Defined in:
- lib/moodle2cc/canvas_cc/assessment_writer.rb
Instance Method Summary collapse
-
#initialize(work_dir, *assessments) ⇒ AssessmentWriter
constructor
A new instance of AssessmentWriter.
- #write ⇒ Object
Constructor Details
#initialize(work_dir, *assessments) ⇒ AssessmentWriter
Returns a new instance of AssessmentWriter.
4 5 6 7 |
# File 'lib/moodle2cc/canvas_cc/assessment_writer.rb', line 4 def initialize(work_dir, *assessments) @work_dir = work_dir @assessments = assessments end |
Instance Method Details
#write ⇒ Object
9 10 11 12 13 |
# File 'lib/moodle2cc/canvas_cc/assessment_writer.rb', line 9 def write @assessments.each do |assessment| write_assessment(assessment) end end |