Class: Renalware::Feeds::Files::EnqueueFileForBackgroundProcessing

Inherits:
Object
  • Object
show all
Defined in:
app/models/renalware/feeds/files/enqueue_file_for_background_processing.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.call(file) ⇒ Object



9
10
11
# File 'app/models/renalware/feeds/files/enqueue_file_for_background_processing.rb', line 9

def self.call(file)
  new.call(file)
end

Instance Method Details

#call(file) ⇒ Object



13
14
15
16
# File 'app/models/renalware/feeds/files/enqueue_file_for_background_processing.rb', line 13

def call(file)
  job_class = ImportJobFactory.job_class_for(file.file_type)
  job_class.perform_later(file)
end