1# frozen_string_literal: true
2
3module API
4  module Entities
5    class Invitation < Grape::Entity
6      expose :access_level
7      expose :created_at
8      expose :expires_at
9      expose :invite_email
10      expose :invite_token
11      expose :user_name, if: -> (member, _) { member.user.present? }
12      expose :created_by_name
13    end
14  end
15end
16