Sha256: b4d0f32da32b0024dfd33d98c7a425d6f5ab0e3c92f76e05d239695444bc0a84

Contents?: true

Size: 543 Bytes

Versions: 5

Compression:

Stored size: 543 Bytes

Contents

require_relative "./report_processor"

module CanvasSync
  module Processors
    # Processes a course completion report using the bulk importer.
    #
    # @param report_file_path [String]
    # @param options [Hash]
    class CourseCompletionReportProcessor < 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, CourseProgress, options: options)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
canvas_sync-0.22.9 lib/canvas_sync/processors/course_completion_report_processor.rb
canvas_sync-0.22.8 lib/canvas_sync/processors/course_completion_report_processor.rb
canvas_sync-0.22.6 lib/canvas_sync/processors/course_completion_report_processor.rb
canvas_sync-0.22.5 lib/canvas_sync/processors/course_completion_report_processor.rb
canvas_sync-0.22.4 lib/canvas_sync/processors/course_completion_report_processor.rb