Sha256: 31a00cdd2ba4be9571a5f5253f8ecf1a4308782d57235543d8c4869c73a46e88
Contents?: true
Size: 636 Bytes
Versions: 5
Compression:
Stored size: 636 Bytes
Contents
class PostReport < Repor::Report report_on :Post count_aggregator :count sum_aggregator :total_likes, expression: 'posts.likes' min_aggregator :min_likes, expression: 'posts.likes' min_aggregator :min_created_at, expression: 'posts.created_at' max_aggregator :max_likes, expression: 'posts.likes' max_aggregator :max_created_at, expression: 'posts.created_at' avg_aggregator :avg_likes, expression: 'posts.likes' array_aggregator :post_ids, expression: 'posts.id' category_dimension :author, expression: 'authors.name', relation: ->(r) { r.joins(:author) } number_dimension :likes time_dimension :created_at end
Version data entries
5 entries across 5 versions & 1 rubygems