Sha256: 37cb6056ab2cc8725f64453b48e9ed4fb17a553353e00118be2d54a8ef2c8560

Contents?: true

Size: 829 Bytes

Versions: 303

Compression:

Stored size: 829 Bytes

Contents

# frozen_string_literal: true

require "forwardable"
require "pathname"

module EmailData
  require "email_data/version"
  require "email_data/source/file_system"

  class << self
    extend Forwardable

    def_delegators :source,
                   :disposable_domains,
                   :disposable_domains_with_mx,
                   :disposable_domains_without_mx,
                   :disposable_emails,
                   :country_tlds,
                   :free_email_domains,
                   :private_relays,
                   :tlds,
                   :slds,
                   :roles
  end

  def self.source=(source)
    @source = source
  end

  def self.source
    @source
  end

  def self.data_dir
    Pathname.new(File.expand_path("../data", __dir__))
  end

  self.source = EmailData::Source::FileSystem
end

Version data entries

303 entries across 303 versions & 1 rubygems

Version Path
email_data-1662251192.0.0 lib/email_data.rb
email_data-1661646510.0.0 lib/email_data.rb
email_data-1661041677.0.0 lib/email_data.rb
email_data-1660436768.0.0 lib/email_data.rb
email_data-1659831989.0.0 lib/email_data.rb
email_data-1659227281.0.0 lib/email_data.rb
email_data-1658622342.0.0 lib/email_data.rb
email_data-1658017524.0.0 lib/email_data.rb
email_data-1657412872.0.0 lib/email_data.rb
email_data-1656807964.0.0 lib/email_data.rb
email_data-1656203061.0.0 lib/email_data.rb
email_data-1655598278.0.0 lib/email_data.rb
email_data-1654993445.0.0 lib/email_data.rb
email_data-1654388780.0.0 lib/email_data.rb
email_data-1653783929.0.0 lib/email_data.rb
email_data-1653179119.0.0 lib/email_data.rb
email_data-1652574371.0.0 lib/email_data.rb
email_data-1651969670.0.0 lib/email_data.rb
email_data-1651364852.0.0 lib/email_data.rb
email_data-1650759894.0.0 lib/email_data.rb