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, 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

.actorString

Produces an actor from Doctor Who.

Examples:

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

Returns:



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:



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:



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:



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:



96
97
98
# File 'lib/faker/tv_shows/dr_who.rb', line 96

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:



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

def the_doctor
  fetch('dr_who.the_doctors')
end

.villainString

Produces a villain from Doctor Who.

Examples:

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

Returns:



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

def villain
  fetch('dr_who.villains')
end