debian-mirror-gitlab/lib/api/entities/ci/reset_token_result.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
252 B
Ruby
Raw Normal View History

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