zendesk_api 0.3.14 → 0.4.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/.yardopts +6 -2
  2. data/Gemfile +3 -2
  3. data/Gemfile.lock +4 -4
  4. data/Readme.md +3 -268
  5. data/lib/zendesk_api/actions.rb +51 -46
  6. data/lib/zendesk_api/association.rb +1 -1
  7. data/lib/zendesk_api/associations.rb +2 -6
  8. data/lib/zendesk_api/client.rb +8 -9
  9. data/lib/zendesk_api/collection.rb +84 -50
  10. data/lib/zendesk_api/configuration.rb +4 -0
  11. data/lib/zendesk_api/error.rb +22 -0
  12. data/lib/zendesk_api/middleware/request/etag_cache.rb +1 -7
  13. data/lib/zendesk_api/middleware/request/upload.rb +1 -2
  14. data/lib/zendesk_api/middleware/response/raise_error.rb +20 -0
  15. data/lib/zendesk_api/resource.rb +33 -5
  16. data/lib/zendesk_api/resources.rb +36 -11
  17. data/lib/zendesk_api/server/base.rb +1 -1
  18. data/lib/zendesk_api/server/helper.rb +3 -3
  19. data/lib/zendesk_api/server/models/zlib_json.rb +1 -1
  20. data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +7 -7
  21. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +415 -13
  22. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +414 -51
  23. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +321 -25
  24. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +413 -46
  25. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +389 -26
  26. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +415 -13
  27. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +415 -13
  28. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +410 -47
  29. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +98 -362
  30. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +457 -676
  31. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +110 -20
  32. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +264 -6
  33. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +43 -82
  34. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +671 -15
  35. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +415 -13
  36. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +207 -233
  37. data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +499 -24
  38. data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +614 -15
  39. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +73 -23
  40. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +68 -18
  41. data/lib/zendesk_api/server/public/doc/ZendeskAPI/{FormatError.html → Error.html} +19 -27
  42. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html +127 -0
  43. data/lib/zendesk_api/server/public/doc/ZendeskAPI/{Server/UserRequest.html → Error/NetworkError.html} +18 -16
  44. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html +371 -0
  45. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html +127 -0
  46. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +426 -63
  47. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +414 -51
  48. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +389 -26
  49. data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +414 -51
  50. data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +405 -16
  51. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +405 -16
  52. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +413 -46
  53. data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +404 -41
  54. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html +606 -0
  55. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html +810 -0
  56. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +422 -59
  57. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html +606 -0
  58. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +75 -12
  59. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +593 -16
  60. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +418 -55
  61. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +420 -31
  62. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +1025 -20
  63. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +415 -13
  64. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html +610 -0
  65. data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +317 -21
  66. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +428 -39
  67. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +63 -79
  68. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +34 -26
  69. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +305 -9
  70. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +433 -41
  71. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +405 -16
  72. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +389 -26
  73. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +600 -31
  74. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +464 -101
  75. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +427 -25
  76. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +435 -32
  77. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +389 -26
  78. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +389 -26
  79. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +592 -15
  80. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +427 -64
  81. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +907 -17
  82. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +414 -55
  83. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +325 -29
  84. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +414 -51
  85. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +413 -46
  86. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +258 -6
  87. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +62 -12
  88. data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +671 -15
  89. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +800 -28
  90. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +505 -142
  91. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +412 -49
  92. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +475 -13
  93. data/lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html +606 -0
  94. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +9 -15
  95. data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +433 -66
  96. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +415 -13
  97. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +451 -49
  98. data/lib/zendesk_api/server/public/doc/_index.html +72 -72
  99. data/lib/zendesk_api/server/public/doc/class_list.html +1 -1
  100. data/lib/zendesk_api/server/public/doc/css/style.css +10 -0
  101. data/lib/zendesk_api/server/public/doc/file.Readme.html +20 -260
  102. data/lib/zendesk_api/server/public/doc/file_list.html +1 -1
  103. data/lib/zendesk_api/server/public/doc/frames.html +1 -1
  104. data/lib/zendesk_api/server/public/doc/index.html +20 -260
  105. data/lib/zendesk_api/server/public/doc/method_list.html +309 -517
  106. data/lib/zendesk_api/server/public/doc/top-level-namespace.html +3 -35
  107. data/lib/zendesk_api/verbs.rb +0 -4
  108. data/lib/zendesk_api/version.rb +1 -1
  109. data/spec/core/client_spec.rb +53 -13
  110. data/spec/core/collection_spec.rb +32 -4
  111. data/spec/core/create_resource_spec.rb +1 -1
  112. data/spec/core/data_resource_spec.rb +2 -2
  113. data/spec/core/middleware/request/etag_cache_spec.rb +6 -7
  114. data/spec/core/middleware/request/upload_spec.rb +2 -10
  115. data/spec/core/middleware/response/callback_spec.rb +1 -1
  116. data/spec/core/middleware/response/raise_error_spec.rb +40 -0
  117. data/spec/core/read_resource_spec.rb +0 -2
  118. data/spec/core/resource_spec.rb +13 -5
  119. data/spec/core/search_spec.rb +1 -1
  120. data/spec/core/spec_helper.rb +3 -3
  121. data/spec/live/automation_spec.rb +23 -0
  122. data/spec/live/organization_field_spec.rb +12 -0
  123. data/spec/live/ticket_spec.rb +8 -2
  124. data/spec/live/trigger_spec.rb +23 -0
  125. data/spec/live/user_field_spec.rb +12 -0
  126. data/spec/live/user_spec.rb +0 -2
  127. data/spec/live/view_spec.rb +17 -1
  128. data/spec/server/spec_helper.rb +2 -2
  129. data/zendesk_api.gemspec +1 -1
  130. metadata +88 -51
  131. checksums.yaml +0 -7
  132. data/lib/zendesk_api/rescue.rb +0 -63
  133. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console.html +0 -860
  134. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console/Eval.html +0 -190
  135. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server.html +0 -131
  136. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/App.html +0 -523
  137. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/Helper.html +0 -684
  138. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer.html +0 -303
  139. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer/RedcarpetRenderer.html +0 -508
  140. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/ZlibJSON.html +0 -244
  141. data/spec/core/rescue_spec.rb +0 -151
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ZendeskAPI::Client
8
8
 
9
- &mdash; Documentation by YARD 0.8.4.1
9
+ &mdash; Documentation by YARD 0.8.5.2
10
10
 
11
11
  </title>
12
12
 
@@ -94,9 +94,7 @@
94
94
 
95
95
 
96
96
  <dt class="r2 last">Defined in:</dt>
97
- <dd class="r2 last">lib/zendesk_api/client.rb<span class="defines">,<br />
98
- lib/zendesk_api/console/extensions.rb</span>
99
- </dd>
97
+ <dd class="r2 last">lib/zendesk_api/client.rb</dd>
100
98
 
101
99
  </dl>
102
100
  <div class="clear"></div>
@@ -114,28 +112,6 @@ Zendesk API. Can also be used as an accessor to resource collections.</p>
114
112
 
115
113
 
116
114
  </div>
117
- <h2>Constant Summary</h2>
118
-
119
- <dl class="constants">
120
-
121
- <dt id="GET_SUBCLASSES-constant" class="">GET_SUBCLASSES =
122
-
123
- </dt>
124
- <dd><pre class="code"><span class='id identifier rubyid_lambda'>lambda</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_ary'>ary</span><span class='op'>|</span>
125
- <span class='id identifier rubyid_ary'>ary</span><span class='period'>.</span><span class='id identifier rubyid_map!'>map!</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_klass'>klass</span><span class='op'>|</span>
126
- <span class='kw'>if</span> <span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>Resource$</span><span class='regexp_end'>/</span></span>
127
- <span class='const'>GET_SUBCLASSES</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='id identifier rubyid_klass'>klass</span><span class='period'>.</span><span class='id identifier rubyid_subclasses'>subclasses</span><span class='rparen'>)</span>
128
- <span class='kw'>else</span>
129
- <span class='id identifier rubyid_klass'>klass</span>
130
- <span class='kw'>end</span>
131
- <span class='kw'>end</span>
132
-
133
- <span class='id identifier rubyid_ary'>ary</span><span class='period'>.</span><span class='id identifier rubyid_tap'>tap</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:flatten!</span><span class='rparen'>)</span>
134
- <span class='kw'>end</span></pre></dd>
135
-
136
- </dl>
137
-
138
-
139
115
 
140
116
 
141
117
 
@@ -234,28 +210,6 @@ Zendesk API. Can also be used as an accessor to resource collections.</p>
234
210
  <p>show a nice warning for people using the old style api.</p>
235
211
  </div></span>
236
212
 
237
- </li>
238
-
239
-
240
- <li class="public ">
241
- <span class="summary_signature">
242
-
243
- <a href="#resources-class_method" title="resources (class method)">+ (Object) <strong>resources</strong> </a>
244
-
245
-
246
-
247
- </span>
248
-
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
- <span class="summary_desc"><div class='inline'></div></span>
258
-
259
213
  </li>
260
214
 
261
215
 
@@ -386,28 +340,6 @@ connection.</p>
386
340
  <p>Returns the current user (aka me).</p>
387
341
  </div></span>
388
342
 
389
- </li>
390
-
391
-
392
- <li class="public ">
393
- <span class="summary_signature">
394
-
395
- <a href="#format_headers-instance_method" title="#format_headers (instance method)">- (Object) <strong>format_headers</strong> </a>
396
-
397
-
398
-
399
- </span>
400
-
401
-
402
-
403
-
404
-
405
-
406
-
407
-
408
-
409
- <span class="summary_desc"><div class='inline'></div></span>
410
-
411
343
  </li>
412
344
 
413
345
 
@@ -482,63 +414,13 @@ connection.</p>
482
414
  <p>Handles resources such as 'tickets'.</p>
483
415
  </div></span>
484
416
 
485
- </li>
486
-
487
-
488
- <li class="public ">
489
- <span class="summary_signature">
490
-
491
- <a href="#to_a-instance_method" title="#to_a (instance method)">- (Object) <strong>to_a</strong> </a>
492
-
493
-
494
-
495
- </span>
496
-
497
-
498
-
499
-
500
-
501
-
502
-
503
-
504
-
505
- <span class="summary_desc"><div class='inline'></div></span>
506
-
507
- </li>
508
-
509
-
510
- <li class="public ">
511
- <span class="summary_signature">
512
-
513
- <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
514
-
515
-
516
-
517
- </span>
518
-
519
-
520
-
521
-
522
-
523
-
524
-
525
-
526
-
527
- <span class="summary_desc"><div class='inline'></div></span>
528
-
529
417
  </li>
530
418
 
531
419
 
532
420
  </ul>
533
421
 
534
422
 
535
-
536
-
537
-
538
-
539
-
540
-
541
- <div id="constructor_details" class="method_details_list">
423
+ <div id="constructor_details" class="method_details_list">
542
424
  <h2>Constructor Details</h2>
543
425
 
544
426
  <div class="method_details first">
@@ -600,6 +482,10 @@ connection.</p>
600
482
  <pre class="lines">
601
483
 
602
484
 
485
+ 71
486
+ 72
487
+ 73
488
+ 74
603
489
  75
604
490
  76
605
491
  77
@@ -613,31 +499,10 @@ connection.</p>
613
499
  85
614
500
  86
615
501
  87
616
- 88
617
- 89
618
- 90
619
- 91
620
- 92
621
- 93
622
- 94
623
- 95
624
- 96
625
- 97
626
- 98
627
- 99
628
- 100
629
- 101
630
- 102
631
- 103
632
- 104
633
- 105
634
- 106
635
- 107
636
- 108
637
- 109</pre>
502
+ 88</pre>
638
503
  </td>
639
504
  <td>
640
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 75</span>
505
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 71</span>
641
506
 
642
507
  <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
643
508
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>block not given</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_block_given?'>block_given?</span>
@@ -645,34 +510,17 @@ connection.</p>
645
510
  <span class='ivar'>@config</span> <span class='op'>=</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Configuration</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
646
511
  <span class='kw'>yield</span> <span class='id identifier rubyid_config'>config</span>
647
512
 
648
- <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_allow_http'>allow_http</span> <span class='op'>&amp;&amp;</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_url'>url</span> <span class='op'>!~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>^https</span><span class='regexp_end'>/</span></span>
649
- <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>zendesk_api is ssl only; url must begin with https://</span><span class='tstring_end'>&quot;</span></span>
650
- <span class='kw'>end</span>
513
+ <span class='ivar'>@callbacks</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
514
+ <span class='ivar'>@resource_cache</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
515
+
516
+ <span class='id identifier rubyid_check_url'>check_url</span>
651
517
 
652
518
  <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_retry'>retry</span> <span class='op'>=</span> <span class='op'>!</span><span class='op'>!</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_retry'>retry</span> <span class='comment'># nil -&gt; false
653
519
  </span>
654
- <span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_token'>token</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_password'>password</span>
655
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_password'>password</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_token'>token</span>
656
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_username'>username</span> <span class='op'>+=</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/token</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_username'>username</span><span class='period'>.</span><span class='id identifier rubyid_end_with?'>end_with?</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/token</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span>
657
- <span class='kw'>end</span>
658
-
659
- <span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>||</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>==</span> <span class='kw'>true</span>
660
- <span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>logger</span><span class='tstring_end'>'</span></span>
661
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='gvar'>$stderr</span><span class='rparen'>)</span>
662
- <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_level'>level</span> <span class='op'>=</span> <span class='const'>Logger</span><span class='op'>::</span><span class='const'>WARN</span>
663
- <span class='kw'>end</span>
664
-
665
- <span class='ivar'>@callbacks</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
520
+ <span class='id identifier rubyid_set_token_auth'>set_token_auth</span>
666
521
 
667
- <span class='ivar'>@resource_cache</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
668
-
669
- <span class='kw'>if</span> <span class='id identifier rubyid_logger'>logger</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span>
670
- <span class='id identifier rubyid_insert_callback'>insert_callback</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_env'>env</span><span class='op'>|</span>
671
- <span class='kw'>if</span> <span class='id identifier rubyid_warning'>warning</span> <span class='op'>=</span> <span class='id identifier rubyid_env'>env</span><span class='lbracket'>[</span><span class='symbol'>:response_headers</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>X-Zendesk-API-Warn</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
672
- <span class='id identifier rubyid_logger'>logger</span><span class='period'>.</span><span class='id identifier rubyid_warn'>warn</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>WARNING: </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_warning'>warning</span><span class='rbrace'>}</span><span class='tstring_end'>&quot;</span></span>
673
- <span class='kw'>end</span>
674
- <span class='kw'>end</span>
675
- <span class='kw'>end</span>
522
+ <span class='id identifier rubyid_set_default_logger'>set_default_logger</span>
523
+ <span class='id identifier rubyid_add_warning_callback'>add_warning_callback</span>
676
524
  <span class='kw'>end</span></pre>
677
525
  </td>
678
526
  </tr>
@@ -733,6 +581,8 @@ creates a new Collection instance.</p>
733
581
  <pre class="lines">
734
582
 
735
583
 
584
+ 31
585
+ 32
736
586
  33
737
587
  34
738
588
  35
@@ -742,12 +592,10 @@ creates a new Collection instance.</p>
742
592
  39
743
593
  40
744
594
  41
745
- 42
746
- 43
747
- 44</pre>
595
+ 42</pre>
748
596
  </td>
749
597
  <td>
750
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 33</span>
598
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 31</span>
751
599
 
752
600
  <span class='kw'>def</span> <span class='id identifier rubyid_method_missing'>method_missing</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='comma'>,</span> <span class='op'>*</span><span class='id identifier rubyid_args'>args</span><span class='comma'>,</span> <span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
753
601
  <span class='id identifier rubyid_method'>method</span> <span class='op'>=</span> <span class='id identifier rubyid_method'>method</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
@@ -755,7 +603,7 @@ creates a new Collection instance.</p>
755
603
 
756
604
  <span class='ivar'>@resource_cache</span><span class='lbracket'>[</span><span class='id identifier rubyid_method'>method</span><span class='rbracket'>]</span> <span class='op'>||=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
757
605
 
758
- <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:reload</span><span class='rbracket'>]</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='id identifier rubyid_cached'>cached</span> <span class='op'>=</span> <span class='ivar'>@resource_cache</span><span class='lbracket'>[</span><span class='id identifier rubyid_method'>method</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_hash'>hash</span><span class='rbracket'>]</span><span class='rparen'>)</span>
606
+ <span class='kw'>if</span> <span class='op'>!</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='symbol'>:reload</span><span class='rparen'>)</span> <span class='op'>&amp;&amp;</span> <span class='lparen'>(</span><span class='id identifier rubyid_cached'>cached</span> <span class='op'>=</span> <span class='ivar'>@resource_cache</span><span class='lbracket'>[</span><span class='id identifier rubyid_method'>method</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_hash'>hash</span><span class='rbracket'>]</span><span class='rparen'>)</span>
759
607
  <span class='id identifier rubyid_cached'>cached</span>
760
608
  <span class='kw'>else</span>
761
609
  <span class='ivar'>@resource_cache</span><span class='lbracket'>[</span><span class='id identifier rubyid_method'>method</span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_hash'>hash</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Collection</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='kw'>self</span><span class='comma'>,</span> <span class='const'>ZendeskAPI</span><span class='period'>.</span><span class='id identifier rubyid_const_get'>const_get</span><span class='lparen'>(</span><span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Helpers</span><span class='period'>.</span><span class='id identifier rubyid_modulize_string'>modulize_string</span><span class='lparen'>(</span><span class='const'>Inflection</span><span class='period'>.</span><span class='id identifier rubyid_singular'>singular</span><span class='lparen'>(</span><span class='id identifier rubyid_method'>method</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span>
@@ -817,12 +665,12 @@ creates a new Collection instance.</p>
817
665
  <pre class="lines">
818
666
 
819
667
 
820
- 28
821
- 29
822
- 30</pre>
668
+ 26
669
+ 27
670
+ 28</pre>
823
671
  </td>
824
672
  <td>
825
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 28</span>
673
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 26</span>
826
674
 
827
675
  <span class='kw'>def</span> <span class='id identifier rubyid_callbacks'>callbacks</span>
828
676
  <span class='ivar'>@callbacks</span>
@@ -878,12 +726,12 @@ creates a new Collection instance.</p>
878
726
  <pre class="lines">
879
727
 
880
728
 
881
- 26
882
- 27
883
- 28</pre>
729
+ 24
730
+ 25
731
+ 26</pre>
884
732
  </td>
885
733
  <td>
886
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 26</span>
734
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 24</span>
887
735
 
888
736
  <span class='kw'>def</span> <span class='id identifier rubyid_config'>config</span>
889
737
  <span class='ivar'>@config</span>
@@ -926,14 +774,14 @@ creates a new Collection instance.</p>
926
774
  <pre class="lines">
927
775
 
928
776
 
929
- 126
930
- 127
931
- 128
932
- 129
933
- 130</pre>
777
+ 105
778
+ 106
779
+ 107
780
+ 108
781
+ 109</pre>
934
782
  </td>
935
783
  <td>
936
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 126</span>
784
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 105</span>
937
785
 
938
786
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_check_deprecated_namespace_usage'>check_deprecated_namespace_usage</span><span class='lparen'>(</span><span class='id identifier rubyid_attributes'>attributes</span><span class='comma'>,</span> <span class='id identifier rubyid_name'>name</span><span class='rparen'>)</span>
939
787
  <span class='kw'>if</span> <span class='id identifier rubyid_attributes'>attributes</span><span class='lbracket'>[</span><span class='id identifier rubyid_name'>name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
@@ -943,48 +791,6 @@ creates a new Collection instance.</p>
943
791
  </td>
944
792
  </tr>
945
793
  </table>
946
- </div>
947
-
948
- <div class="method_details ">
949
- <h3 class="signature " id="resources-class_method">
950
-
951
- + (<tt>Object</tt>) <strong>resources</strong>
952
-
953
-
954
-
955
-
956
-
957
- </h3><table class="source_code">
958
- <tr>
959
- <td>
960
- <pre class="lines">
961
-
962
-
963
- 59
964
- 60
965
- 61
966
- 62
967
- 63
968
- 64
969
- 65
970
- 66
971
- 67</pre>
972
- </td>
973
- <td>
974
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/console/extensions.rb', line 59</span>
975
-
976
- <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_resources'>resources</span>
977
- <span class='ivar'>@resources</span> <span class='op'>||=</span> <span class='kw'>begin</span>
978
- <span class='id identifier rubyid_subclasses'>subclasses</span> <span class='op'>=</span> <span class='const'>GET_SUBCLASSES</span><span class='period'>.</span><span class='id identifier rubyid_call'>call</span><span class='lparen'>(</span><span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Data</span><span class='period'>.</span><span class='id identifier rubyid_subclasses'>subclasses</span><span class='rparen'>)</span>
979
- <span class='id identifier rubyid_subclasses'>subclasses</span><span class='period'>.</span><span class='id identifier rubyid_delete_if'>delete_if</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_resource'>resource</span><span class='op'>|</span>
980
- <span class='id identifier rubyid_resource'>resource</span><span class='period'>.</span><span class='id identifier rubyid_name'>name</span> <span class='op'>=~</span> <span class='tstring'><span class='regexp_beg'>/</span><span class='tstring_content'>ZendeskAPI(::.*){2,}</span><span class='regexp_end'>/</span></span>
981
- <span class='kw'>end</span>
982
- <span class='id identifier rubyid_subclasses'>subclasses</span><span class='period'>.</span><span class='id identifier rubyid_sort_by'>sort_by</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='symbol'>:resource_name</span><span class='rparen'>)</span>
983
- <span class='kw'>end</span>
984
- <span class='kw'>end</span></pre>
985
- </td>
986
- </tr>
987
- </table>
988
794
  </div>
989
795
 
990
796
  </div>
@@ -1026,6 +832,27 @@ subclass to add additional middleware and make other configuration changes.</p>
1026
832
  <pre class="lines">
1027
833
 
1028
834
 
835
+ 122
836
+ 123
837
+ 124
838
+ 125
839
+ 126
840
+ 127
841
+ 128
842
+ 129
843
+ 130
844
+ 131
845
+ 132
846
+ 133
847
+ 134
848
+ 135
849
+ 136
850
+ 137
851
+ 138
852
+ 139
853
+ 140
854
+ 141
855
+ 142
1029
856
  143
1030
857
  144
1031
858
  145
@@ -1036,42 +863,41 @@ subclass to add additional middleware and make other configuration changes.</p>
1036
863
  150
1037
864
  151
1038
865
  152
1039
- 153
1040
- 154
1041
- 155
1042
- 156
1043
- 157
1044
- 158
1045
- 159
1046
- 160
1047
- 161
1048
- 162
1049
- 163
1050
- 164</pre>
866
+ 153</pre>
1051
867
  </td>
1052
868
  <td>
1053
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 143</span>
869
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 122</span>
1054
870
 
1055
871
  <span class='kw'>def</span> <span class='id identifier rubyid_build_connection'>build_connection</span>
1056
872
  <span class='const'>Faraday</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_builder'>builder</span><span class='op'>|</span>
1057
873
  <span class='comment'># response
1058
- </span> <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>Faraday</span><span class='op'>::</span><span class='const'>Request</span><span class='op'>::</span><span class='const'>BasicAuthentication</span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_password'>password</span>
1059
- <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>Faraday</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>RaiseError</span>
874
+ </span> <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>RaiseError</span>
1060
875
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>Callback</span><span class='comma'>,</span> <span class='kw'>self</span>
1061
876
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>Logger</span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span>
1062
877
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>ParseIsoDates</span>
1063
878
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_response'>response</span> <span class='symbol'>:json</span><span class='comma'>,</span> <span class='symbol'>:content_type</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>application/json</span><span class='tstring_end'>'</span></span>
1064
- <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>Gzip</span>
1065
- <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>Deflate</span>
879
+
880
+ <span class='id identifier rubyid_adapter'>adapter</span> <span class='op'>=</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_adapter'>adapter</span> <span class='op'>||</span> <span class='const'>Faraday</span><span class='period'>.</span><span class='id identifier rubyid_default_adapter'>default_adapter</span>
881
+
882
+ <span class='kw'>unless</span> <span class='lbracket'>[</span><span class='symbol'>:em_http</span><span class='comma'>,</span> <span class='const'>Faraday</span><span class='op'>::</span><span class='const'>Adapter</span><span class='op'>::</span><span class='const'>EMHttp</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='id identifier rubyid_adapter'>adapter</span><span class='rparen'>)</span>
883
+ <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>Gzip</span>
884
+ <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Response</span><span class='op'>::</span><span class='const'>Deflate</span>
885
+ <span class='kw'>end</span>
1066
886
 
1067
887
  <span class='comment'># request
1068
- </span> <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Request</span><span class='op'>::</span><span class='const'>EtagCache</span><span class='comma'>,</span> <span class='symbol'>:cache</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_cache'>cache</span>
888
+ </span> <span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_access_token'>access_token</span>
889
+ <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_authorization'>authorization</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>Bearer</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_access_token'>access_token</span><span class='rparen'>)</span>
890
+ <span class='kw'>else</span>
891
+ <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>Faraday</span><span class='op'>::</span><span class='const'>Request</span><span class='op'>::</span><span class='const'>BasicAuthentication</span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_username'>username</span><span class='comma'>,</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_password'>password</span>
892
+ <span class='kw'>end</span>
893
+
894
+ <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Request</span><span class='op'>::</span><span class='const'>EtagCache</span><span class='comma'>,</span> <span class='symbol'>:cache</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_cache'>cache</span>
1069
895
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Request</span><span class='op'>::</span><span class='const'>Upload</span>
1070
896
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span> <span class='symbol'>:multipart</span>
1071
897
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_request'>request</span> <span class='symbol'>:json</span>
1072
898
  <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_use'>use</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Middleware</span><span class='op'>::</span><span class='const'>Request</span><span class='op'>::</span><span class='const'>Retry</span><span class='comma'>,</span> <span class='symbol'>:logger</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_logger'>logger</span> <span class='kw'>if</span> <span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_retry'>retry</span> <span class='comment'># Should always be first in the stack
1073
899
  </span>
1074
- <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_adapter'>adapter</span> <span class='op'>*</span><span class='id identifier rubyid_config'>config</span><span class='period'>.</span><span class='id identifier rubyid_adapter'>adapter</span> <span class='op'>||</span> <span class='const'>Faraday</span><span class='period'>.</span><span class='id identifier rubyid_default_adapter'>default_adapter</span>
900
+ <span class='id identifier rubyid_builder'>builder</span><span class='period'>.</span><span class='id identifier rubyid_adapter'>adapter</span> <span class='op'>*</span><span class='id identifier rubyid_adapter'>adapter</span>
1075
901
  <span class='kw'>end</span>
1076
902
  <span class='kw'>end</span></pre>
1077
903
  </td>
@@ -1124,13 +950,13 @@ connection.</p>
1124
950
  <pre class="lines">
1125
951
 
1126
952
 
1127
- 114
1128
- 115
1129
- 116
1130
- 117</pre>
953
+ 93
954
+ 94
955
+ 95
956
+ 96</pre>
1131
957
  </td>
1132
958
  <td>
1133
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 114</span>
959
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 93</span>
1134
960
 
1135
961
  <span class='kw'>def</span> <span class='id identifier rubyid_connection'>connection</span>
1136
962
  <span class='ivar'>@connection</span> <span class='op'>||=</span> <span class='id identifier rubyid_build_connection'>build_connection</span>
@@ -1185,13 +1011,13 @@ connection.</p>
1185
1011
  <pre class="lines">
1186
1012
 
1187
1013
 
1014
+ 53
1015
+ 54
1188
1016
  55
1189
- 56
1190
- 57
1191
- 58</pre>
1017
+ 56</pre>
1192
1018
  </td>
1193
1019
  <td>
1194
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 55</span>
1020
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 53</span>
1195
1021
 
1196
1022
  <span class='kw'>def</span> <span class='id identifier rubyid_current_account'>current_account</span><span class='lparen'>(</span><span class='id identifier rubyid_reload'>reload</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1197
1023
  <span class='kw'>return</span> <span class='ivar'>@current_account</span> <span class='kw'>if</span> <span class='ivar'>@current_account</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_reload'>reload</span>
@@ -1246,13 +1072,13 @@ connection.</p>
1246
1072
  <pre class="lines">
1247
1073
 
1248
1074
 
1249
- 64
1250
- 65
1251
- 66
1252
- 67</pre>
1075
+ 60
1076
+ 61
1077
+ 62
1078
+ 63</pre>
1253
1079
  </td>
1254
1080
  <td>
1255
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 64</span>
1081
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 60</span>
1256
1082
 
1257
1083
  <span class='kw'>def</span> <span class='id identifier rubyid_current_locale'>current_locale</span><span class='lparen'>(</span><span class='id identifier rubyid_reload'>reload</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1258
1084
  <span class='kw'>return</span> <span class='ivar'>@locale</span> <span class='kw'>if</span> <span class='ivar'>@locale</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_reload'>reload</span>
@@ -1307,13 +1133,13 @@ connection.</p>
1307
1133
  <pre class="lines">
1308
1134
 
1309
1135
 
1136
+ 46
1137
+ 47
1310
1138
  48
1311
- 49
1312
- 50
1313
- 51</pre>
1139
+ 49</pre>
1314
1140
  </td>
1315
1141
  <td>
1316
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 48</span>
1142
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 46</span>
1317
1143
 
1318
1144
  <span class='kw'>def</span> <span class='id identifier rubyid_current_user'>current_user</span><span class='lparen'>(</span><span class='id identifier rubyid_reload'>reload</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
1319
1145
  <span class='kw'>return</span> <span class='ivar'>@current_user</span> <span class='kw'>if</span> <span class='ivar'>@current_user</span> <span class='op'>&amp;&amp;</span> <span class='op'>!</span><span class='id identifier rubyid_reload'>reload</span>
@@ -1322,36 +1148,6 @@ connection.</p>
1322
1148
  </td>
1323
1149
  </tr>
1324
1150
  </table>
1325
- </div>
1326
-
1327
- <div class="method_details ">
1328
- <h3 class="signature " id="format_headers-instance_method">
1329
-
1330
- - (<tt>Object</tt>) <strong>format_headers</strong>
1331
-
1332
-
1333
-
1334
-
1335
-
1336
- </h3><table class="source_code">
1337
- <tr>
1338
- <td>
1339
- <pre class="lines">
1340
-
1341
-
1342
- 73
1343
- 74
1344
- 75</pre>
1345
- </td>
1346
- <td>
1347
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/console/extensions.rb', line 73</span>
1348
-
1349
- <span class='kw'>def</span> <span class='id identifier rubyid_format_headers'>format_headers</span>
1350
- <span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>resource name</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span>
1351
- <span class='kw'>end</span></pre>
1352
- </td>
1353
- </tr>
1354
- </table>
1355
1151
  </div>
1356
1152
 
1357
1153
  <div class="method_details ">
@@ -1401,12 +1197,12 @@ in the Faraday middleware stack.</p>
1401
1197
  <pre class="lines">
1402
1198
 
1403
1199
 
1404
- 121
1405
- 122
1406
- 123</pre>
1200
+ 100
1201
+ 101
1202
+ 102</pre>
1407
1203
  </td>
1408
1204
  <td>
1409
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 121</span>
1205
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/client.rb', line 100</span>
1410
1206
 
1411
1207
  <span class='kw'>def</span> <span class='id identifier rubyid_insert_callback'>insert_callback</span><span class='lparen'>(</span><span class='op'>&amp;</span><span class='id identifier rubyid_block'>block</span><span class='rparen'>)</span>
1412
1208
  <span class='ivar'>@callbacks</span> <span class='op'>&lt;&lt;</span> <span class='id identifier rubyid_block'>block</span>
@@ -1414,66 +1210,6 @@ in the Faraday middleware stack.</p>
1414
1210
  </td>
1415
1211
  </tr>
1416
1212
  </table>
1417
- </div>
1418
-
1419
- <div class="method_details ">
1420
- <h3 class="signature " id="to_a-instance_method">
1421
-
1422
- - (<tt>Object</tt>) <strong>to_a</strong>
1423
-
1424
-
1425
-
1426
-
1427
-
1428
- </h3><table class="source_code">
1429
- <tr>
1430
- <td>
1431
- <pre class="lines">
1432
-
1433
-
1434
- 69
1435
- 70
1436
- 71</pre>
1437
- </td>
1438
- <td>
1439
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/console/extensions.rb', line 69</span>
1440
-
1441
- <span class='kw'>def</span> <span class='id identifier rubyid_to_a'>to_a</span>
1442
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_class'>class</span><span class='period'>.</span><span class='id identifier rubyid_resources'>resources</span>
1443
- <span class='kw'>end</span></pre>
1444
- </td>
1445
- </tr>
1446
- </table>
1447
- </div>
1448
-
1449
- <div class="method_details ">
1450
- <h3 class="signature " id="to_s-instance_method">
1451
-
1452
- - (<tt>Object</tt>) <strong>to_s</strong>
1453
-
1454
-
1455
-
1456
-
1457
-
1458
- </h3><table class="source_code">
1459
- <tr>
1460
- <td>
1461
- <pre class="lines">
1462
-
1463
-
1464
- 55
1465
- 56
1466
- 57</pre>
1467
- </td>
1468
- <td>
1469
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/console/extensions.rb', line 55</span>
1470
-
1471
- <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1472
- <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>/</span><span class='tstring_end'>&quot;</span></span>
1473
- <span class='kw'>end</span></pre>
1474
- </td>
1475
- </tr>
1476
- </table>
1477
1213
  </div>
1478
1214
 
1479
1215
  </div>
@@ -1481,9 +1217,9 @@ in the Faraday middleware stack.</p>
1481
1217
  </div>
1482
1218
 
1483
1219
  <div id="footer">
1484
- Generated on Mon Feb 11 17:45:36 2013 by
1220
+ Generated on Wed May 15 18:59:28 2013 by
1485
1221
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1486
- 0.8.4.1 (ruby-1.9.3).
1222
+ 0.8.5.2 (ruby-1.9.3).
1487
1223
  </div>
1488
1224
 
1489
1225
  </body>