# frozen_string_literal: true module DiscoursePluginStatistics class Discourse def json { host: host, branch: branch, sha: sha }.as_json end def host @host ||= ::Discourse.current_hostname end def branch @branch ||= ::Discourse.git_branch end def sha @sha ||= ::Discourse.git_version end end end