Sha256: ad67a19317e3f6d43c6c45d470df4de1ce574d09d981a661b71590c245eaf0c5
Contents?: true
Size: 486 Bytes
Versions: 12
Compression:
Stored size: 486 Bytes
Contents
class StatsAnalyzer COLUMNS = %w{stat_name stat_value} def columns COLUMNS end def name :stats end def map(row) 0 end def reduce(scores) 0 end def score(metric_ranking, item) 0 end def generate_records(data, table) return if data == nil data.each do |key, value| next if value.kind_of?(Array) table << { "metric" => name, "stat_name" => key, "stat_value" => value } end end end
Version data entries
12 entries across 12 versions & 4 rubygems