Class: ImportJob

Inherits:
ActiveJob::Base
  • Object
show all
Defined in:
app/jobs/import_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(importer_key, filepath) ⇒ Object



4
5
6
7
# File 'app/jobs/import_job.rb', line 4

def perform(importer_key, filepath)
  class_name = RailsImporter.importer_class(importer_key)
  class_name.new(filepath).process unless class_name.nil?
end