class ActiveReporter::Serializer::Table
Public Instance Methods
caption()
click to toggle source
# File lib/active_reporter/serializer/table.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/active_reporter/serializer/table.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.all_aggregators, y)] end end
headers()
click to toggle source
# File lib/active_reporter/serializer/table.rb, line 4 def headers report.groupers.map(&method(:human_dimension_label)) + [human_aggregator_label(report.all_aggregators)] end