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

project_integration.rb « entities « api « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 29bb60a19e5c59bcd8ad5f833faab3351f82cac3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

module API
  module Entities
    class ProjectIntegration < Entities::ProjectIntegrationBasic
      # Expose serialized properties
      expose :properties, documentation: { type: 'Hash', example: { "token" => "secr3t" } } do |integration, options|
        integration.api_field_names.to_h do |name|
          [name, integration.public_send(name)] # rubocop:disable GitlabSecurity/PublicSend
        end
      end
    end
  end
end