mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-08-20 14:11:11 +00:00
13 lines
252 B
Ruby
13 lines
252 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
module Ci
|
|
class ResetTokenResult < Grape::Entity
|
|
expose(:token)
|
|
expose(:token_expires_at, if: -> (object, options) { object.expirable? })
|
|
end
|
|
end
|
|
end
|
|
end
|