forked from faker-ruby/faker
/
family_guy.rb
51 lines (47 loc) · 1.08 KB
/
family_guy.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# frozen_string_literal: true
module Faker
class TvShows
class FamilyGuy < Base
flexible :family_guy
class << self
##
# Produces a character from Family Guy.
#
# @return [String]
#
# @example
# Faker::TvShows::FamilyGuy.character #=> "Peter Griffin"
#
# @faker.version 1.8.0
def character
fetch('family_guy.character')
end
##
# Produces a location from Family Guy.
#
# @return [String]
#
# @example
# Faker::TvShows::FamilyGuy.location #=> "James Woods High"
#
# @faker.version 1.8.0
def location
fetch('family_guy.location')
end
##
# Produces a quote from Family Guy.
#
# @return [String]
#
# @example
# Faker::TvShows::FamilyGuy.quote
# #=> "It's Peanut Butter Jelly Time."
#
# @faker.version 1.8.0
def quote
fetch('family_guy.quote')
end
end
end
end
end