debian-mirror-gitlab/lib/api/entities/project_integration.rb
2022-05-07 20:08:51 +05:30

14 lines
396 B
Ruby

# 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