Module: Faussaire::Tv::FestivalCannes
- Defined in:
- lib/faussaire/tv.rb
Overview
Provides data related to the Festival de Cannes.
Class Method Summary collapse
-
.awarded_countries ⇒ String
Produces a random country from those that have won awards.
-
.box_office ⇒ String
Returns a random top box office figure from the festival’s films.
-
.directors_with_two_palms ⇒ String
Produces a random director who has won the Palme d’Or twice.
-
.most_represented_countries ⇒ String
Produces a random country among the most represented at the festival.
-
.multiple_awardises ⇒ String
Produces a random nominee who has received multiple awards.
-
.total_films ⇒ Integer
Returns the total number of films presented at the festival.
-
.winners ⇒ String
Produces a random Palme d’Or winner.
Class Method Details
.awarded_countries ⇒ String
Produces a random country from those that have won awards.
42 43 44 |
# File 'lib/faussaire/tv.rb', line 42 def awarded_countries fetch('fr.faussaire.tv.festival_cannes.awarded_countries') end |
.box_office ⇒ String
Returns a random top box office figure from the festival’s films.
90 91 92 |
# File 'lib/faussaire/tv.rb', line 90 def box_office fetch('fr.faussaire.tv.festival_cannes.box_office') end |
.directors_with_two_palms ⇒ String
Produces a random director who has won the Palme d’Or twice.
54 55 56 |
# File 'lib/faussaire/tv.rb', line 54 def directors_with_two_palms fetch('fr.faussaire.tv.festival_cannes.directors_with_two_palms') end |
.most_represented_countries ⇒ String
Produces a random country among the most represented at the festival.
30 31 32 |
# File 'lib/faussaire/tv.rb', line 30 def most_represented_countries fetch('fr.faussaire.tv.festival_cannes.most_represented_countries') end |
.multiple_awardises ⇒ String
Produces a random nominee who has received multiple awards.
66 67 68 |
# File 'lib/faussaire/tv.rb', line 66 def multiple_awardises fetch('fr.faussaire.tv.festival_cannes.multiple_awardises') end |
.total_films ⇒ Integer
Returns the total number of films presented at the festival.
18 19 20 |
# File 'lib/faussaire/tv.rb', line 18 def total_films festival_cannes_data['total_films'].first end |
.winners ⇒ String
Produces a random Palme d’Or winner.
78 79 80 |
# File 'lib/faussaire/tv.rb', line 78 def winners fetch('fr.faussaire.tv.festival_cannes.winners') end |