Class: Faker::WorldCup

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

Constant Summary

Constants inherited from Base

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

Class Method Summary collapse

Methods inherited from Base

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

Class Method Details

.cityObject



10
11
12
# File 'lib/faker/default/world_cup.rb', line 10

def city
  fetch('world_cup.cities')
end

.group(group = 'group_A') ⇒ Object



18
19
20
# File 'lib/faker/default/world_cup.rb', line 18

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

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



22
23
24
# File 'lib/faker/default/world_cup.rb', line 22

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

.stadiumObject



14
15
16
# File 'lib/faker/default/world_cup.rb', line 14

def stadium
  fetch('world_cup.stadiums')
end

.teamObject



6
7
8
# File 'lib/faker/default/world_cup.rb', line 6

def team
  fetch('world_cup.teams')
end