2020-01-30 13:08:57 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class Member < Grape::Entity
|
|
|
|
expose :user, merge: true, using: UserBasic
|
|
|
|
expose :access_level
|
2020-10-15 17:09:12 -04:00
|
|
|
expose :created_at
|
2022-04-05 05:09:24 -04:00
|
|
|
expose :created_by, with: UserBasic, expose_nil: false
|
2020-01-30 13:08:57 -05:00
|
|
|
expose :expires_at
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2020-02-17 07:09:20 -05:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
API::Entities::Member.prepend_mod_with('API::Entities::Member', with_descendants: true)
|