Sha256: d043eb977febd735e31d237e6050a8c00b54c6ba9366d98a3414410e3a1d6d41

Contents?: true

Size: 676 Bytes

Versions: 15

Compression:

Stored size: 676 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)
        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

15 entries across 15 versions & 1 rubygems

Version Path
canvas_sync-0.7.2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.7.1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.7.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.6.4 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.6.3 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.6.2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.6.1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.6.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.5.4 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.5.3 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.5.2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.5.1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.4.1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.4.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.3.23 lib/canvas_sync/processors/context_module_items_processor.rb