debian-mirror-gitlab/lib/api/entities/member.rb

16 lines
388 B
Ruby
Raw Normal View History

2020-03-13 15:44:24 +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
2022-06-21 17:19:12 +05:30
expose :created_by, with: UserBasic, expose_nil: false
2020-03-13 15:44:24 +05:30
expose :expires_at
end
end
end
2021-06-08 01:23:25 +05:30
API::Entities::Member.prepend_mod_with('API::Entities::Member', with_descendants: true)