Class: Redaction::Types::Email

Inherits:
Base
  • Object
show all
Defined in:
lib/redaction/types/email.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #record

Instance Method Summary collapse

Methods inherited from Base

call, #initialize

Constructor Details

This class inherits a constructor from Redaction::Types::Base

Instance Method Details

#contentObject



6
7
8
9
10
11
12
# File 'lib/redaction/types/email.rb', line 6

def content
  if Redaction.config.email_domain.present?
    Faker::Internet.email(domain: Redaction.config.email_domain)
  else
    Faker::Internet.safe_email
  end
end