class EmailData::Source::FileSystem

Public Class Methods

country_tlds() click to toggle source
# File lib/email_data/source/file_system.rb, line 14
def self.country_tlds
  @country_tlds ||= load_file("country_tlds.txt")
end
disposable_domains() click to toggle source
# File lib/email_data/source/file_system.rb, line 22
def self.disposable_domains
  @disposable_domains ||= load_file("disposable_domains.txt")
end
disposable_domains_with_mx() click to toggle source
# File lib/email_data/source/file_system.rb, line 26
def self.disposable_domains_with_mx
  @disposable_domains_with_mx ||=
    load_file("disposable_domains_with_mx.txt")
end
disposable_domains_without_mx() click to toggle source
# File lib/email_data/source/file_system.rb, line 31
def self.disposable_domains_without_mx
  @disposable_domains_without_mx ||=
    load_file("disposable_domains_without_mx.txt")
end
disposable_emails() click to toggle source
# File lib/email_data/source/file_system.rb, line 18
def self.disposable_emails
  @disposable_emails ||= load_file("disposable_emails.txt")
end
free_email_domains() click to toggle source
# File lib/email_data/source/file_system.rb, line 36
def self.free_email_domains
  @free_email_domains ||= load_file("free_email_domains.txt")
end
load_file(filename) click to toggle source
# File lib/email_data/source/file_system.rb, line 48
def self.load_file(filename)
  EmailData
    .data_dir
    .join(filename)
    .read
    .lines
    .map(&:chomp)
    .reject(&:empty?)
end
private_relays() click to toggle source
# File lib/email_data/source/file_system.rb, line 44
def self.private_relays
  @private_relays ||= load_file("private_relays.txt")
end
roles() click to toggle source
# File lib/email_data/source/file_system.rb, line 40
def self.roles
  @roles ||= load_file("roles.txt")
end
slds() click to toggle source
# File lib/email_data/source/file_system.rb, line 10
def self.slds
  @slds ||= load_file("slds.txt")
end
tlds() click to toggle source
# File lib/email_data/source/file_system.rb, line 6
def self.tlds
  @tlds ||= load_file("tlds.txt")
end