Sha256: 3588d5fb2872b5d02b1ccd89294ee57077f7078dd91dc23c99ead907403fab64

Contents?: true

Size: 525 Bytes

Versions: 49

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

module Truemail
  module Log
    module Serializer
      class AuditorJson < Truemail::Log::Serializer::Base
        def serialize
          result.to_json
        end

        private

        def result
          @result ||=
            {
              date: ::Time.now,
              current_host_ip: executor_result.current_host_ip,
              warnings: warnings(executor_result.warnings),
              configuration: configuration
            }
        end
      end
    end
  end
end

Version data entries

49 entries across 49 versions & 1 rubygems

Version Path
truemail-3.3.1 lib/truemail/log/serializer/auditor_json.rb
truemail-3.3.0 lib/truemail/log/serializer/auditor_json.rb
truemail-3.2.0 lib/truemail/log/serializer/auditor_json.rb
truemail-3.1.2 lib/truemail/log/serializer/auditor_json.rb
truemail-3.1.1 lib/truemail/log/serializer/auditor_json.rb
truemail-3.1.0 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.9 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.8 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.7 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.6 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.5 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.4 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.3 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.2 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.1 lib/truemail/log/serializer/auditor_json.rb
truemail-3.0.0 lib/truemail/log/serializer/auditor_json.rb
truemail-2.7.5 lib/truemail/log/serializer/auditor_json.rb
truemail-2.7.4 lib/truemail/log/serializer/auditor_json.rb
truemail-2.7.3 lib/truemail/log/serializer/auditor_json.rb
truemail-2.7.2 lib/truemail/log/serializer/auditor_json.rb