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
|
# frozen_string_literal: true
module Faker
class House < Base
class << self
##
# Produces the name of a piece of furniture.
#
# @return [String]
#
# @example
# Faker::House.furniture #=> "chair"
#
# @faker.version 1.9.2
def furniture
fetch('house.furniture')
end
##
# Produces the name of a room in a house.
#
# @return [String]
#
# @example
# Faker::House.room #=> "kitchen"
#
# @faker.version 1.9.2
def room
fetch('house.rooms')
end
end
end
end
|