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: 155136d2f80addbf5cdc9e49a395b74a8d4ce5ab (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 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