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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
388 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module API
module Entities
class Member < Grape::Entity
expose :user, merge: true, using: UserBasic
expose :access_level
expose :created_at
expose :created_by, with: UserBasic, expose_nil: false
expose :expires_at
end
end
end
API::Entities::Member.prepend_mod_with('API::Entities::Member', with_descendants: true)