Sha256: 44ab8485043cf1aad4f3caa70d5529dcd7ac4c6cee6b40df5e5dbad2d99832f6
Contents?: true
Size: 634 Bytes
Versions: 5
Compression:
Stored size: 634 Bytes
Contents
# frozen_string_literal: true module TaintedLove class Warning attr_accessor :stack_trace, :replacer, :tainted_input, :reported_at, :message, :tags def initialize @reported_at = Time.now.to_i end def ==(other) stack_trace == other.stack_trace && tainted_input == other.tainted_input end def stack_trace_line @stack_trace.lines.first end def to_json { stack_trace: @stack_trace, replacer: @replacer, tainted_input: @tainted_input, reported_at: @reported_at, message: @message, tags: @tags, }.to_json end end end
Version data entries
5 entries across 5 versions & 1 rubygems