Class: Faker::Sports::Football

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/sports/football.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

.coachObject


15
16
17
# File 'lib/faker/sports/football.rb', line 15

def coach
  fetch('football.coaches')
end

.competitionObject


19
20
21
# File 'lib/faker/sports/football.rb', line 19

def competition
  fetch('football.competitions')
end

.playerObject


11
12
13
# File 'lib/faker/sports/football.rb', line 11

def player
  fetch('football.players')
end

.positionObject


23
24
25
# File 'lib/faker/sports/football.rb', line 23

def position
  fetch('football.positions')
end

.teamObject


7
8
9
# File 'lib/faker/sports/football.rb', line 7

def team
  fetch('football.teams')
end