Welcome to mirror list, hosted at ThFree Co, Russian Federation.

membership.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2e3e6a0d8bad4889cb4caa6b47cdfef2572b0e3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    class Membership < Grape::Entity
      expose :source_id
      expose :source_name do |member|
        member.source.name
      end
      expose :source_type
      expose :access_level
    end
  end
end