Class: Truemail::Validate::Smtp::Request::Configuration
- Inherits:
-
Object
- Object
- Truemail::Validate::Smtp::Request::Configuration
- Defined in:
- lib/truemail/validate/smtp/request.rb
Constant Summary collapse
- REQUEST_PARAMS =
%i[smtp_port connection_timeout response_timeout verifier_domain verifier_email].freeze
Instance Method Summary collapse
-
#initialize(configuration) ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize(configuration) ⇒ Configuration
Returns a new instance of Configuration.
46 47 48 49 50 51 |
# File 'lib/truemail/validate/smtp/request.rb', line 46 def initialize(configuration) Truemail::Validate::Smtp::Request::Configuration::REQUEST_PARAMS.each do |attribute| self.class.class_eval { attr_reader attribute } instance_variable_set(:"@#{attribute}", configuration.public_send(attribute)) end end |