Repository navigation
Expand file tree
/
Copy pathesport.rb
More file actions
72 lines (67 loc) · 1.35 KB
/
Copy pathesport.rb
File metadata and controls
72 lines (67 loc) · 1.35 KB
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
# frozen_string_literal: true
module Faker
class Esport < Base
class << self
##
# Produces the name of a professional eSports player.
#
# @return [String]
#
# @example
# Faker::Esport.player #=> "Crimsix"
#
# @faker.version 1.7.0
def player
fetch('esport.players')
end
##
# Produces the name of an eSports team.
#
# @return [String]
#
# @example
# Faker::Esport.team #=> "CLG"
#
# @faker.version 1.7.0
def team
fetch('esport.teams')
end
##
# Produces the name of an eSports league.
#
# @return [String]
#
# @example
# Faker::Esport.league #=> "IEM"
#
# @faker.version 1.7.0
def league
fetch('esport.leagues')
end
##
# Produces the name of an eSports event.
#
# @return [String]
#
# @example
# Faker::Esport.event #=> "ESL Cologne"
#
# @faker.version 1.7.0
def event
fetch('esport.events')
end
##
# Produces the name of a game played as an eSport.
#
# @return [String]
#
# @example
# Faker::Esport.game #=> "Dota 2"
#
# @faker.version 1.7.0
def game
fetch('esport.games')
end
end
end
end