forked from faker-ruby/faker
/
the_office.rb
38 lines (35 loc) · 841 Bytes
/
the_office.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
# frozen_string_literal: true
module Faker
class TvShows
class TheOffice < Base
flexible :the_office
class << self
##
# Produces a character from The Office.
#
# @return [String]
#
# @example
# Faker::TvShows::TheOffice.character #=> "Michael Scott"
#
# @faker.version 1.8.5
def character
fetch('the_office.characters')
end
##
# Produces a quote from The Office.
#
# @return [String]
#
# @example
# Faker::TvShows::TheOffice.quote
# #=> "Identity theft is not a joke, Jim! Millions of families suffer every year."
#
# @faker.version 1.8.5
def quote
fetch('the_office.quotes')
end
end
end
end
end