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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
345 B
Ruby
Raw Normal View History

2021-01-29 00:20:46 +05:30
# 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