Sha256: 937cfe1b26078e9a12ba95932ea8952fb18733f11f85141123ca380c8d5ac003
Contents?: true
Size: 637 Bytes
Versions: 3
Compression:
Stored size: 637 Bytes
Contents
module Kijkwijzer class Result attr_accessor :title attr_accessor :production_type attr_accessor :year attr_accessor :ratings # Get the ratings for the result # # @return [String] with kijkwijzer-ratings (English-language-labels) 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 to_s "#<Kijkwijzer::Result @title=\"#{title}\", @year=#{year}>" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kijkwijzer-0.1.4 | lib/kijkwijzer/result.rb |
kijkwijzer-0.1.3 | lib/kijkwijzer/result.rb |
kijkwijzer-0.1.2 | lib/kijkwijzer/result.rb |