Module: GdprAdmin::Anonymizers::ContactAnonymizer
- Included in:
- Helpers::FieldAnonymizerHelper
- Defined in:
- lib/gdpr_admin/anonymizers/contact_anonymizer.rb
Instance Method Summary collapse
- #anonymize_city ⇒ Object
- #anonymize_country ⇒ Object
- #anonymize_country_code2 ⇒ Object
- #anonymize_country_code3 ⇒ Object
- #anonymize_phone_number ⇒ Object
- #anonymize_state ⇒ Object
- #anonymize_street_address ⇒ Object
- #anonymize_zip ⇒ Object
Instance Method Details
#anonymize_city ⇒ Object
14 15 16 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 14 def anonymize_city Faker::Address.city end |
#anonymize_country ⇒ Object
26 27 28 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 26 def anonymize_country Faker::Address.country end |
#anonymize_country_code2 ⇒ Object
30 31 32 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 30 def anonymize_country_code2 Faker::Address.country_code end |
#anonymize_country_code3 ⇒ Object
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_number ⇒ Object
6 7 8 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 6 def anonymize_phone_number Faker::PhoneNumber.phone_number end |
#anonymize_state ⇒ Object
18 19 20 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 18 def anonymize_state Faker::Address.state end |
#anonymize_street_address ⇒ Object
10 11 12 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 10 def anonymize_street_address Faker::Address.street_address end |
#anonymize_zip ⇒ Object
22 23 24 |
# File 'lib/gdpr_admin/anonymizers/contact_anonymizer.rb', line 22 def anonymize_zip Faker::Address.zip end |