summaryrefslogtreecommitdiff
path: root/lib/api/entities/membership.rb
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