Class: Faker::TvShows::DrWho

Inherits:
Base
  • Object
show all
Defined in:
lib/faker/tv_shows/dr_who.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

.actorString

Produces an actor from Doctor Who.

Examples:

Faker::TvShows::DrWho.actor #=> "Matt Smith"

Returns:

  • (String)

Available since:

  • 1.9.0


44
45
46
# File 'lib/faker/tv_shows/dr_who.rb', line 44

def actor
  fetch('dr_who.actors')
end

.catch_phraseString

Produces a catch phrase from Doctor Who.

Examples:

Faker::TvShows::DrWho.catch_phrase #=> "Fantastic!"

Returns:

  • (String)

Available since:

  • 1.8.0


57
58
59
# File 'lib/faker/tv_shows/dr_who.rb', line 57

def catch_phrase
  fetch('dr_who.catch_phrases')
end

.characterString

Produces a character from Doctor Who.

Examples:

Faker::TvShows::DrWho.character #=> "Captain Jack Harkness"

Returns:

  • (String)

Available since:

  • 1.8.0


18
19
20
# File 'lib/faker/tv_shows/dr_who.rb', line 18

def character
  fetch('dr_who.character')
end

.quoteString

Produces a quote from Doctor Who.

Examples:

Faker::TvShows::DrWho.quote #=> "Lots of planets have a north!"

Returns:

  • (String)

Available since:

  • 1.8.0


70
71
72
# File 'lib/faker/tv_shows/dr_who.rb', line 70

def quote
  fetch('dr_who.quotes')
end

.specieString

Produces a species from Doctor Who.

Examples:

Faker::TvShows::DrWho.specie #=> "Dalek"

Returns:

  • (String)

Available since:

  • 1.8.0


109
110
111
# File 'lib/faker/tv_shows/dr_who.rb', line 109

def specie
  fetch('dr_who.species')
end

.the_doctorString

Produces an iteration of The Doctor from Doctor Who.

Examples:

Faker::TvShows::DrWho.the_doctor #=> "Ninth Doctor"

Returns:

  • (String)

Available since:

  • 1.8.0


31
32
33
# File 'lib/faker/tv_shows/dr_who.rb', line 31

def the_doctor
  fetch('dr_who.the_doctors')
end

.villainString Also known as: villian

Produces a villain from Doctor Who.

Examples:

Faker::TvShows::DrWho.villain #=> "The Master"

Returns:

  • (String)

Available since:

  • 2.13.0


83
84
85
# File 'lib/faker/tv_shows/dr_who.rb', line 83

def villain
  fetch('dr_who.villains')
end