Class: DbObfuscation::BatchFormulator
- Inherits:
-
Object
- Object
- DbObfuscation::BatchFormulator
- Defined in:
- lib/db_obfuscation/batch_formulator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.batch_for(*args) ⇒ Object
7 8 9 |
# File 'lib/db_obfuscation/batch_formulator.rb', line 7 def self.batch_for(*args) self.new.batch_for(*args) end |
Instance Method Details
#batch_for(config, ids) ⇒ Object
11 12 13 14 15 |
# File 'lib/db_obfuscation/batch_formulator.rb', line 11 def batch_for(config, ids) ids.each_with_object([]) do |id, batch| batch<<obfuscate_row(config, id) end end |