GitLab steht wegen Wartungsarbeiten am Montag, den 10. Mai, zwischen 17:00 und 19:00 Uhr nicht zur Verfügung.

card.rb 591 Bytes
Newer Older
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
module ConversationalDevelopmentIndex
  class Card
    attr_accessor :metric, :title, :description, :feature, :blog, :docs

    def initialize(metric:, title:, description:, feature:, blog:, docs: nil)
      self.metric = metric
      self.title = title
      self.description = description
      self.feature = feature
      self.blog = blog
      self.docs = docs
    end

    def instance_score
      metric.instance_score(feature)
    end

    def leader_score
      metric.leader_score(feature)
    end

    def percentage_score
      metric.percentage_score(feature)
    end
  end
end