Sha256: cf31b3d884b04b28c0bdc4e48a54021a333f97f2ebc74427e43655a47e970f95

Contents?: true

Size: 679 Bytes

Versions: 42

Compression:

Stored size: 679 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, report_id)
        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

42 entries across 42 versions & 1 rubygems

Version Path
canvas_sync-0.17.0.beta15 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta14 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta13 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta12 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta11 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta10 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta9 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta8 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta7 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta6 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta5 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta4 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta3 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta2 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.17.0.beta1 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.16.4 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.16.3 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.16.2 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.16.1 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.15.1 lib/canvas_sync/processors/assignment_groups_processor.rb