Class: BacktraceLineNormalizer

Inherits:
Object
  • Object
show all
Defined in:
app/models/backtrace_line_normalizer.rb

Instance Method Summary collapse

Constructor Details

#initialize(raw_line) ⇒ BacktraceLineNormalizer

Returns a new instance of BacktraceLineNormalizer


2
3
4
# File 'app/models/backtrace_line_normalizer.rb', line 2

def initialize(raw_line)
  @raw_line = raw_line || {}
end

Instance Method Details

#callObject


6
7
8
# File 'app/models/backtrace_line_normalizer.rb', line 6

def call
  @raw_line.merge 'file' => normalized_file, 'method' => normalized_method
end