forked from faker-ruby/faker
/
one_piece.rb
81 lines (75 loc) · 1.86 KB
/
one_piece.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
75
76
77
78
79
80
81
# frozen_string_literal: true
module Faker
class JapaneseMedia
class OnePiece < Base
class << self
# Produces a character from One Piece.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::OnePiece.character #=> "Monkey D. Luffy"
#
# @faker.version 1.8.5
def character
fetch('one_piece.characters')
end
# Produces a sea from One Piece.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::OnePiece.sea #=> "East Blue"
#
# @faker.version 1.8.5
def sea
fetch('one_piece.seas')
end
# Produces an island from One Piece.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::OnePiece.island #=> "Laftel"
#
# @faker.version 1.8.5
def island
fetch('one_piece.islands')
end
# Produces a location from One Piece.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::OnePiece.location #=> "Foosha Village"
#
# @faker.version 1.8.5
def location
fetch('one_piece.locations')
end
# Produces a quote from One Piece.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::OnePiece.quote #=> "ONE PIECE IS REAL!"
#
# @faker.version 1.8.5
def quote
fetch('one_piece.quotes')
end
# Produces an akuma no mi from One Piece.
#
# @return [String]
#
# @example
# Faker::JapaneseMedia::OnePiece.akuma_no_mi #=> "Gomu Gomu no Mi"
#
# @faker.version 1.8.5
def akuma_no_mi
fetch('one_piece.akumas_no_mi')
end
end
end
end
end