Welcome to mirror list, hosted at ThFree Co, Russian Federation.

reset_token_result.rb « ci « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f0b1de6a5a75e532a27ada550e37b8657683cdd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# 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