Sha256: 1013ad8542a716e160170ac8f1a1fb48fba7fa386f6644403bf02f6c4083d1c4
Contents?: true
Size: 543 Bytes
Versions: 12
Compression:
Stored size: 543 Bytes
Contents
MetricFu.reporting_require { 'graphs/grapher' } module MetricFu class RailsBestPracticesGrapher < Grapher attr_accessor :rails_best_practices_count, :labels def initialize super @rails_best_practices_count = [] @labels = {} end def get_metrics(metrics, date) if metrics && metrics[:rails_best_practices] size = (metrics[:rails_best_practices][:problems] || []).size @rails_best_practices_count.push(size) @labels.update( { @labels.size => date }) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems