forked from faker-ruby/faker
/
hitchhikers_guide_to_the_galaxy.rb
99 lines (92 loc) · 2.82 KB
/
hitchhikers_guide_to_the_galaxy.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# frozen_string_literal: true
module Faker
class Movies
class HitchhikersGuideToTheGalaxy < Base
class << self
# Produces a character from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.character #=> "Marvin"
#
# @faker.version 1.8.0
def character
fetch('hitchhikers_guide_to_the_galaxy.characters')
end
# Produces a location from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.location
# #=> "Arthur Dent's house"
#
# @faker.version 1.8.0
def location
fetch('hitchhikers_guide_to_the_galaxy.locations')
end
# Produces a Marvin quote from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote
# #=> "Life? Don't talk to me about life."
#
# @faker.version 1.8.0
def marvin_quote
fetch('hitchhikers_guide_to_the_galaxy.marvin_quote')
end
# Produces a planet from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.planet
# #=> "Magrathea"
#
# @faker.version 1.8.0
def planet
fetch('hitchhikers_guide_to_the_galaxy.planets')
end
# Produces a quote from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.quote
# #=> "In the beginning, the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
#
# @faker.version 1.8.0
def quote
fetch('hitchhikers_guide_to_the_galaxy.quotes')
end
# Produces a species from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.specie
# #=> "Perfectly Normal Beast"
#
# @faker.version 1.8.0
def specie
fetch('hitchhikers_guide_to_the_galaxy.species')
end
# Produces a starship from The Hitchhiker's Guide to the Galaxy.
#
# @return [String]
#
# @example
# Faker::Movies::HitchhikersGuideToTheGalaxy.starship
# #=> "Vogon Constructor Fleet"
#
# @faker.version 1.8.0
def starship
fetch('hitchhikers_guide_to_the_galaxy.starships')
end
end
end
end
end