Sha256: bc6c3047524c473045ef1c6ffcab87cac0ac9e75d471c728f1e676ddb9d7a6f2
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
module ActiveReporter module Serializer class Table < Base def headers report.groupers.map(&method(:human_dimension_label)) + [human_aggregator_label(report.aggregators)] end def each_row return to_enum(__method__) unless block_given? report.flat_data.each do |xes, y| yield report.groupers.zip(xes).map { |d, v| human_dimension_value_label(d, v) } + [human_aggregator_value_label(report.aggregators, y)] end end def caption axis_summary end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_reporter-0.5.9 | lib/active_reporter/serializer/table.rb |
active_reporter-0.5.8 | lib/active_reporter/serializer/table.rb |