Sha256: d79b866a73a663942c871c35f4651fa45a9b6032c761b6caf59b366841475ff9
Contents?: true
Size: 716 Bytes
Versions: 74
Compression:
Stored size: 716 Bytes
Contents
# frozen_string_literal: true module GitlabQuality module TestTooling module SystemLogs module LogTypes class Log def initialize(name, data) @name = name @data = data end attr_reader :name, :data def summary_fields [ :severity, :correlation_id, :time, :message ] end def summary summary = {} summary_fields.each do |field| value = data[field] summary[field] = value unless value.nil? end summary end end end end end end
Version data entries
74 entries across 74 versions & 1 rubygems