Module: EmailInquire
- Defined in:
- lib/email_inquire.rb,
lib/email_inquire/helper.rb,
lib/email_inquire/version.rb,
lib/email_inquire/inquirer.rb,
lib/email_inquire/response.rb,
lib/email_inquire/validator/base.rb,
lib/email_inquire/validator/email_format.rb,
lib/email_inquire/validator/common_provider.rb,
lib/email_inquire/validator/country_code_tld.rb,
lib/email_inquire/validator/one_time_provider.rb,
lib/email_inquire/validator/custom_valid_domain.rb,
lib/email_inquire/validator/known_invalid_domain.rb,
lib/email_inquire/validator/commonly_mistaken_tld.rb,
lib/email_inquire/validator/custom_invalid_domain.rb,
lib/email_inquire/validator/unique_domain_provider.rb,
lib/email_inquire/validator/common_provider_mistake.rb,
lib/email_inquire/validator/commonly_mistaken_domain.rb
Defined Under Namespace
Modules: Helper, Validator
Classes: Inquirer, Response
Constant Summary
collapse
- VERSION =
"0.11.0"
Class Method Summary
collapse
Class Method Details
.custom_invalid_domains ⇒ Object
25
26
27
|
# File 'lib/email_inquire.rb', line 25
def self.custom_invalid_domains
@custom_invalid_domains ||= Set.new
end
|
.custom_invalid_domains=(domains) ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/email_inquire.rb', line 13
def self.custom_invalid_domains=(domains)
@custom_invalid_domains =
case domains
when Set, nil
domains
when Array
domains.to_set
else
raise ArgumentError, "Unsupported type in `custom_invalid_domains=`"
end
end
|
.custom_valid_domains ⇒ Object
41
42
43
|
# File 'lib/email_inquire.rb', line 41
def self.custom_valid_domains
@custom_valid_domains ||= Set.new
end
|
.custom_valid_domains=(domains) ⇒ Object
29
30
31
32
33
34
35
36
37
38
39
|
# File 'lib/email_inquire.rb', line 29
def self.custom_valid_domains=(domains)
@custom_valid_domains =
case domains
when Set, nil
domains
when Array
domains.to_set
else
raise ArgumentError, "Unsupported type in `custom_valid_domains=`"
end
end
|
.validate(email) ⇒ Object
8
9
10
11
|
# File 'lib/email_inquire.rb', line 8
def self.validate(email)
inquirer = Inquirer.new(email)
inquirer.validate
end
|