Sha256: ffbe00c076867f8bad7058dfcc800b5f92c508111c92a89453e55ae267fa4323

Contents?: true

Size: 308 Bytes

Versions: 2

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true

require "email_inquire/validator/base"

module EmailInquire
  module Validator
    class KnownInvalidDomain < Base

      DOMAINS = load_data("known_invalid_domains").freeze

      def validate
        response.invalid! if DOMAINS.include?(domain)
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
email_inquire-0.11.0 lib/email_inquire/validator/known_invalid_domain.rb
email_inquire-0.10.0 lib/email_inquire/validator/known_invalid_domain.rb