gitlab-org--gitlab-foss/app/serializers/access_token_entity_base.rb

8 lines
259 B
Ruby

# frozen_string_literal: true
# rubocop: disable Gitlab/NamespacedClass
class AccessTokenEntityBase < API::Entities::PersonalAccessToken
expose :expired?, as: :expired
expose :expires_soon?, as: :expires_soon
end
# rubocop: enable Gitlab/NamespacedClass