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