Sha256: 4021f965549896623963dc81901238f563c8e41bcddb4026d6c13d173c009057
Contents?: true
Size: 490 Bytes
Versions: 1
Compression:
Stored size: 490 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metric_fu-2.0.0 | lib/base/stats_analyzer.rb |