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