Sha256: ee402984e9837acda455bf8a8a38e13757964f8b3dc0eeee87385c2cde94c50c
Contents?: true
Size: 648 Bytes
Versions: 9
Compression:
Stored size: 648 Bytes
Contents
MetricFu.reporting_require { "graphs/grapher" } module MetricFu class RoodiGrapher < Grapher attr_accessor :roodi_count, :labels def self.metric :roodi end def initialize super @roodi_count = [] @labels = {} end def get_metrics(metrics, date) if metrics && metrics[:roodi] @roodi_count.push(metrics[:roodi][:problems].size) @labels.update(@labels.size => date) end end def title "Roodi: design problems" end def data [ ["roodi", @roodi_count.join(",")] ] end def output_filename "roodi.js" end end end
Version data entries
9 entries across 9 versions & 3 rubygems