class CodeKeeper::Result
Store results of each score.
Attributes
scores[R]
Public Class Methods
new()
click to toggle source
# File lib/code_keeper/result.rb, line 8 def initialize @scores = CodeKeeper.config.metrics.map { |key| [key, {}] }.to_h end
Public Instance Methods
add(metric, path, score)
click to toggle source
# File lib/code_keeper/result.rb, line 12 def add(metric, path, score) scores[:"#{metric}"].store(path, score) end