Class: DataAnon::Parallel::Table

Inherits:
Object
  • Object
show all
Defined in:
lib/parallel/table.rb

Instance Method Summary collapse

Instance Method Details

#anonymize(tables) ⇒ Object


7
8
9
10
11
12
13
14
15
16
# File 'lib/parallel/table.rb', line 7

def anonymize tables
  ::Parallel.each(tables) do |table|
    begin
      table.progress_bar_class DataAnon::Utils::ParallelProgressBar
      table.process
    rescue => e
      logger.error "\n#{e.message} \n #{e.backtrace}"
    end
  end
end