debian-mirror-gitlab/lib/gitlab/cycle_analytics/summary/defaults.rb
2022-05-07 20:08:51 +05:30

29 lines
698 B
Ruby

# frozen_string_literal: true
module Gitlab
module CycleAnalytics
module Summary
module Defaults
def identifier
self.class.name.demodulize.underscore.to_sym
end
# :nocov: the class including this concern is expected to test this method.
def title
raise NotImplementedError, "Expected #{self.name} to implement title"
end
# :nocov:
# :nocov: the class including this concern is expected to test this method.
def value
raise NotImplementedError, "Expected #{self.name} to implement value"
end
# :nocov:
def links
[]
end
end
end
end
end