Class: Faker::Movies::HitchhikersGuideToTheGalaxy
- Defined in:
- lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb
Constant Summary
Constants inherited from Base
Base::LLetters, Base::Letters, Base::NOT_GIVEN, Base::Numbers, Base::ULetters
Class Method Summary collapse
-
.character ⇒ String
Produces a character from The Hitchhiker’s Guide to the Galaxy.
-
.location ⇒ String
Produces a location from The Hitchhiker’s Guide to the Galaxy.
-
.marvin_quote ⇒ String
Produces a Marvin quote from The Hitchhiker’s Guide to the Galaxy.
-
.planet ⇒ String
Produces a planet from The Hitchhiker’s Guide to the Galaxy.
-
.quote ⇒ String
Produces a quote from The Hitchhiker’s Guide to the Galaxy.
-
.specie ⇒ String
Produces a species from The Hitchhiker’s Guide to the Galaxy.
-
.starship ⇒ String
Produces a starship from The Hitchhiker’s Guide to the Galaxy.
Methods inherited from Base
bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, generate, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, shuffle!, translate, unique, with_locale
Class Method Details
.character ⇒ String
Produces a character from The Hitchhiker’s Guide to the Galaxy.
16 17 18 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 16 def character fetch('hitchhikers_guide_to_the_galaxy.characters') end |
.location ⇒ String
Produces a location from The Hitchhiker’s Guide to the Galaxy.
30 31 32 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 30 def location fetch('hitchhikers_guide_to_the_galaxy.locations') end |
.marvin_quote ⇒ String
Produces a Marvin quote from The Hitchhiker’s Guide to the Galaxy.
44 45 46 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 44 def marvin_quote fetch('hitchhikers_guide_to_the_galaxy.marvin_quote') end |
.planet ⇒ String
Produces a planet from The Hitchhiker’s Guide to the Galaxy.
58 59 60 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 58 def planet fetch('hitchhikers_guide_to_the_galaxy.planets') end |
.quote ⇒ String
Produces a quote from The Hitchhiker’s Guide to the Galaxy.
72 73 74 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 72 def quote fetch('hitchhikers_guide_to_the_galaxy.quotes') end |
.specie ⇒ String
Produces a species from The Hitchhiker’s Guide to the Galaxy.
86 87 88 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 86 def specie fetch('hitchhikers_guide_to_the_galaxy.species') end |
.starship ⇒ String
Produces a starship from The Hitchhiker’s Guide to the Galaxy.
100 101 102 |
# File 'lib/faker/movies/hitchhikers_guide_to_the_galaxy.rb', line 100 def starship fetch('hitchhikers_guide_to_the_galaxy.starships') end |