class MetricFu::StatsGrapher
Attributes
labels[RW]
loc_counts[RW]
lot_counts[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
MetricFu::Grapher::new
# File lib/graphs/stats_grapher.rb, line 5 def initialize super self.loc_counts = [] self.lot_counts = [] self.labels = {} end
Public Instance Methods
get_metrics(metrics, date)
click to toggle source
# File lib/graphs/stats_grapher.rb, line 12 def get_metrics(metrics, date) if metrics && metrics[:stats] self.loc_counts.push(metrics[:stats][:codeLOC].to_i) self.lot_counts.push(metrics[:stats][:testLOC].to_i) self.labels.update( { self.labels.size => date }) end end