Sha256: 58ea13b612eceee701f189088f46b456ba6aec0da67ac14c394d4c9dc3697e0b

Contents?: true

Size: 376 Bytes

Versions: 28

Compression:

Stored size: 376 Bytes

Contents

module MetricFu
  class FlayGrapher < Grapher
    attr_accessor :flay_score, :labels

    def initialize
      super
      @flay_score = []
      @labels = {}
    end

    def get_metrics(metrics, date)
      if metrics && metrics[:flay]
        @flay_score.push(metrics[:flay][:total_score].to_i)
        @labels.update( { @labels.size => date })
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
metric_fu-4.1.0 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-4.0.0 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-3.0.1 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-3.0.0 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-2.1.4.pre5 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-2.1.4.pre4 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-2.1.4.pre2 lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-2.1.4.pre lib/metric_fu/metrics/flay/flay_grapher.rb
metric_fu-2.1.3.7.18.1 lib/metrics/flay/flay_grapher.rb
metric_fu-2.1.3.7.19 lib/metrics/flay/flay_grapher.rb
metric_fu-2.1.3.6 lib/metrics/flay/flay_grapher.rb
metric_fu-2.1.3.5 lib/metrics/flay/flay_grapher.rb
metric_fu-2.1.3.4 lib/metrics/flay/flay_grapher.rb
bf4-metric_fu-2.1.3.4 lib/graphs/flay_grapher.rb
bf4-metric_fu-2.1.3.3 lib/graphs/flay_grapher.rb
bf4-metric_fu-2.1.3.2 lib/graphs/flay_grapher.rb
bf4-metric_fu-2.1.3.1 lib/graphs/flay_grapher.rb
danmayer-metric_fu-2.1.3 lib/graphs/flay_grapher.rb
danmayer-metric_fu-2.1.2 lib/graphs/flay_grapher.rb
rferraz-metric_fu-2.1.2 lib/graphs/flay_grapher.rb