class TaintedLove::Warning
Attributes
message[RW]
replacer[RW]
reported_at[RW]
stack_trace[RW]
tainted_input[RW]
Public Class Methods
new()
click to toggle source
# File lib/tainted_love/warning.rb, line 7 def initialize @reported_at = Time.now.to_i end
Public Instance Methods
==(other)
click to toggle source
# File lib/tainted_love/warning.rb, line 11 def ==(other) stack_trace == other.stack_trace && tainted_input == other.tainted_input end
stack_trace_line()
click to toggle source
# File lib/tainted_love/warning.rb, line 15 def stack_trace_line @stack_trace.lines.first end
to_json()
click to toggle source
# File lib/tainted_love/warning.rb, line 19 def to_json { stack_trace: @stack_trace, replacer: @replacer, tainted_input: @tainted_input, reported_at: @reported_at, message: @message, tags: @tags, }.to_json end