Welcome to mirror list, hosted at ThFree Co, Russian Federation.

doc.rb « navigation « gitlab « lib - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8bed2d431e551ad3b210e647f5889cac64af7c6d (plain)
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
module Gitlab
  class Navigation
    class Doc
      def initialize(doc)
        @doc = doc
      end

      def title
        doc[:doc_title]
      end

      def external_url
        doc[:external_url]
      end

      def url
        doc[:doc_url]
      end

      def ee_only?
        doc[:ee_only]
      end

      def ee_tier
        doc[:ee_tier]
      end

      def children
        []
      end

      private

      attr_reader :doc
    end
  end
end