11# Zendesk API Client
22
3- ![ Test] ( https://github.com/zendesk/zendesk_api_client_rb/workflows/Test/badge.svg )
3+ [ ![ Test] ( https://github.com/zendesk/zendesk_api_client_rb/workflows/Test/badge.svg )] ( https://github.com/zendesk/zendesk_api_client_rb/actions/workflows/main.yml?query=branch%3Amaster )
44[ ![ Gem Version] ( https://badge.fury.io/rb/zendesk_api.svg )] ( https://badge.fury.io/rb/zendesk_api )
55[ ![ Code Climate] ( https://codeclimate.com/github/zendesk/zendesk_api_client_rb.svg )] ( https://codeclimate.com/github/zendesk/zendesk_api_client_rb )
66
@@ -227,6 +227,7 @@ To facilitate a smaller number of requests and easier manipulation of associated
227227For example:
228228A ` ZendeskAPI::Ticket ` is associated with ` ZendeskAPI::User ` through the ` requester_id ` field.
229229API requests for that ticket return a structure similar to this:
230+
230231``` json
231232"ticket" : {
232233 "id" : 1 ,
@@ -244,11 +245,9 @@ tickets = client.tickets.include(:users)
244245# Or client.tickets(:include => :users)
245246# Does *NOT* make a request to the server since it is already loaded
246247tickets.first.requester # => #<ZendeskAPI::User id=...>
247- ```
248248
249- OR
249+ # OR
250250
251- ``` ruby
252251ticket = client.tickets.find!(:id => 1 , :include => :users )
253252ticket.requester # => #<ZendeskAPI::User id=...>
254253```
@@ -426,7 +425,17 @@ installation.destroy!
426425ZendeskAPI ::AppInstallation .destroy!(client, :id => 123 )
427426```
428427
429- ## Note on Patches/Pull Requests
428+ ## Running the gem locally
429+
430+ See ` .github/workflows/main.yml ` to understand the CI process.
431+
432+ ```
433+ bundle exec rake # Runs the tests
434+ bundle exec rubocop # Runs the lint (use `--fix` for autocorrect)
435+ ```
436+
437+ ## Contributing
438+
4304391 . Fork the project.
4314402 . Make your feature addition or bug fix.
4324413 . Add tests for it. This is important so that we don't break it in a future
@@ -438,7 +447,7 @@ ZendeskAPI::AppInstallation.destroy!(client, :id => 123)
438447
439448## Copyright and license
440449
441- Copyright 2015-2021 Zendesk
450+ Copyright 2015-2022 Zendesk
442451
443452Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License.
444453You may obtain a copy of the License at
0 commit comments