Sha256: 132719c29331643f29a9bb5d5c45398c084e905061b95a0e3f40a737466df956

Contents?: true

Size: 730 Bytes

Versions: 16

Compression:

Stored size: 730 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_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

16 entries across 16 versions & 1 rubygems

Version Path
email_data-1607200035 lib/email_data.rb
email_data-1607057940 lib/email_data.rb
email_data-1606953034 lib/email_data.rb
email_data-1606845461 lib/email_data.rb
email_data-1606718902 lib/email_data.rb
email_data-1606620725 lib/email_data.rb
email_data-1606495330 lib/email_data.rb
email_data-1606361847 lib/email_data.rb
email_data-1606172235 lib/email_data.rb
email_data-1606065366 lib/email_data.rb
email_data-1605927397 lib/email_data.rb
email_data-1605814579 lib/email_data.rb
email_data-1605671224 lib/email_data.rb
email_data-1605588714 lib/email_data.rb
email_data-1605483437 lib/email_data.rb
email_data-1605433987 lib/email_data.rb