lib/active_reporting/reporting_dimension.rb
# Fragment of an order by clause for queries that sort by the dimension
#
# @return [String]
Fragment of an order by clause for queries that sort by the dimension
Fragment of an order by clause for queries that sort by the dimension
def order_by_statement(direction:)
      direction = direction.to_s.upcase
      raise "Ording direction should be 'asc' or 'desc'" unless %w[ASC DESC].include?(direction)
      "#{label_fragment} #{direction}"
    end
def order_by_statement ( direction : ) direction = direction . to_s . upcase raise "Ording direction should be 'asc' or 'desc'" unless %w[ ASC DESC ] . include? ( direction ) "#{label_fragment} #{direction}" end
Fragment of an order by clause for queries that sort by the dimension
Fragment of an order by clause for queries that sort by the dimension
None
String
direction
<not_specific>