Class: EmailInquire::Validator::CommonProvider

Inherits:
Base
  • Object
show all
Defined in:
lib/email_inquire/validator/common_provider.rb

Constant Summary collapse

DOMAINS =
load_data("common_providers").freeze

Instance Attribute Summary

Attributes inherited from Base

#domain, #email, #name

Instance Method Summary collapse

Methods inherited from Base

#initialize, validate

Constructor Details

This class inherits a constructor from EmailInquire::Validator::Base

Instance Method Details

#validateObject



12
13
14
# File 'lib/email_inquire/validator/common_provider.rb', line 12

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