2021-09-30 23:02:18 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class ProjectIntegration < Entities::ProjectIntegrationBasic
|
|
|
|
# Expose serialized properties
|
|
|
|
expose :properties do |integration, options|
|
2022-05-07 20:08:51 +05:30
|
|
|
integration.api_field_names.to_h do |name|
|
|
|
|
[name, integration.public_send(name)] # rubocop:disable GitlabSecurity/PublicSend
|
2021-09-30 23:02:18 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|