forked from faker-ruby/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
football.rb
74 lines (69 loc) · 1.6 KB
/
football.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# frozen_string_literal: true
module Faker
class Sports
class Football < Base
class << self
##
# Produces the name of a football team.
#
# @return [String]
#
# @example
# Faker::Sports::Football.team #=> "Manchester United"
#
# @faker.version 1.9.0
def team
fetch('football.teams')
end
##
# Produces the name of a football player.
#
# @return [String]
#
# @example
# Faker::Sports::Football.player #=> "Lionel Messi"
#
# @faker.version 1.9.0
def player
fetch('football.players')
end
##
# Produces the name of a football coach.
#
# @return [String]
#
# @example
# Faker::Sports::Football.coach #=> "Jose Mourinho"
#
# @faker.version 1.9.0
def coach
fetch('football.coaches')
end
##
# Produces a football competition.
#
# @return [String]
#
# @example
# Faker::Sports::Football.competition #=> "FIFA World Cup"
#
# @faker.version 1.9.0
def competition
fetch('football.competitions')
end
##
# Produces a position in football.
#
# @return [String]
#
# @example
# Faker::Sports::Football.position #=> "Defensive Midfielder"
#
# @faker.version 1.9.2
def position
fetch('football.positions')
end
end
end
end
end