Class: DbSubsetter::Scrambler
- Inherits:
-
Object
- Object
- DbSubsetter::Scrambler
- Defined in:
- lib/db_subsetter/scrambler.rb
Instance Method Summary collapse
-
#initialize ⇒ Scrambler
constructor
A new instance of Scrambler.
- #scramble(table, row) ⇒ Object
Constructor Details
#initialize ⇒ Scrambler
Returns a new instance of Scrambler.
14 15 16 |
# File 'lib/db_subsetter/scrambler.rb', line 14 def initialize @column_index_cache = {} end |
Instance Method Details
#scramble(table, row) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/db_subsetter/scrambler.rb', line 5 def scramble(table, row) scramble_method = "scramble_#{table.downcase}" if self.respond_to? scramble_method self.send(scramble_method, row) else row end end |