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::Ticket::Comment
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
 
@@ -109,12 +109,144 @@
109
109
 
110
110
 
111
111
 
112
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
113
+ <ul class="summary">
114
+
115
+ <li class="public ">
116
+ <span class="summary_signature">
117
+
118
+ <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
119
+
120
+
121
+
122
+ </span>
123
+
124
+ <span class="note title not_defined_here">
125
+ inherited
126
+ from <span class='object_link'><a href="../Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
127
+ </span>
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
112
138
 
139
+
140
+ <span class="summary_desc"><div class='inline'>
141
+ <p>The association.</p>
142
+ </div></span>
143
+
144
+ </li>
145
+
146
+
147
+ <li class="public ">
148
+ <span class="summary_signature">
149
+
150
+ <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
151
+
152
+
153
+
154
+ (also: #to_param)
155
+
156
+ </span>
157
+
158
+ <span class="note title not_defined_here">
159
+ inherited
160
+ from <span class='object_link'><a href="../Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
161
+ </span>
162
+
163
+
164
+
165
+
166
+ <span class="note title readonly">readonly</span>
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+
175
+
176
+ <span class="summary_desc"><div class='inline'>
177
+ <p>The resource's attributes.</p>
178
+ </div></span>
179
+
180
+ </li>
181
+
182
+
183
+ <li class="public ">
184
+ <span class="summary_signature">
185
+
186
+ <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
187
+
188
+
189
+
190
+ </span>
191
+
192
+ <span class="note title not_defined_here">
193
+ inherited
194
+ from <span class='object_link'><a href="../Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
195
+ </span>
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+ <span class="summary_desc"><div class='inline'>
209
+ <p>The last received errors.</p>
210
+ </div></span>
211
+
212
+ </li>
213
+
214
+
215
+ <li class="public ">
216
+ <span class="summary_signature">
217
+
218
+ <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
219
+
220
+
221
+
222
+ </span>
223
+
224
+ <span class="note title not_defined_here">
225
+ inherited
226
+ from <span class='object_link'><a href="../Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
227
+ </span>
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
113
238
 
114
- <h2>Instance Attribute Summary</h2>
115
239
 
116
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="../Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
117
- <p class="inherited"><span class='object_link'><a href="../Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">#association</a></span>, <span class='object_link'><a href="../Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">#attributes</a></span>, <span class='object_link'><a href="../Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">#response</a></span></p>
240
+ <span class="summary_desc"><div class='inline'>
241
+ <p>Place to dump the last response.</p>
242
+ </div></span>
243
+
244
+ </li>
245
+
246
+
247
+ </ul>
248
+
249
+
118
250
 
119
251
 
120
252
 
@@ -170,6 +302,35 @@
170
302
  <p>The associated object.</p>
171
303
  </div></span>
172
304
 
305
+ </li>
306
+
307
+
308
+ <li class="public ">
309
+ <span class="summary_signature">
310
+
311
+ <a href="#clear_associations-instance_method" title="#clear_associations (instance method)">- (Object) <strong>clear_associations</strong> </a>
312
+
313
+
314
+
315
+ </span>
316
+
317
+ <span class="note title not_defined_here">
318
+ included
319
+ from <span class='object_link'><a href="../Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
320
+ </span>
321
+
322
+
323
+
324
+
325
+
326
+
327
+
328
+
329
+
330
+ <span class="summary_desc"><div class='inline'>
331
+ <p>Removes all cached associations.</p>
332
+ </div></span>
333
+
173
334
  </li>
174
335
 
175
336
 
@@ -194,6 +355,36 @@
194
355
 
195
356
  <span class="summary_desc"><div class='inline'></div></span>
196
357
 
358
+ </li>
359
+
360
+
361
+ <li class="public ">
362
+ <span class="summary_signature">
363
+
364
+ <a href="#save_associations-instance_method" title="#save_associations (instance method)">- (Object) <strong>save_associations</strong> </a>
365
+
366
+
367
+
368
+ </span>
369
+
370
+ <span class="note title not_defined_here">
371
+ included
372
+ from <span class='object_link'><a href="../Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
373
+ </span>
374
+
375
+
376
+
377
+
378
+
379
+
380
+
381
+
382
+
383
+ <span class="summary_desc"><div class='inline'>
384
+ <p>Saves associations Takes into account inlining, collections, and id setting
385
+ on the parent resource.</p>
386
+ </div></span>
387
+
197
388
  </li>
198
389
 
199
390
 
@@ -254,50 +445,205 @@
254
445
 
255
446
 
256
447
 
448
+ <div id="constructor_details" class="method_details_list">
449
+ <h2>Constructor Details</h2>
257
450
 
451
+ <p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Data.html#initialize-instance_method" title="ZendeskAPI::Data#initialize (method)">ZendeskAPI::Data</a></span></p>
258
452
 
453
+ </div>
454
+ <div id="method_missing_details" class="method_details_list">
455
+ <h2>Dynamic Method Handling</h2>
456
+ <p class="notice super">
457
+ This class handles dynamic methods through the <tt>method_missing</tt> method
458
+
459
+ in the class <span class='object_link'><a href="../Data.html#method_missing-instance_method" title="ZendeskAPI::Data#method_missing (method)">ZendeskAPI::Data</a></span>
460
+
461
+ </p>
259
462
 
260
- <h3 class="inherited">Methods included from <span class='object_link'><a href="../Save.html" title="ZendeskAPI::Save (module)">Save</a></span></h3>
261
- <p class="inherited"><span class='object_link'><a href="../Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">#clear_associations</a></span>, <span class='object_link'><a href="../Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">#save_associations</a></span></p>
463
+ </div>
262
464
 
465
+ <div id="instance_attr_details" class="attr_details">
466
+ <h2>Instance Attribute Details</h2>
467
+
468
+
469
+ <span id="association=-instance_method"></span>
470
+ <div class="method_details first">
471
+ <h3 class="signature first" id="association-instance_method">
263
472
 
473
+ - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
264
474
 
475
+
265
476
 
477
+
266
478
 
479
+ <span class="not_defined_here">
480
+ Originally defined in class
481
+ <span class='object_link'><a href="../Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
482
+ </span>
267
483
 
484
+ </h3><div class="docstring">
485
+ <div class="discussion">
486
+
487
+ <p>The association</p>
488
+
489
+
490
+ </div>
491
+ </div>
492
+ <div class="tags">
268
493
 
494
+ <p class="tag_title">Returns:</p>
495
+ <ul class="return">
269
496
 
497
+ <li>
498
+
499
+
500
+ <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
501
+
502
+
503
+
504
+ &mdash;
505
+ <div class='inline'>
506
+ <p>The association</p>
507
+ </div>
508
+
509
+ </li>
270
510
 
271
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="../Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
272
- <p class="inherited"><span class='object_link'><a href="../Data.html#%2F-instance_method" title="ZendeskAPI::Data#/ (method)">#/</a></span>, <span class='object_link'><a href="../Data.html#%3D%3D-instance_method" title="ZendeskAPI::Data#== (method)">#==</a></span>, <span class='object_link'><a href="../Data.html#format-class_method" title="ZendeskAPI::Data.format (method)">format</a></span>, <span class='object_link'><a href="../Data.html#id-instance_method" title="ZendeskAPI::Data#id (method)">#id</a></span>, <span class='object_link'><a href="../Data.html#initialize-instance_method" title="ZendeskAPI::Data#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="../Data.html#method_missing-instance_method" title="ZendeskAPI::Data#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="../Data.html#new_record%3F-instance_method" title="ZendeskAPI::Data#new_record? (method)">#new_record?</a></span>, <span class='object_link'><a href="../Data.html#path-instance_method" title="ZendeskAPI::Data#path (method)">#path</a></span>, <span class='object_link'><a href="../Data.html#resource_name-class_method" title="ZendeskAPI::Data.resource_name (method)">resource_name</a></span>, <span class='object_link'><a href="../Data.html#singular_resource_name-class_method" title="ZendeskAPI::Data.singular_resource_name (method)">singular_resource_name</a></span>, <span class='object_link'><a href="../Data.html#subclasses-class_method" title="ZendeskAPI::Data.subclasses (method)">subclasses</a></span>, <span class='object_link'><a href="../Data.html#to_json-instance_method" title="ZendeskAPI::Data#to_json (method)">#to_json</a></span></p>
511
+ </ul>
273
512
 
513
+ </div>
514
+ </div>
515
+
516
+
517
+ <span id=""></span>
518
+ <div class="method_details ">
519
+ <h3 class="signature " id="attributes-instance_method">
274
520
 
521
+ - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
275
522
 
523
+
276
524
 
525
+ <span class="aliases">Also known as:
526
+ <span class="names"><span id='to_param-instance_method'>to_param</span></span>
527
+ </span>
277
528
 
529
+
278
530
 
531
+ <span class="not_defined_here">
532
+ Originally defined in class
533
+ <span class='object_link'><a href="../Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
534
+ </span>
279
535
 
536
+ </h3><div class="docstring">
537
+ <div class="discussion">
538
+
539
+ <p>The resource's attributes</p>
540
+
541
+
542
+ </div>
543
+ </div>
544
+ <div class="tags">
280
545
 
546
+ <p class="tag_title">Returns:</p>
547
+ <ul class="return">
281
548
 
549
+ <li>
550
+
551
+
552
+ <span class='type'>(<tt>Hash</tt>)</span>
553
+
554
+
555
+
556
+ &mdash;
557
+ <div class='inline'>
558
+ <p>The resource's attributes</p>
559
+ </div>
560
+
561
+ </li>
562
+
563
+ </ul>
564
+
565
+ </div>
566
+ </div>
567
+
568
+
569
+ <span id="errors=-instance_method"></span>
570
+ <div class="method_details ">
571
+ <h3 class="signature " id="errors-instance_method">
282
572
 
573
+ - (<tt>Array</tt>) <strong>errors</strong>
283
574
 
575
+
284
576
 
285
- <div id="constructor_details" class="method_details_list">
286
- <h2>Constructor Details</h2>
577
+
287
578
 
288
- <p class="notice">This class inherits a constructor from <span class='object_link'><a href="../Data.html#initialize-instance_method" title="ZendeskAPI::Data#initialize (method)">ZendeskAPI::Data</a></span></p>
579
+ <span class="not_defined_here">
580
+ Originally defined in class
581
+ <span class='object_link'><a href="../Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
582
+ </span>
289
583
 
584
+ </h3><div class="docstring">
585
+ <div class="discussion">
586
+
587
+ <p>The last received errors</p>
588
+
589
+
590
+ </div>
591
+ </div>
592
+ <div class="tags">
593
+
594
+ <p class="tag_title">Returns:</p>
595
+ <ul class="return">
596
+
597
+ <li>
598
+
599
+
600
+ <span class='type'>(<tt>Array</tt>)</span>
601
+
602
+
603
+
604
+ &mdash;
605
+ <div class='inline'>
606
+ <p>The last received errors</p>
607
+ </div>
608
+
609
+ </li>
610
+
611
+ </ul>
612
+
613
+ </div>
290
614
  </div>
291
- <div id="method_missing_details" class="method_details_list">
292
- <h2>Dynamic Method Handling</h2>
293
- <p class="notice super">
294
- This class handles dynamic methods through the <tt>method_missing</tt> method
295
615
 
296
- in the class <span class='object_link'><a href="../Data.html#method_missing-instance_method" title="ZendeskAPI::Data#method_missing (method)">ZendeskAPI::Data</a></span>
616
+
617
+ <span id="response=-instance_method"></span>
618
+ <div class="method_details ">
619
+ <h3 class="signature " id="response-instance_method">
620
+
621
+ - (<tt>Object</tt>) <strong>response</strong>
622
+
623
+
624
+
625
+
626
+
627
+ <span class="not_defined_here">
628
+ Originally defined in class
629
+ <span class='object_link'><a href="../Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
630
+ </span>
631
+
632
+ </h3><div class="docstring">
633
+ <div class="discussion">
297
634
 
298
- </p>
635
+ <p>Place to dump the last response</p>
636
+
637
+
638
+ </div>
639
+ </div>
640
+ <div class="tags">
299
641
 
642
+
300
643
  </div>
644
+ </div>
645
+
646
+ </div>
301
647
 
302
648
 
303
649
  <div id="instance_method_details" class="method_details_list">
@@ -348,10 +694,10 @@
348
694
  <pre class="lines">
349
695
 
350
696
 
351
- 213</pre>
697
+ 221</pre>
352
698
  </td>
353
699
  <td>
354
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 213</span>
700
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 221</span>
355
701
 
356
702
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:author</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
357
703
  </td>
@@ -423,15 +769,43 @@
423
769
  <pre class="lines">
424
770
 
425
771
 
426
- 213</pre>
772
+ 221</pre>
427
773
  </td>
428
774
  <td>
429
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 213</span>
775
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 221</span>
430
776
 
431
777
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:author</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
432
778
  </td>
433
779
  </tr>
434
780
  </table>
781
+ </div>
782
+
783
+ <div class="method_details ">
784
+ <h3 class="signature " id="clear_associations-instance_method">
785
+
786
+ - (<tt>Object</tt>) <strong>clear_associations</strong>
787
+
788
+
789
+
790
+
791
+
792
+ <span class="not_defined_here">
793
+ Originally defined in module
794
+ <span class='object_link'><a href="../Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
795
+ </span>
796
+
797
+ </h3><div class="docstring">
798
+ <div class="discussion">
799
+
800
+ <p>Removes all cached associations</p>
801
+
802
+
803
+ </div>
804
+ </div>
805
+ <div class="tags">
806
+
807
+
808
+ </div>
435
809
  </div>
436
810
 
437
811
  <div class="method_details ">
@@ -453,13 +827,13 @@
453
827
  <pre class="lines">
454
828
 
455
829
 
456
- 215
457
- 216
458
- 217
459
- 218</pre>
830
+ 223
831
+ 224
832
+ 225
833
+ 226</pre>
460
834
  </td>
461
835
  <td>
462
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 215</span>
836
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 223</span>
463
837
 
464
838
  <span class='kw'>def</span> <span class='id identifier rubyid_save'>save</span>
465
839
  <span class='id identifier rubyid_save_associations'>save_associations</span>
@@ -468,6 +842,35 @@
468
842
  </td>
469
843
  </tr>
470
844
  </table>
845
+ </div>
846
+
847
+ <div class="method_details ">
848
+ <h3 class="signature " id="save_associations-instance_method">
849
+
850
+ - (<tt>Object</tt>) <strong>save_associations</strong>
851
+
852
+
853
+
854
+
855
+
856
+ <span class="not_defined_here">
857
+ Originally defined in module
858
+ <span class='object_link'><a href="../Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
859
+ </span>
860
+
861
+ </h3><div class="docstring">
862
+ <div class="discussion">
863
+
864
+ <p>Saves associations Takes into account inlining, collections, and id setting
865
+ on the parent resource.</p>
866
+
867
+
868
+ </div>
869
+ </div>
870
+ <div class="tags">
871
+
872
+
873
+ </div>
471
874
  </div>
472
875
 
473
876
  <div class="method_details ">
@@ -536,10 +939,10 @@
536
939
  <pre class="lines">
537
940
 
538
941
 
539
- 212</pre>
942
+ 220</pre>
540
943
  </td>
541
944
  <td>
542
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 212</span>
945
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 220</span>
543
946
 
544
947
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:uploads</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>Attachment</span><span class='comma'>,</span> <span class='symbol'>:inline</span> <span class='op'>=&gt;</span> <span class='kw'>true</span></pre>
545
948
  </td>
@@ -611,10 +1014,10 @@
611
1014
  <pre class="lines">
612
1015
 
613
1016
 
614
- 212</pre>
1017
+ 220</pre>
615
1018
  </td>
616
1019
  <td>
617
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 212</span>
1020
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 220</span>
618
1021
 
619
1022
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:uploads</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>Attachment</span><span class='comma'>,</span> <span class='symbol'>:inline</span> <span class='op'>=&gt;</span> <span class='kw'>true</span></pre>
620
1023
  </td>
@@ -627,9 +1030,9 @@
627
1030
  </div>
628
1031
 
629
1032
  <div id="footer">
630
- Generated on Mon Feb 11 17:45:40 2013 by
1033
+ Generated on Wed May 15 18:59:34 2013 by
631
1034
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
632
- 0.8.4.1 (ruby-1.9.3).
1035
+ 0.8.5.2 (ruby-1.9.3).
633
1036
  </div>
634
1037
 
635
1038
  </body>