debian-mirror-gitlab/lib/api/entities/ci/reset_token_result.rb
2022-04-04 11:22:00 +05:30

12 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