Sha256: 99ee43a5d813fd5aded0284ff4b5e8a704f34a261e50b7fe7fa0e09144118caa

Contents?: true

Size: 652 Bytes

Versions: 42

Compression:

Stored size: 652 Bytes

Contents

require_relative "./report_processor"

module CanvasSync
  module Processors
    # Processes an assignments report using the bulk importer.
    #
    # @param report_file_path [String]
    # @param options [Hash]
    class AssignmentsProcessor < ReportProcessor
      def self.process(report_file_path, _options, report_id)
        new(report_file_path)
      end

      def initialize(report_file_path)
        CanvasSync::Importers::BulkImporter.import(
          report_file_path,
          mapping[:assignments][:report_columns],
          Assignment,
          mapping[:assignments][:conflict_target].to_sym,
        )
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
canvas_sync-0.15.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.14.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.13.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.12.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.11.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.10.6 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.10.5 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.10.4 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.10.3 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.10.2 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.10.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.9.4 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.9.3 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.9.2 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.9.1 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.9.0 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.8.4 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.8.3 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.8.2 lib/canvas_sync/processors/assignments_processor.rb
canvas_sync-0.8.1 lib/canvas_sync/processors/assignments_processor.rb