Sha256: 7a441fbc0427181ad1ea9226bec5c564f31ff4be78c2568e216094616e6af045

Contents?: true

Size: 654 Bytes

Versions: 15

Compression:

Stored size: 654 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

15 entries across 15 versions & 1 rubygems

Version Path
metric_fu-4.11.3 lib/metric_fu/metrics/roodi/grapher.rb
metric_fu-4.11.2 lib/metric_fu/metrics/roodi/grapher.rb
metric_fu-4.11.1 lib/metric_fu/metrics/roodi/grapher.rb
metric_fu-4.11.0 lib/metric_fu/metrics/roodi/grapher.rb
metric_fu-4.10.0 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.9.0 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.8.0 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.7.4 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.7.3 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.7.2 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.7.1 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.7.0 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.6.0 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.5.2 lib/metric_fu/metrics/roodi/roodi_grapher.rb
metric_fu-4.5.1 lib/metric_fu/metrics/roodi/roodi_grapher.rb