Repository navigation
Expand file tree
/
Copy pathheroes.rb
More file actions
61 lines (57 loc) · 1.29 KB
/
Copy pathheroes.rb
File metadata and controls
61 lines (57 loc) · 1.29 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
# frozen_string_literal: true
module Faker
class Games
class Heroes < Base
class << self
##
# Produces the name of a hero from Heroes 3.
#
# @return [String]
#
# @example
# Faker::Games::Heroes.name #=> "Christian"
#
# @faker.version 1.9.2
def name
fetch('heroes.names')
end
##
# Produces the name of a specialty from Heroes 3.
#
# @return [String]
#
# @example
# Faker::Games::Heroes.specialty #=> "Ballista"
#
# @faker.version 1.9.2
def specialty
fetch('heroes.specialties')
end
##
# Produces the name of a class from Heroes 3.
#
# @return [String]
#
# @example
# Faker::Games::Heroes.klass #=> "Knight"
#
# @faker.version 1.9.2
def klass
fetch('heroes.klasses')
end
##
# Produces the name of an artifact from Heroes 3.
#
# @return [String]
#
# @example
# Faker::Games::Heroes.artifact #=> "Armageddon's Blade"
#
# @faker.version next
def artifact
fetch('heroes.artifacts')
end
end
end
end
end