Sha256: 753fb7b342f5a8f32b019d87dcf2e475e4f690c9a131c367151141c1dd196cdf
Contents?: true
Size: 844 Bytes
Versions: 32
Compression:
Stored size: 844 Bytes
Contents
require_relative "./report_processor" module CanvasSync module Processors # Processes any report using the normal bulk importer. # # @param report_file_path [String] # @param options [Hash] # @param report_id [Integer] class NormalProcessor < ReportProcessor def self.process(report_file_path, options, report_id) new(report_file_path, options) end def initialize(report_file_path, options) conflict_target = mapping[options[:mapping].to_sym][:conflict_target] CanvasSync::Importers::BulkImporter.import( report_file_path, mapping[options[:mapping].to_sym][:report_columns], options[:klass].constantize, conflict_target ? conflict_target.to_sym : conflict_target, import_args: options ) end end end end
Version data entries
32 entries across 32 versions & 1 rubygems