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::DataResource
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
 
@@ -100,9 +100,7 @@
100
100
 
101
101
 
102
102
  <dt class="r1 last">Defined in:</dt>
103
- <dd class="r1 last">lib/zendesk_api/resource.rb<span class="defines">,<br />
104
- lib/zendesk_api/console/extensions.rb</span>
105
- </dd>
103
+ <dd class="r1 last">lib/zendesk_api/resource.rb</dd>
106
104
 
107
105
  </dl>
108
106
  <div class="clear"></div>
@@ -129,6 +127,74 @@
129
127
  <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
130
128
  <ul class="summary">
131
129
 
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
134
+
135
+
136
+
137
+ </span>
138
+
139
+ <span class="note title not_defined_here">
140
+ inherited
141
+ from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
142
+ </span>
143
+
144
+
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+ <span class="summary_desc"><div class='inline'>
156
+ <p>The association.</p>
157
+ </div></span>
158
+
159
+ </li>
160
+
161
+
162
+ <li class="public ">
163
+ <span class="summary_signature">
164
+
165
+ <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
166
+
167
+
168
+
169
+ (also: #to_param)
170
+
171
+ </span>
172
+
173
+ <span class="note title not_defined_here">
174
+ inherited
175
+ from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
176
+ </span>
177
+
178
+
179
+
180
+
181
+ <span class="note title readonly">readonly</span>
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+ <span class="summary_desc"><div class='inline'>
192
+ <p>The resource's attributes.</p>
193
+ </div></span>
194
+
195
+ </li>
196
+
197
+
132
198
  <li class="public ">
133
199
  <span class="summary_signature">
134
200
 
@@ -183,31 +249,125 @@
183
249
  </li>
184
250
 
185
251
 
186
- </ul>
252
+ <li class="public ">
253
+ <span class="summary_signature">
254
+
255
+ <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
256
+
187
257
 
258
+
259
+ </span>
260
+
261
+ <span class="note title not_defined_here">
262
+ inherited
263
+ from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
264
+ </span>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+
188
275
 
276
+
277
+ <span class="summary_desc"><div class='inline'>
278
+ <p>The last received errors.</p>
279
+ </div></span>
280
+
281
+ </li>
282
+
283
+
284
+ <li class="public ">
285
+ <span class="summary_signature">
286
+
287
+ <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
288
+
189
289
 
290
+
291
+ </span>
292
+
293
+ <span class="note title not_defined_here">
294
+ inherited
295
+ from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
296
+ </span>
190
297
 
191
298
 
192
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
193
- <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>
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+
307
+
308
+
309
+ <span class="summary_desc"><div class='inline'>
310
+ <p>Place to dump the last response.</p>
311
+ </div></span>
312
+
313
+ </li>
314
+
315
+
316
+ </ul>
317
+
194
318
 
195
319
 
196
320
 
197
321
 
322
+ <h2>
323
+ Class Method Summary
324
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
325
+ </h2>
326
+
327
+ <ul class="summary">
328
+
329
+ <li class="public ">
330
+ <span class="summary_signature">
331
+
332
+ <a href="#delete-class_method" title="#delete (class method)">+ (Object) <strong>delete</strong>(method) </a>
333
+
334
+
335
+
336
+ </span>
337
+
338
+ <span class="note title not_defined_here">
339
+ extended
340
+ from <span class='object_link'><a href="Verbs.html#delete-class_method" title="ZendeskAPI::Verbs#delete (method)">Verbs</a></span>
341
+ </span>
342
+
198
343
 
199
344
 
200
345
 
201
346
 
202
347
 
203
- <h2>Method Summary</h2>
204
348
 
205
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Verbs.html" title="ZendeskAPI::Verbs (module)">Verbs</a></span></h3>
206
- <p class="inherited"><span class='object_link'><a href="Verbs.html#delete-instance_method" title="ZendeskAPI::Verbs#delete (method)">delete</a></span>, <span class='object_link'><a href="Verbs.html#post-instance_method" title="ZendeskAPI::Verbs#post (method)">post</a></span>, <span class='object_link'><a href="Verbs.html#put-instance_method" title="ZendeskAPI::Verbs#put (method)">put</a></span></p>
207
349
 
208
350
 
351
+ <span class="summary_desc"><div class='inline'>
352
+ <p>Executes a delete using the passed in method as a path.</p>
353
+ </div></span>
209
354
 
355
+ </li>
356
+
357
+
358
+ <li class="public ">
359
+ <span class="summary_signature">
360
+
361
+ <a href="#post-class_method" title="#post (class method)">+ (Object) <strong>post</strong>(method) </a>
362
+
363
+
364
+
365
+ </span>
210
366
 
367
+ <span class="note title not_defined_here">
368
+ extended
369
+ from <span class='object_link'><a href="Verbs.html#post-class_method" title="ZendeskAPI::Verbs#post (method)">Verbs</a></span>
370
+ </span>
211
371
 
212
372
 
213
373
 
@@ -215,12 +375,47 @@
215
375
 
216
376
 
217
377
 
378
+
379
+
380
+ <span class="summary_desc"><div class='inline'>
381
+ <p>Executes a post using the passed in method as a path.</p>
382
+ </div></span>
383
+
384
+ </li>
385
+
386
+
387
+ <li class="public ">
388
+ <span class="summary_signature">
389
+
390
+ <a href="#put-class_method" title="#put (class method)">+ (Object) <strong>put</strong>(method) </a>
391
+
392
+
393
+
394
+ </span>
395
+
396
+ <span class="note title not_defined_here">
397
+ extended
398
+ from <span class='object_link'><a href="Verbs.html#put-class_method" title="ZendeskAPI::Verbs#put (method)">Verbs</a></span>
399
+ </span>
218
400
 
219
401
 
220
402
 
221
403
 
222
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
223
- <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>
404
+
405
+
406
+
407
+
408
+
409
+ <span class="summary_desc"><div class='inline'>
410
+ <p>Executes a put using the passed in method as a path.</p>
411
+ </div></span>
412
+
413
+ </li>
414
+
415
+
416
+ </ul>
417
+
418
+
224
419
 
225
420
 
226
421
 
@@ -248,9 +443,109 @@
248
443
  <h2>Instance Attribute Details</h2>
249
444
 
250
445
 
251
- <span id="error=-instance_method"></span>
446
+ <span id="association=-instance_method"></span>
252
447
  <div class="method_details first">
253
- <h3 class="signature first" id="error-instance_method">
448
+ <h3 class="signature first" id="association-instance_method">
449
+
450
+ - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
451
+
452
+
453
+
454
+
455
+
456
+ <span class="not_defined_here">
457
+ Originally defined in class
458
+ <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
459
+ </span>
460
+
461
+ </h3><div class="docstring">
462
+ <div class="discussion">
463
+
464
+ <p>The association</p>
465
+
466
+
467
+ </div>
468
+ </div>
469
+ <div class="tags">
470
+
471
+ <p class="tag_title">Returns:</p>
472
+ <ul class="return">
473
+
474
+ <li>
475
+
476
+
477
+ <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
478
+
479
+
480
+
481
+ &mdash;
482
+ <div class='inline'>
483
+ <p>The association</p>
484
+ </div>
485
+
486
+ </li>
487
+
488
+ </ul>
489
+
490
+ </div>
491
+ </div>
492
+
493
+
494
+ <span id=""></span>
495
+ <div class="method_details ">
496
+ <h3 class="signature " id="attributes-instance_method">
497
+
498
+ - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
499
+
500
+
501
+
502
+ <span class="aliases">Also known as:
503
+ <span class="names"><span id='to_param-instance_method'>to_param</span></span>
504
+ </span>
505
+
506
+
507
+
508
+ <span class="not_defined_here">
509
+ Originally defined in class
510
+ <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
511
+ </span>
512
+
513
+ </h3><div class="docstring">
514
+ <div class="discussion">
515
+
516
+ <p>The resource's attributes</p>
517
+
518
+
519
+ </div>
520
+ </div>
521
+ <div class="tags">
522
+
523
+ <p class="tag_title">Returns:</p>
524
+ <ul class="return">
525
+
526
+ <li>
527
+
528
+
529
+ <span class='type'>(<tt>Hash</tt>)</span>
530
+
531
+
532
+
533
+ &mdash;
534
+ <div class='inline'>
535
+ <p>The resource's attributes</p>
536
+ </div>
537
+
538
+ </li>
539
+
540
+ </ul>
541
+
542
+ </div>
543
+ </div>
544
+
545
+
546
+ <span id="error=-instance_method"></span>
547
+ <div class="method_details ">
548
+ <h3 class="signature " id="error-instance_method">
254
549
 
255
550
  - (<tt>Object</tt>) <strong>error</strong>
256
551
 
@@ -275,12 +570,12 @@
275
570
  <pre class="lines">
276
571
 
277
572
 
278
- 129
279
- 130
280
- 131</pre>
573
+ 158
574
+ 159
575
+ 160</pre>
281
576
  </td>
282
577
  <td>
283
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resource.rb', line 129</span>
578
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resource.rb', line 158</span>
284
579
 
285
580
  <span class='kw'>def</span> <span class='id identifier rubyid_error'>error</span>
286
581
  <span class='ivar'>@error</span>
@@ -318,12 +613,12 @@
318
613
  <pre class="lines">
319
614
 
320
615
 
321
- 129
322
- 130
323
- 131</pre>
616
+ 158
617
+ 159
618
+ 160</pre>
324
619
  </td>
325
620
  <td>
326
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resource.rb', line 129</span>
621
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resource.rb', line 158</span>
327
622
 
328
623
  <span class='kw'>def</span> <span class='id identifier rubyid_error_message'>error_message</span>
329
624
  <span class='ivar'>@error_message</span>
@@ -333,15 +628,195 @@
333
628
  </table>
334
629
  </div>
335
630
 
631
+
632
+ <span id="errors=-instance_method"></span>
633
+ <div class="method_details ">
634
+ <h3 class="signature " id="errors-instance_method">
635
+
636
+ - (<tt>Array</tt>) <strong>errors</strong>
637
+
638
+
639
+
640
+
641
+
642
+ <span class="not_defined_here">
643
+ Originally defined in class
644
+ <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
645
+ </span>
646
+
647
+ </h3><div class="docstring">
648
+ <div class="discussion">
649
+
650
+ <p>The last received errors</p>
651
+
652
+
653
+ </div>
654
+ </div>
655
+ <div class="tags">
656
+
657
+ <p class="tag_title">Returns:</p>
658
+ <ul class="return">
659
+
660
+ <li>
661
+
662
+
663
+ <span class='type'>(<tt>Array</tt>)</span>
664
+
665
+
666
+
667
+ &mdash;
668
+ <div class='inline'>
669
+ <p>The last received errors</p>
670
+ </div>
671
+
672
+ </li>
673
+
674
+ </ul>
675
+
676
+ </div>
677
+ </div>
678
+
679
+
680
+ <span id="response=-instance_method"></span>
681
+ <div class="method_details ">
682
+ <h3 class="signature " id="response-instance_method">
683
+
684
+ - (<tt>Object</tt>) <strong>response</strong>
685
+
686
+
687
+
688
+
689
+
690
+ <span class="not_defined_here">
691
+ Originally defined in class
692
+ <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
693
+ </span>
694
+
695
+ </h3><div class="docstring">
696
+ <div class="discussion">
697
+
698
+ <p>Place to dump the last response</p>
699
+
700
+
701
+ </div>
702
+ </div>
703
+ <div class="tags">
704
+
705
+
706
+ </div>
707
+ </div>
708
+
336
709
  </div>
337
710
 
338
711
 
712
+ <div id="class_method_details" class="method_details_list">
713
+ <h2>Class Method Details</h2>
714
+
715
+
716
+ <div class="method_details first">
717
+ <h3 class="signature first" id="delete-class_method">
718
+
719
+ + (<tt>Object</tt>) <strong>delete</strong>(method)
720
+
721
+
722
+
723
+
724
+
725
+ <span class="not_defined_here">
726
+ Originally defined in module
727
+ <span class='object_link'><a href="Verbs.html#delete-class_method" title="ZendeskAPI::Verbs#delete (method)">Verbs</a></span>
728
+ </span>
729
+
730
+ </h3><div class="docstring">
731
+ <div class="discussion">
732
+
733
+ <p>Executes a delete using the passed in method as a path. Reloads the
734
+ resource's attributes if any are in the response body.</p>
735
+
736
+ <p>Created method takes an optional options hash. Valid options to be passed
737
+ in to the created method: reload (for caching, default: false)</p>
738
+
739
+
740
+ </div>
741
+ </div>
742
+ <div class="tags">
743
+
744
+
745
+ </div>
746
+ </div>
747
+
748
+ <div class="method_details ">
749
+ <h3 class="signature " id="post-class_method">
750
+
751
+ + (<tt>Object</tt>) <strong>post</strong>(method)
752
+
753
+
754
+
755
+
756
+
757
+ <span class="not_defined_here">
758
+ Originally defined in module
759
+ <span class='object_link'><a href="Verbs.html#post-class_method" title="ZendeskAPI::Verbs#post (method)">Verbs</a></span>
760
+ </span>
761
+
762
+ </h3><div class="docstring">
763
+ <div class="discussion">
764
+
765
+ <p>Executes a post using the passed in method as a path. Reloads the
766
+ resource's attributes if any are in the response body.</p>
767
+
768
+ <p>Created method takes an optional options hash. Valid options to be passed
769
+ in to the created method: reload (for caching, default: false)</p>
770
+
771
+
772
+ </div>
773
+ </div>
774
+ <div class="tags">
775
+
776
+
777
+ </div>
778
+ </div>
779
+
780
+ <div class="method_details ">
781
+ <h3 class="signature " id="put-class_method">
782
+
783
+ + (<tt>Object</tt>) <strong>put</strong>(method)
784
+
785
+
786
+
787
+
788
+
789
+ <span class="not_defined_here">
790
+ Originally defined in module
791
+ <span class='object_link'><a href="Verbs.html#put-class_method" title="ZendeskAPI::Verbs#put (method)">Verbs</a></span>
792
+ </span>
793
+
794
+ </h3><div class="docstring">
795
+ <div class="discussion">
796
+
797
+ <p>Executes a put using the passed in method as a path. Reloads the resource's
798
+ attributes if any are in the response body.</p>
799
+
800
+ <p>Created method takes an optional options hash. Valid options to be passed
801
+ in to the created method: reload (for caching, default: false)</p>
802
+
803
+
804
+ </div>
805
+ </div>
806
+ <div class="tags">
807
+
808
+
809
+ </div>
810
+ </div>
811
+
812
+ </div>
813
+
339
814
  </div>
340
815
 
341
816
  <div id="footer">
342
- Generated on Mon Feb 11 17:45:36 2013 by
817
+ Generated on Wed May 15 18:59:29 2013 by
343
818
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
344
- 0.8.4.1 (ruby-1.9.3).
819
+ 0.8.5.2 (ruby-1.9.3).
345
820
  </div>
346
821
 
347
822
  </body>