blob: 517b89529d70e5185570d6178edb96dc5b46a528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|