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.7.2 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.7.1 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.7.0 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.6.4 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.6.3 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.6.2 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.6.1 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.6.0 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.5.4 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.5.3 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.5.2 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.5.1 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.4.1 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.4.0 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.23 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.22 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.21 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.20 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.19 lib/canvas_sync/processors/assignment_groups_processor.rb
canvas_sync-0.3.18 lib/canvas_sync/processors/assignment_groups_processor.rb