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

Version Path
metric_fu-2.1.3.4 lib/metrics/stats/stats_analyzer.rb
bf4-metric_fu-2.1.3.4 lib/base/stats_analyzer.rb
bf4-metric_fu-2.1.3.3 lib/base/stats_analyzer.rb
bf4-metric_fu-2.1.3.2 lib/base/stats_analyzer.rb
bf4-metric_fu-2.1.3.1 lib/base/stats_analyzer.rb
danmayer-metric_fu-2.1.3 lib/base/stats_analyzer.rb
danmayer-metric_fu-2.1.2 lib/base/stats_analyzer.rb
rferraz-metric_fu-2.1.2 lib/base/stats_analyzer.rb
rferraz-metric_fu-2.1.1 lib/base/stats_analyzer.rb
metric_fu-2.1.1 lib/base/stats_analyzer.rb
metric_fu-2.1.0 lib/base/stats_analyzer.rb
metric_fu-2.0.1 lib/base/stats_analyzer.rb