gitlab-org--gitlab-foss/lib/api/entities/membership.rb

14 lines
267 B
Ruby

# 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