1# frozen_string_literal: true 2 3module API 4 module Entities 5 class ProjectIntegrationBasic < Grape::Entity 6 expose :id, :title 7 expose :slug do |integration| 8 integration.to_param.dasherize 9 end 10 expose :created_at, :updated_at, :active 11 expose :commit_events, :push_events, :issues_events, :confidential_issues_events 12 expose :merge_requests_events, :tag_push_events, :note_events 13 expose :confidential_note_events, :pipeline_events, :wiki_page_events 14 expose :job_events, :comment_on_event_enabled 15 end 16 end 17end 18