debian-mirror-gitlab/lib/api/entities/membership.rb
2020-03-09 13:42:32 +05:30

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