Class: CanvasSync::Processors::AssignmentsProcessor
- Inherits:
-
ReportProcessor
- Object
- ReportProcessor
- CanvasSync::Processors::AssignmentsProcessor
- Defined in:
- lib/canvas_sync/processors/assignments_processor.rb
Overview
Processes an assignments report using the bulk importer.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(report_file_path, options) ⇒ AssignmentsProcessor
constructor
A new instance of AssignmentsProcessor.
Methods inherited from ReportProcessor
Constructor Details
#initialize(report_file_path, options) ⇒ AssignmentsProcessor
Returns a new instance of AssignmentsProcessor.
14 15 16 17 18 19 20 21 22 |
# File 'lib/canvas_sync/processors/assignments_processor.rb', line 14 def initialize(report_file_path, ) CanvasSync::Importers::BulkImporter.import( report_file_path, mapping[:assignments][:report_columns], Assignment, mapping[:assignments][:conflict_target].to_sym, import_args: ) end |
Class Method Details
.process(report_file_path, _options, report_id) ⇒ Object
10 11 12 |
# File 'lib/canvas_sync/processors/assignments_processor.rb', line 10 def self.process(report_file_path, , report_id) new(report_file_path, ) end |