trabajo-afectivo/lib/import/factory.rb

17 lines
310 B
Ruby
Raw Normal View History

module Import
module Factory
include Import::BaseFactory
# rubocop:disable Style/ModuleFunction
extend self
def import(records)
pre_import_hook(records)
records.each do |record|
next if skip?(record)
backend_class(record).new(record)
end
end
end
end