Sha256: cc76b21f182a319be3415a70db9ddbdf9df79fb8cf0fe6ee4f55a8522ac5a424

Contents?: true

Size: 523 Bytes

Versions: 11

Compression:

Stored size: 523 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

11 entries across 11 versions & 1 rubygems

Version Path
truemail-2.2.3 lib/truemail/log/serializer/auditor_json.rb
truemail-2.2.2 lib/truemail/log/serializer/auditor_json.rb
truemail-2.2.1 lib/truemail/log/serializer/auditor_json.rb
truemail-2.2.0 lib/truemail/log/serializer/auditor_json.rb
truemail-2.1.0 lib/truemail/log/serializer/auditor_json.rb
truemail-2.0.2 lib/truemail/log/serializer/auditor_json.rb
truemail-2.0.1 lib/truemail/log/serializer/auditor_json.rb
truemail-2.0.0 lib/truemail/log/serializer/auditor_json.rb
truemail-1.9.2 lib/truemail/log/serializer/auditor_json.rb
truemail-1.9.1 lib/truemail/log/serializer/auditor_json.rb
truemail-1.9.0 lib/truemail/log/serializer/auditor_json.rb