Method: Faker::WorldCup.city

Defined in:
lib/faker/default/world_cup.rb

.cityString

Produces a city name hosting the World Cup match.

Examples:

Faker::WorldCup.city #=> "Moscow"

Returns:

  • (String)

Available since:

  • 2.13.0



28
29
30
# File 'lib/faker/default/world_cup.rb', line 28

def city
  fetch('world_cup.cities')
end