MetricFu::Grapher
# File lib/graphs/stats_grapher.rb, line 8 def initialize super self.loc_counts = [] self.lot_counts = [] self.labels = {} end
# File lib/graphs/stats_grapher.rb, line 15 def get_metrics(metrics, date) 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
[Validate]
Generated with the Darkfish Rdoc Generator 2.