Module: Faussaire::Tv::FestivalCannes

Defined in:
lib/faussaire/tv.rb

Overview

Provides data related to the Festival de Cannes.

Class Method Summary collapse

Class Method Details

.awarded_countriesString

Produces a random country from those that have won awards.

Examples:

Faussaire::Tv::FestivalCannes.awarded_countries #=> "USA"

Returns:

  • (String)


42
43
44
# File 'lib/faussaire/tv.rb', line 42

def awarded_countries
  fetch('fr.faussaire.tv.festival_cannes.awarded_countries')
end

.box_officeString

Returns a random top box office figure from the festival’s films.

Examples:

Faussaire::Tv::FestivalCannes.box_office #=> "$500 million"

Returns:

  • (String)

    The box office amount in USD.



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_palmsString

Produces a random director who has won the Palme d’Or twice.

Examples:

Faussaire::Tv::FestivalCannes.directors_with_two_palms #=> "Quentin Tarantino"

Returns:

  • (String)


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_countriesString

Produces a random country among the most represented at the festival.

Examples:

Faussaire::Tv::FestivalCannes.most_represented_countries #=> "France"

Returns:

  • (String)


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_awardisesString

Produces a random nominee who has received multiple awards.

Examples:

Faussaire::Tv::FestivalCannes.multiple_awardises #=> "Meryl Streep"

Returns:

  • (String)


66
67
68
# File 'lib/faussaire/tv.rb', line 66

def multiple_awardises
  fetch('fr.faussaire.tv.festival_cannes.multiple_awardises')
end

.total_filmsInteger

Returns the total number of films presented at the festival.

Examples:

Faussaire::Tv::FestivalCannes.total_films #=> 3200

Returns:

  • (Integer)


18
19
20
# File 'lib/faussaire/tv.rb', line 18

def total_films
  festival_cannes_data['total_films'].first
end

.winnersString

Produces a random Palme d’Or winner.

Examples:

Faussaire::Tv::FestivalCannes.winners #=> "Parasite"

Returns:

  • (String)


78
79
80
# File 'lib/faussaire/tv.rb', line 78

def winners
  fetch('fr.faussaire.tv.festival_cannes.winners')
end