Module: GdprAdmin::Anonymizers::ContactAnonymizer

Included in:
Helpers::FieldAnonymizerHelper
Defined in:
lib/gdpr_admin/anonymizers/contact_anonymizer.rb

Instance Method Summary collapse

Instance Method Details

#anonymize_cityObject



14
15
16
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 14

def anonymize_city
  Faker::Address.city
end

#anonymize_countryObject



26
27
28
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 26

def anonymize_country
  Faker::Address.country
end

#anonymize_country_code2Object



30
31
32
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 30

def anonymize_country_code2
  Faker::Address.country_code
end

#anonymize_country_code3Object



34
35
36
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 34

def anonymize_country_code3
  Faker::Address.country_code_long
end

#anonymize_phone_numberObject



6
7
8
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 6

def anonymize_phone_number
  Faker::PhoneNumber.phone_number
end

#anonymize_stateObject



18
19
20
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 18

def anonymize_state
  Faker::Address.state
end

#anonymize_street_addressObject



10
11
12
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 10

def anonymize_street_address
  Faker::Address.street_address
end

#anonymize_zipObject



22
23
24
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 22

def anonymize_zip
  Faker::Address.zip
end