Class: Faker::Movies::HitchhikersGuideToTheGalaxy

Inherits:
Base
  • Object
show all
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

Methods inherited from Base

bothify, disable_enforce_available_locales, fetch, fetch_all, flexible, letterify, method_missing, numerify, parse, rand, rand_in_range, regexify, resolve, respond_to_missing?, sample, shuffle, translate, unique, with_locale

Class Method Details

.characterString

Produces a character from The Hitchhiker's Guide to the Galaxy.

Examples:

Faker::Movies::HitchhikersGuideToTheGalaxy.character #=> "Marvin"

Returns:

  • (String)

Available since:

  • 1.8.0


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

.locationString

Produces a location from The Hitchhiker's Guide to the Galaxy.

Examples:

Faker::Movies::HitchhikersGuideToTheGalaxy.location
  #=> "Arthur Dent's house"

Returns:

  • (String)

Available since:

  • 1.8.0


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_quoteString

Produces a Marvin quote from The Hitchhiker's Guide to the Galaxy.

Examples:

Faker::Movies::HitchhikersGuideToTheGalaxy.marvin_quote
  #=> "Life? Don't talk to me about life."

Returns:

  • (String)

Available since:

  • 1.8.0


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

.planetString

Produces a planet from The Hitchhiker's Guide to the Galaxy.

Examples:

Faker::Movies::HitchhikersGuideToTheGalaxy.planet
  #=> "Magrathea"

Returns:

  • (String)

Available since:

  • 1.8.0


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

.quoteString

Produces a quote from The Hitchhiker's Guide to the Galaxy.

Examples:

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."

Returns:

  • (String)

Available since:

  • 1.8.0


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

.specieString

Produces a species from The Hitchhiker's Guide to the Galaxy.

Examples:

Faker::Movies::HitchhikersGuideToTheGalaxy.specie
  #=> "Perfectly Normal Beast"

Returns:

  • (String)

Available since:

  • 1.8.0


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

.starshipString

Produces a starship from The Hitchhiker's Guide to the Galaxy.

Examples:

Faker::Movies::HitchhikersGuideToTheGalaxy.starship
  #=> "Vogon Constructor Fleet"

Returns:

  • (String)

Available since:

  • 1.8.0


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