class Repor::Serializers::TableSerializer

Public Instance Methods

caption() click to toggle source
# File lib/repor/serializers/table_serializer.rb, line 16
def caption
  axis_summary
end
each_row() { |groupers.zip(xes).map { |d, v| human_dimension_value_label(d, v) }| ... } click to toggle source
# File lib/repor/serializers/table_serializer.rb, line 8
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.aggregator, y)]
  end
end
headers() click to toggle source
# File lib/repor/serializers/table_serializer.rb, line 4
def headers
  report.groupers.map(&method(:human_dimension_label)) + [human_aggregator_label(report.aggregator)]
end