2021-06-14 10:04:44 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-01-09 06:10:19 -06:00
|
|
|
require "faker"
|
2021-06-14 10:04:44 -05:00
|
|
|
|
|
|
|
module Faker
|
|
|
|
class Discourse < Base
|
|
|
|
class << self
|
|
|
|
def tag
|
2023-01-09 06:10:19 -06:00
|
|
|
fetch("discourse.tags")
|
2021-06-14 10:04:44 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def category
|
2023-01-09 06:10:19 -06:00
|
|
|
fetch("discourse.categories")
|
2021-06-14 10:04:44 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def group
|
2023-01-09 06:10:19 -06:00
|
|
|
fetch("discourse.groups")
|
2021-06-14 10:04:44 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def topic
|
2023-01-09 06:10:19 -06:00
|
|
|
fetch("discourse.topics")
|
2021-06-14 10:04:44 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|