Class: Faker::WorldCup

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/world_cup.rb

Constant Summary

Constants inherited from Base

Base::Letters, Base::Numbers, Base::ULetters

Class Method Summary collapse

Methods inherited from Base

bothify, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.cityObject



8
9
10
# File 'lib/faker/world_cup.rb', line 8

def city
  fetch('world_cup.cities')
end

.group(group = 'group_A') ⇒ Object



16
17
18
# File 'lib/faker/world_cup.rb', line 16

def group(group = 'group_A')
  fetch("world_cup.groups.#{group}")
end

.roster(country = 'Egypt', type = 'coach') ⇒ Object



20
21
22
# File 'lib/faker/world_cup.rb', line 20

def roster(country = 'Egypt', type = 'coach')
  fetch("world_cup.rosters.#{country}.#{type}")
end

.stadiumObject



12
13
14
# File 'lib/faker/world_cup.rb', line 12

def stadium
  fetch('world_cup.stadiums')
end

.teamObject



4
5
6
# File 'lib/faker/world_cup.rb', line 4

def team
  fetch('world_cup.teams')
end