Class: CanvasSync::Processors::RubricsProcessor

Inherits:
ReportProcessor show all
Defined in:
lib/canvas_sync/processors/rubrics_processor.rb

Overview

Processes a rubrics report using the bulk importer.

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ReportProcessor

#do_bulk_import, #mapping, #mapping_for

Constructor Details

#initialize(report_file_path, options) ⇒ RubricsProcessor

Returns a new instance of RubricsProcessor.



14
15
16
# File 'lib/canvas_sync/processors/rubrics_processor.rb', line 14

def initialize(report_file_path, options)
  do_bulk_import(report_file_path, Rubric, options: options)
end

Class Method Details

.process(report_file_path, _options, report_id) ⇒ Object



10
11
12
# File 'lib/canvas_sync/processors/rubrics_processor.rb', line 10

def self.process(report_file_path, _options, report_id)
  new(report_file_path, _options)
end