class XcMetricsAggregator::Formatter

Public Class Methods

get_formatter(format) click to toggle source
# File lib/xc_metrics_aggregator/formatter/formatter.rb, line 8
def self.get_formatter(format)
    case format
    when OutputFormat::CSV
        CSVFormatter.new
    when OutputFormat::ASCII
        ASCIIFormatter.new
    end
end

Public Instance Methods

format(data) click to toggle source
# File lib/xc_metrics_aggregator/formatter/formatter.rb, line 17
def format(data)
    case data
    when TableStructure
        format_table(data)
    when ChartStructure
        format_chart(data)
    end
end
format_chart(data) click to toggle source
# File lib/xc_metrics_aggregator/formatter/formatter.rb, line 29
def format_chart(data)
end
format_table(data) click to toggle source
# File lib/xc_metrics_aggregator/formatter/formatter.rb, line 26
def format_table(data)
end