Sha256: e175e61afd72c578ff0c95dd797f4c2c12e89f2c3ec9c36be52a2fa7cb360e76

Contents?: true

Size: 381 Bytes

Versions: 2

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module Truemail
  module Validate
    class Base < Truemail::Worker
      private

      def add_error(message)
        result.errors[self.class.name.split('::').last.downcase.to_sym] = message
      end

      def mail_servers
        result.mail_servers
      end

      def configuration
        Truemail.configuration
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
truemail-0.2.0 lib/truemail/validate/base.rb
truemail-0.1.10 lib/truemail/validate/base.rb