Sha256: f6aafd0dd4716210d4bb71e24499996e10e585fce4d1d3a1d141da75816ecc82
Contents?: true
Size: 392 Bytes
Versions: 1
Compression:
Stored size: 392 Bytes
Contents
module Repor module Dimensions class TimeCategoryDimension < CategoryDimension def expression case time_category when :day_of_week "DOW(#{super})" else raise "unsupported time category #{time_category}" end end def time_category params.fetch(:time_category, :day_of_week).to_sym end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
repor-0.0.4 | lib/repor/dimensions/time_category_dimension.rb |