Sha256: 42f1baf62c3761e09af50f714663a2caa8d5160c037862e4ee5ca3673d24c797

Contents?: true

Size: 668 Bytes

Versions: 23

Compression:

Stored size: 668 Bytes

Contents

require_relative "./report_processor"

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
canvas_sync-0.3.17 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.16 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.15 lib/canvas_sync/processors/assignment_groups_processor.rb