Sha256: b4ffe07da712a501b8d36852d49f8b316954bc250c5a5e2d1e90ac85f9234278

Contents?: true

Size: 668 Bytes

Versions: 6

Compression:

Stored size: 668 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,
                   :tlds,
                   :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

6 entries across 6 versions & 1 rubygems

Version Path
email_data-1605293459 lib/email_data.rb
email_data-1605067682 lib/email_data.rb
email_data-1604944785 lib/email_data.rb
email_data-1604907377 lib/email_data.rb
email_data-1604799858 lib/email_data.rb
email_data-1604735754 lib/email_data.rb