Class: Moodle2CC::CanvasCC::AssessmentWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/moodle2cc/canvas_cc/assessment_writer.rb

Instance Method Summary collapse

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

#writeObject



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