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-3.3.1 lib/truemail/auditor.rb
truemail-3.3.0 lib/truemail/auditor.rb
truemail-3.2.0 lib/truemail/auditor.rb
truemail-3.1.2 lib/truemail/auditor.rb
truemail-3.1.1 lib/truemail/auditor.rb
truemail-3.1.0 lib/truemail/auditor.rb
truemail-3.0.9 lib/truemail/auditor.rb
truemail-3.0.8 lib/truemail/auditor.rb
truemail-3.0.7 lib/truemail/auditor.rb
truemail-3.0.6 lib/truemail/auditor.rb
truemail-3.0.5 lib/truemail/auditor.rb
truemail-3.0.4 lib/truemail/auditor.rb
truemail-3.0.3 lib/truemail/auditor.rb
truemail-3.0.2 lib/truemail/auditor.rb
truemail-3.0.1 lib/truemail/auditor.rb
truemail-3.0.0 lib/truemail/auditor.rb
truemail-2.7.5 lib/truemail/auditor.rb
truemail-2.7.4 lib/truemail/auditor.rb
truemail-2.7.3 lib/truemail/auditor.rb
truemail-2.7.2 lib/truemail/auditor.rb