Class: DataAnon::Strategy::Field::RandomMailinatorEmail

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

Overview

Generates random email using mailinator hostname. e.g. <randomstring>@mailinator.com

anonymize('Email').using FieldStrategy::RandomMailinatorEmail.new

Instance Method Summary collapse

Constructor Details

#initializeRandomMailinatorEmail

Returns a new instance of RandomMailinatorEmail.


12
13
14
# File 'lib/strategy/field/email/random_mailinator_email.rb', line 12

def initialize
  @email_anonymizer = DataAnon::Strategy::Field::RandomEmail.new("mailinator","com")
end

Instance Method Details

#anonymize(field) ⇒ Object


16
17
18
# File 'lib/strategy/field/email/random_mailinator_email.rb', line 16

def anonymize field
  return @email_anonymizer.anonymize(field)
end