Class: EmailInquire::Validator::OneTimeProvider

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

Constant Summary collapse

DOMAINS =
load_data("one_time_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



11
12
13
# File 'lib/email_inquire/validator/one_time_provider.rb', line 11

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