Sha256: d05533cd7bedf0ad6214a225f787ad0e729c063b587936b151d5191592d6b511

Contents?: true

Size: 687 Bytes

Versions: 42

Compression:

Stored size: 687 Bytes

Contents

require_relative "./report_processor"

module CanvasSync
  module Processors
    # Processes a context modules report using the bulk importer.
    #
    # @param report_file_path [String]
    # @param options [Hash]
    class ContextModuleItemsProcessor < 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[:context_module_items][:report_columns],
          ContextModuleItem,
          mapping[:context_module_items][:conflict_target].to_sym,
        )
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
canvas_sync-0.8.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.7.3 lib/canvas_sync/processors/context_module_items_processor.rb