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

Version Path
metric_fu-4.4.4 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.4.3 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.4.2 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.4.1 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.4.0 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.3.1 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.3.0 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.2.1 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.2.0 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.1.3 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.1.2 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb
metric_fu-4.1.1 lib/metric_fu/metrics/rails_best_practices/rails_best_practices_grapher.rb