Class: Smuggle::Importer::Resolver

Inherits:
Object
  • Object
show all
Defined in:
lib/smuggle/importer/resolver.rb

Instance Method Summary collapse

Instance Method Details

#call(model:) ⇒ Object



6
7
8
9
10
# File 'lib/smuggle/importer/resolver.rb', line 6

def call(model:)
  Object.const_get("#{model.name}Importer")
rescue NameError
  raise ImporterNotFound
end