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

16 lines
345 B
Ruby
Raw Normal View History

# 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