lib/canvas_sync/processors/assignments_processor.rb



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, _options)
      end

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