lib/ImportSupport.rb
def delete_all_keys_except(hash_record, except_array = [])
    hash_record.select do |key|
      except_array.include?(key)
    end
  end
## To clean up a hash with only permited keys
To clean up a hash with only permited keys
To clean up a hash with only permited keys
def delete_all_keys_except(hash_record, except_array = [])
    hash_record.select do |key|
      except_array.include?(key)
    end
  end
def delete_all_keys_except ( hash_record , except_array = [ ] ) hash_record . select do | key | except_array . include? ( key ) end end
To clean up a hash with only permited keys
To clean up a hash with only permited keys
hash_record
except_array