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

Version Path
metric_fu-4.13.0 lib/metric_fu/metrics/roodi/grapher.rb
fastruby-metric_fu-5.0.0 lib/metric_fu/metrics/roodi/grapher.rb
code_metric_fu-4.14.4 lib/metric_fu/metrics/roodi/grapher.rb
code_metric_fu-4.14.3 lib/metric_fu/metrics/roodi/grapher.rb
code_metric_fu-4.14.2 lib/metric_fu/metrics/roodi/grapher.rb
code_metric_fu-4.14.1 lib/metric_fu/metrics/roodi/grapher.rb
code_metric_fu-4.14.0 lib/metric_fu/metrics/roodi/grapher.rb
metric_fu-4.12.0 lib/metric_fu/metrics/roodi/grapher.rb
metric_fu-4.11.4 lib/metric_fu/metrics/roodi/grapher.rb