2020-03-09 13:42:32 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Member < Grape::Entity
|
|
|
|
expose :user, merge: true, using: UserBasic
|
|
|
|
expose :access_level
|
2021-01-03 14:25:43 +05:30
|
|
|
expose :created_at
|
2020-03-09 13:42:32 +05:30
|
|
|
expose :expires_at
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
API::Entities::Member.prepend_if_ee('EE::API::Entities::Member', with_descendants: true)
|