lib/kijkwijzer/result.rb
# Get the ratings for the result
#
# @return [String] with kijkwijzer-ratings (English-language-labels)
Get the ratings for the result
Get the ratings for the result
def ratings
      @ratings.collect do |rating|
        rating = rating.to_s.downcase
        rv = nil
        Kijkwijzer::POSSIBLE_RATINGS.each do |pr|
          rv = pr[:value] if (rating == pr[:value] or rating == pr[:code])
        end
        rv
      end.compact
    end
def ratings @ratings . collect do | rating | rating = rating . to_s . downcase rv = nil Kijkwijzer :: POSSIBLE_RATINGS . each do | pr | rv = pr [ :value ] if ( rating == pr [ :value ] or rating == pr [ :code ] ) end rv end . compact end
Get the ratings for the result
Get the ratings for the result
with kijkwijzer-ratings (English-language-labels)
with kijkwijzer - ratings ( English - language - labels )
String