2021-11-11 11:23:49 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
module Ci
|
2021-11-18 22:05:49 +05:30
|
|
|
class ResetTokenResult < Grape::Entity
|
2022-04-04 11:22:00 +05:30
|
|
|
expose(:token)
|
|
|
|
expose(:token_expires_at, if: -> (object, options) { object.expirable? })
|
2021-11-11 11:23:49 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|