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.15.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.14.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.13.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.12.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.11.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.10.6 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.10.5 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.10.4 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.10.3 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.10.2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.10.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.9.4 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.9.3 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.9.2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.9.1 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.9.0 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.8.4 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.8.3 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.8.2 lib/canvas_sync/processors/context_module_items_processor.rb
canvas_sync-0.8.1 lib/canvas_sync/processors/context_module_items_processor.rb