Sha256: 8a91163a02da3c0e659002b8eb2480dda73a03f471e40587b743307988ae34c1
Contents?: true
Size: 462 Bytes
Versions: 1
Compression:
Stored size: 462 Bytes
Contents
module Faker class WorldCup < Base class << self def team fetch('world_cup.teams') end def city fetch('world_cup.cities') end def stadium fetch('world_cup.stadiums') end def group(group = 'group_A') fetch("world_cup.groups.#{group}") end def roster(country = 'Egypt', type = 'coach') fetch("world_cup.rosters.#{country}.#{type}") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faker-1.9.1 | lib/faker/world_cup.rb |