MetricFu::StatsGrapher

Attributes

labels[RW]
loc_counts[RW]
lot_counts[RW]

Public Class Methods

new() click to toggle source
# File lib/graphs/stats_grapher.rb, line 8
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 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.