summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/core/base.rb
blob: f7687c49ffdd40ba0c1cd5fccb0b0ae005420614 (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
38
39
40
41
42
43
44
45
module Gitlab::Ci
  module Status
    module Core
      # Base abstract class fore core status
      #
      class Base
        def initialize(subject)
          @subject = subject
        end

        def icon
          raise NotImplementedError
        end

        def label
          raise NotImplementedError
        end

        def title
          "#{@subject.class.name.demodulize}: #{label}"
        end

        def has_details?
          raise NotImplementedError
        end

        def details_path
          raise NotImplementedError
        end

        def has_action?
          raise NotImplementedError
        end

        def action_icon
          raise NotImplementedError
        end

        def action_path
          raise NotImplementedError
        end
      end
    end
  end
end