Module: Gitlab::Client::Services
- Included in:
- Gitlab::Client
- Defined in:
- lib/gitlab/client/services.rb
Overview
Third party services connected to a project.
Instance Method Summary collapse
-
#change_service(project, service, params) ⇒ Boolean
Create/Edit service Full service params documentation: github.com/gitlabhq/gitlabhq/blob/master/doc/api/services.md.
-
#delete_service(project, service) ⇒ Boolean
Delete service.
-
#service(project, service) ⇒ Gitlab::ObjectifiedHash
Get service.
Instance Method Details
#change_service(project, service, params) ⇒ Boolean
Create/Edit service Full service params documentation: github.com/gitlabhq/gitlabhq/blob/master/doc/api/services.md
19 20 21 |
# File 'lib/gitlab/client/services.rb', line 19 def change_service(project, service, params) put("/projects/#{url_encode project}/services/#{correct_service_name(service)}", body: params) end |
#delete_service(project, service) ⇒ Boolean
Delete service
31 32 33 |
# File 'lib/gitlab/client/services.rb', line 31 def delete_service(project, service) delete("/projects/#{url_encode project}/services/#{correct_service_name(service)}") end |
#service(project, service) ⇒ Gitlab::ObjectifiedHash
Get service
43 44 45 |
# File 'lib/gitlab/client/services.rb', line 43 def service(project, service) get("/projects/#{url_encode project}/services/#{correct_service_name(service)}") end |