summaryrefslogtreecommitdiff
path: root/lib/gitlab/ci/status/core/base.rb
blob: d1896a610b7a82f3a442447112559d35df7625f5 (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
46
47
module Gitlab::Ci
  module Status
    module Core
      # Base abstract class fore core status
      #
      class Base
        include Gitlab::Routing.url_helpers

        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