Sha256: f52f74a92b634533c0f7e582273c14da6ad59b00b01d925a459e9996ac97f946

Contents?: true

Size: 495 Bytes

Versions: 28

Compression:

Stored size: 495 Bytes

Contents

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

28 entries across 28 versions & 5 rubygems

Version Path
rferraz-metric_fu-2.1.1 lib/graphs/rails_best_practices_grapher.rb
metric_fu-2.1.1 lib/graphs/rails_best_practices_grapher.rb
metric_fu-2.1.0 lib/graphs/rails_best_practices_grapher.rb
goldstar-metric_fu-1.5.1.2 lib/graphs/rails_best_practices_grapher.rb
metric_fu-2.0.1 lib/graphs/rails_best_practices_grapher.rb
metric_fu-2.0.0 lib/graphs/rails_best_practices_grapher.rb
goldstar-metric_fu-1.5.1.1 lib/graphs/rails_best_practices_grapher.rb
metric_fu-1.5.1 lib/graphs/rails_best_practices_grapher.rb