debian-mirror-gitlab/lib/api/entities/invitation.rb
2021-01-29 00:20:46 +05:30

15 lines
345 B
Ruby

# frozen_string_literal: true
module API
module Entities
class Invitation < Grape::Entity
expose :access_level
expose :created_at
expose :expires_at
expose :invite_email
expose :invite_token
expose :user_name, if: -> (member, _) { member.user.present? }
expose :created_by_name
end
end
end