class Truemail::Log::Serializer::Base

Constants

CONFIGURATION_ARRAY_ATTRS
CONFIGURATION_REGEX_ATTRS
DEFAULT_GEM_VALUE

Attributes

executor_configuration[R]
executor_result[R]

Public Class Methods

call(executor_instance) click to toggle source
# File lib/truemail/log/serializer/base.rb, line 19
def self.call(executor_instance)
  new(executor_instance).serialize
end
new(executor_instance) click to toggle source
# File lib/truemail/log/serializer/base.rb, line 23
def initialize(executor_instance)
  @executor_result = executor_instance.result
  @executor_configuration = executor_result.configuration
end

Public Instance Methods

serialize() click to toggle source
# File lib/truemail/log/serializer/base.rb, line 28
def serialize; end

Private Instance Methods

configuration() click to toggle source
# File lib/truemail/log/serializer/base.rb, line 60
def configuration
  {
    validation_type_by_domain: validation_type_by_domain,
    whitelist_validation: executor_configuration.whitelist_validation,
    whitelisted_domains: whitelisted_domains,
    blacklisted_domains: blacklisted_domains,
    blacklisted_mx_ip_addresses: blacklisted_mx_ip_addresses,
    dns: dns,
    not_rfc_mx_lookup_flow: executor_configuration.not_rfc_mx_lookup_flow,
    smtp_fail_fast: executor_configuration.smtp_fail_fast,
    smtp_safe_check: executor_configuration.smtp_safe_check,
    email_pattern: email_pattern,
    smtp_error_body_pattern: smtp_error_body_pattern
  }
end
errors(executor_result_target) click to toggle source
# File lib/truemail/log/serializer/base.rb, line 34
def errors(executor_result_target)
  return if executor_result_target.empty?
  executor_result_target
end
Also aliased as: warnings
warnings(executor_result_target)
Alias for: errors