Class: Faker::TvShows::FamilyGuy

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

Examples:

Faker::TvShows::FamilyGuy.character #=> "Peter Griffin"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def character
  fetch('family_guy.character')
end

.locationString

Produces a location from Family Guy.

Examples:

Faker::TvShows::FamilyGuy.location #=> "James Woods High"

Returns:

  • (String)

Available since:

  • 1.8.0


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

def location
  fetch('family_guy.location')
end

.quoteString

Produces a quote from Family Guy.

Examples:

Faker::TvShows::FamilyGuy.quote
  #=> "It's Peanut Butter Jelly Time."

Returns:

  • (String)

Available since:

  • 1.8.0


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

def quote
  fetch('family_guy.quote')
end