Sha256: 8807b1200834767310f2d18147efe34af841383cfae9e50bc5732496630bc6d8

Contents?: true

Size: 694 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
email_data-1605432951 lib/email_data.rb