class Faker::Sport
def ancient_olympics_sport
-
(String)
-
def ancient_olympics_sport fetch('sport.ancient_olympics') end
def sport(include_ancient: false, include_unusual: false)
-
(String)
-
Parameters:
-
include_unusual
(Boolean
) -- If true, may produce an unusual (definitely not olympic) sport -
include_ancient
(Boolean
) -- If true, may produce a sport from the ancient olympics
def sport(include_ancient: false, include_unusual: false) sports = [] sports.concat( fetch_all('sport.summer_olympics'), fetch_all('sport.summer_paralympics'), fetch_all('sport.winter_olympics'), fetch_all('sport.winter_paralympics') ) sports.concat(fetch_all('sport.ancient_olympics')) if include_ancient sports.concat(fetch_all('sport.unusual')) if include_unusual sample(sports) end
def summer_olympics_sport
-
(String)
-
def summer_olympics_sport fetch('sport.summer_olympics') end
def summer_paralympics_sport
-
(String)
-
def summer_paralympics_sport fetch('sport.summer_paralympics') end
def unusual_sport
-
(String)
-
def unusual_sport fetch('sport.unusual') end
def winter_olympics_sport
-
(String)
-
def winter_olympics_sport fetch('sport.winter_olympics') end
def winter_paralympics_sport
-
(String)
-
def winter_paralympics_sport fetch('sport.winter_paralympics') end