Sha256: 1d159313068bd1f8fa89d06642d1e0d5e4e9e777d4fa26cd9889287e856ffc80

Contents?: true

Size: 351 Bytes

Versions: 10

Compression:

Stored size: 351 Bytes

Contents

module MetricFu
  
  class FlayGrapher < Grapher
    
    attr_accessor :flay_score, :labels
    
    def initialize
      super
      @flay_score = []
      @labels = {}
    end
    
    def get_metrics(metrics, date)
      @flay_score.push(metrics[:flay][:total_score].to_i)
      @labels.update( { @labels.size => date })
    end
    
  end
  
end

Version data entries

10 entries across 10 versions & 6 rubygems

Version Path
cayblood-metric_fu-1.1.6 lib/graphs/flay_grapher.rb
metric_fu-1.5.0 lib/graphs/flay_grapher.rb
metric_fu-1.4.0 lib/graphs/flay_grapher.rb
devver-metric_fu-1.3.3 lib/graphs/flay_grapher.rb
nielsm-metric_fu-1.3.1 lib/graphs/flay_grapher.rb
metric_fu-1.3.0 lib/graphs/flay_grapher.rb
edouard-metric_fu-1.2.1 lib/graphs/flay_grapher.rb
edouard-metric_fu-1.2.0 lib/graphs/flay_grapher.rb
metric_fu-1.2.0 lib/graphs/flay_grapher.rb
flyerhzm-metric_fu-1.0.0 lib/graphs/flay_grapher.rb