summaryrefslogtreecommitdiff
path: root/lib/api/entities/project_label.rb
blob: b47a9414ddb2ea7bc6cadc5de5840967150780ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    class ProjectLabel < Entities::Label
      expose :priority do |label, options|
        label.priority(options[:parent])
      end
      expose :is_project_label do |label, options|
        label.is_a?(::ProjectLabel)
      end
    end
  end
end