Sha256: 7af0c2a772a3dd42b84747e70533493f0da4a0ad486cf872bc319110db519185

Contents?: true

Size: 536 Bytes

Versions: 49

Compression:

Stored size: 536 Bytes

Contents

# frozen_string_literal: true

module Truemail
  class Auditor < Truemail::Executor
    Result = ::Struct.new(:current_host_ip, :warnings, :configuration, keyword_init: true) do
      def initialize(warnings: {}, **args)
        super
      end
    end

    def initialize(configuration:)
      @result = Truemail::Auditor::Result.new(configuration: configuration)
    end

    def run
      Truemail::Audit::Ip.check(result)
      self
    end

    def as_json
      Truemail::Log::Serializer::AuditorJson.call(self)
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
truemail-2.7.1 lib/truemail/auditor.rb
truemail-2.7.0 lib/truemail/auditor.rb
truemail-2.6.6 lib/truemail/auditor.rb
truemail-2.6.5 lib/truemail/auditor.rb
truemail-2.6.4 lib/truemail/auditor.rb
truemail-2.6.3 lib/truemail/auditor.rb
truemail-2.6.2 lib/truemail/auditor.rb
truemail-2.6.1 lib/truemail/auditor.rb
truemail-2.6.0 lib/truemail/auditor.rb
truemail-2.5.4 lib/truemail/auditor.rb
truemail-2.5.3 lib/truemail/auditor.rb
truemail-2.5.2 lib/truemail/auditor.rb
truemail-2.5.1 lib/truemail/auditor.rb
truemail-2.5.0 lib/truemail/auditor.rb
truemail-2.4.9 lib/truemail/auditor.rb
truemail-2.4.8 lib/truemail/auditor.rb
truemail-2.4.7 lib/truemail/auditor.rb
truemail-2.4.6 lib/truemail/auditor.rb
truemail-2.4.5 lib/truemail/auditor.rb
truemail-2.4.4 lib/truemail/auditor.rb