Class: Faker::TvShows::Simpsons

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

Examples:

Faker::TvShows::Simpsons.character #=> "Charles Montgomery Burns"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def character
  fetch('simpsons.characters')
end

.episode_titleString

Produces an episode title from The Simpsons.

Examples:

Faker::TvShows::Simpsons.episode_title
  #=> "Two Cars in Every Garage and Three Eyes on Every Fish"

Returns:

  • (String)

Available since:

  • 2.13.0


59
60
61
# File 'lib/faker/tv_shows/simpsons.rb', line 59

def episode_title
  fetch('simpsons.episode_titles')
end

.locationString

Produces a location from The Simpsons.

Examples:

Faker::TvShows::Simpsons.location #=> "Moe's Tavern"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def location
  fetch('simpsons.locations')
end

.quoteString

Produces a quote from The Simpsons.

Examples:

Faker::TvShows::Simpsons.quote
  #=> "It takes two to lie: one to lie and one to listen."

Returns:

  • (String)

Available since:

  • 1.8.0


45
46
47
# File 'lib/faker/tv_shows/simpsons.rb', line 45

def quote
  fetch('simpsons.quotes')
end