Class: DataAnon::Strategy::Field::RandomBoolean

Inherits:
Object
  • Object
show all
Defined in:
lib/strategy/field/random_boolean.rb

Constant Summary collapse

BOOL_VALUES =
[true,false]

Instance Method Summary collapse

Instance Method Details

#anonymize(field) ⇒ Object



10
11
12
# File 'lib/strategy/field/random_boolean.rb', line 10

def anonymize field
   BOOL_VALUES.sample
end