forked from faker-ruby/faker
/
zelda.rb
62 lines (58 loc) · 1.38 KB
/
zelda.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
# frozen_string_literal: true
module Faker
class Games
class Zelda < Base
flexible :zelda
class << self
##
# Produces the name of a Legend of Zelda game.
#
# @return [String]
#
# @example
# Faker::Games::Zelda.game #=> "Breath of the Wild"
#
# @faker.version 1.7.3
def game
fetch('games.zelda.games')
end
##
# Produces the name of a character from the Legend of Zelda games.
#
# @return [String]
#
# @example
# Faker::Games::Zelda.character #=> "Link"
#
# @faker.version 1.7.3
def character
fetch('games.zelda.characters')
end
##
# Produces the name of a character from the Legend of Zelda games.
#
# @return [String]
#
# @example
# Faker::Games::Zelda.location #=> "Hyrule Castle"
#
# @faker.version 1.7.3
def location
fetch('games.zelda.locations')
end
##
# Produces the name of an item from the Legend of Zelda games.
#
# @return [String]
#
# @example
# Faker::Games::Zelda.item #=> "Boomerang"
#
# @faker.version 1.7.3
def item
fetch('games.zelda.items')
end
end
end
end
end