Class: EmailInquire::Validator::CustomInvalidDomain

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

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



9
10
11
# File 'lib/email_inquire/validator/custom_invalid_domain.rb', line 9

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