Sha256: b4cbae327d8bb1cf4aeb3687ad35ba65be7a82794c9e41b262394de34053e4bb

Contents?: true

Size: 368 Bytes

Versions: 9

Compression:

Stored size: 368 Bytes

Contents

require_dependency "renalware/feeds"

module Renalware
  module Feeds
    module Files
      class ImportJobFactory
        # Returns the active job class required to process files of type file_type
        def self.job_class_for(file_type)
          "Renalware::Feeds::Files::#{file_type.name.camelize}::ImportJob".constantize
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
renalware-core-2.0.8 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.7 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.5 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.4 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.3 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.2 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.1 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc13 app/models/renalware/feeds/files/import_job_factory.rb