Class: Faker::Sports::Football
- Defined in:
- lib/faker/sports/football.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.coach ⇒ String
Produces the name of a football coach.
-
.competition ⇒ String
Produces a football competition.
-
.player ⇒ String
Produces the name of a football player.
-
.position ⇒ String
Produces a position in football.
-
.team ⇒ String
Produces the name of a football team.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.coach ⇒ String
Produces the name of a football coach.
42 43 44 |
# File 'lib/faker/sports/football.rb', line 42 def coach fetch('football.coaches') end |
.competition ⇒ String
Produces a football competition.
55 56 57 |
# File 'lib/faker/sports/football.rb', line 55 def competition fetch('football.competitions') end |
.player ⇒ String
Produces the name of a football player.
29 30 31 |
# File 'lib/faker/sports/football.rb', line 29 def player fetch('football.players') end |
.position ⇒ String
Produces a position in football.
68 69 70 |
# File 'lib/faker/sports/football.rb', line 68 def position fetch('football.positions') end |
.team ⇒ String
Produces the name of a football team.
16 17 18 |
# File 'lib/faker/sports/football.rb', line 16 def team fetch('football.teams') end |