Sha256: 2e3680ce26e9f60da19a9fc6576f534723438d3a9c198c86fdfb51e487ccaf54

Contents?: true

Size: 369 Bytes

Versions: 8

Compression:

Stored size: 369 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

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc11 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc10 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc9 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc8 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc7 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc6 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc5 app/models/renalware/feeds/files/import_job_factory.rb
renalware-core-2.0.0.pre.rc4 app/models/renalware/feeds/files/import_job_factory.rb