Sha256: d41eb4dff0019b57ea670ffc8e960b1c92f08a4b36ae450f82bd4179de2470cf
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
module Repor module Serializers class TableSerializer < BaseSerializer def headers report.groupers.map(&method(:human_dimension_label)) + [human_aggregator_label(report.aggregator)] end def each_row 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.aggregator, y)] end end def caption axis_summary end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
repor-0.0.2 | lib/repor/serializers/table_serializer.rb |
repor-0.0.1 | lib/repor/serializers/table_serializer.rb |