lib/ratebeer/beer/review_set.rb
def url_suffix
        suffix = ORDERINGS[@review_order]
        raise ArgumentError, "unknown ordering: #{@review_order}" if suffix.nil?
        suffix
      end
# Determine the URL suffix required for a particular sort order.
#
# @param [Symbol] order The desired sorting order
# @return [String] The URL suffix required to obtain reviews sorted in
#   the desired order
#
Determine the URL suffix required for a particular sort order.
Determine the URL suffix required for a particular sort order .
def url_suffix
        suffix = ORDERINGS[@review_order]
        raise ArgumentError, "unknown ordering: #{@review_order}" if suffix.nil?
        suffix
      end
def url_suffix suffix = ORDERINGS [ @review_order ] raise ArgumentError , "unknown ordering: #{@review_order}" if suffix . nil? suffix end
Determine the URL suffix required for a particular sort order.
Determine the URL suffix required for a particular sort order .
The URL suffix required to obtain reviews sorted in the desired order
The URL suffix required to obtain reviews sorted in the desired order
String
order The desired sorting order
order The desired sorting order