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
  Module: ZendeskAPI::Verbs
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
 
@@ -190,12 +190,6 @@
190
190
 
191
191
 
192
192
 
193
-
194
-
195
-
196
-
197
-
198
-
199
193
 
200
194
  <div id="instance_method_details" class="method_details_list">
201
195
  <h2>Instance Method Details</h2>
@@ -231,10 +225,10 @@ in to the created method: reload (for caching, default: false)</p>
231
225
  <pre class="lines">
232
226
 
233
227
 
234
- 41</pre>
228
+ 37</pre>
235
229
  </td>
236
230
  <td>
237
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/verbs.rb', line 41</span>
231
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/verbs.rb', line 37</span>
238
232
 
239
233
  <span class='id identifier rubyid_create_verb'>create_verb</span> <span class='symbol'>:delete</span></pre>
240
234
  </td>
@@ -272,10 +266,10 @@ in to the created method: reload (for caching, default: false)</p>
272
266
  <pre class="lines">
273
267
 
274
268
 
275
- 40</pre>
269
+ 36</pre>
276
270
  </td>
277
271
  <td>
278
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/verbs.rb', line 40</span>
272
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/verbs.rb', line 36</span>
279
273
 
280
274
  <span class='id identifier rubyid_create_verb'>create_verb</span> <span class='symbol'>:post</span></pre>
281
275
  </td>
@@ -313,10 +307,10 @@ in to the created method: reload (for caching, default: false)</p>
313
307
  <pre class="lines">
314
308
 
315
309
 
316
- 39</pre>
310
+ 35</pre>
317
311
  </td>
318
312
  <td>
319
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/verbs.rb', line 39</span>
313
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/verbs.rb', line 35</span>
320
314
 
321
315
  <span class='id identifier rubyid_create_verb'>create_verb</span> <span class='symbol'>:put</span></pre>
322
316
  </td>
@@ -329,9 +323,9 @@ in to the created method: reload (for caching, default: false)</p>
329
323
  </div>
330
324
 
331
325
  <div id="footer">
332
- Generated on Mon Feb 11 17:45:36 2013 by
326
+ Generated on Wed May 15 18:59:28 2013 by
333
327
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
334
- 0.8.4.1 (ruby-1.9.3).
328
+ 0.8.5.2 (ruby-1.9.3).
335
329
  </div>
336
330
 
337
331
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ZendeskAPI::View
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
 
@@ -73,7 +73,7 @@
73
73
 
74
74
  <dt class="r1">Inherits:</dt>
75
75
  <dd class="r1">
76
- <span class="inheritName"><span class='object_link'><a href="Resource.html" title="ZendeskAPI::Resource (class)">Resource</a></span></span>
76
+ <span class="inheritName"><span class='object_link'><a href="Rule.html" title="ZendeskAPI::Rule (class)">Rule</a></span></span>
77
77
 
78
78
  <ul class="fullTree">
79
79
  <li>Object</li>
@@ -84,6 +84,8 @@
84
84
 
85
85
  <li class="next"><span class='object_link'><a href="Resource.html" title="ZendeskAPI::Resource (class)">Resource</a></span></li>
86
86
 
87
+ <li class="next"><span class='object_link'><a href="Rule.html" title="ZendeskAPI::Rule (class)">Rule</a></span></li>
88
+
87
89
  <li class="next">ZendeskAPI::View</li>
88
90
 
89
91
  </ul>
@@ -109,17 +111,208 @@
109
111
 
110
112
 
111
113
 
114
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
115
+ <ul class="summary">
116
+
117
+ <li class="public ">
118
+ <span class="summary_signature">
119
+
120
+ <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
121
+
112
122
 
123
+
124
+ </span>
125
+
126
+ <span class="note title not_defined_here">
127
+ inherited
128
+ from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
129
+ </span>
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+
139
+
113
140
 
114
- <h2>Instance Attribute Summary</h2>
115
141
 
116
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DataResource.html" title="ZendeskAPI::DataResource (class)">DataResource</a></span></h3>
117
- <p class="inherited"><span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">#error</a></span>, <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">#error_message</a></span></p>
142
+ <span class="summary_desc"><div class='inline'>
143
+ <p>The association.</p>
144
+ </div></span>
145
+
146
+ </li>
147
+
148
+
149
+ <li class="public ">
150
+ <span class="summary_signature">
151
+
152
+ <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
153
+
118
154
 
155
+
156
+ (also: #to_param)
157
+
158
+ </span>
159
+
160
+ <span class="note title not_defined_here">
161
+ inherited
162
+ from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
163
+ </span>
164
+
165
+
166
+
167
+
168
+ <span class="note title readonly">readonly</span>
169
+
170
+
171
+
172
+
173
+
119
174
 
120
175
 
121
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
122
- <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>
176
+
177
+
178
+ <span class="summary_desc"><div class='inline'>
179
+ <p>The resource's attributes.</p>
180
+ </div></span>
181
+
182
+ </li>
183
+
184
+
185
+ <li class="public ">
186
+ <span class="summary_signature">
187
+
188
+ <a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong> </a>
189
+
190
+
191
+
192
+ </span>
193
+
194
+ <span class="note title not_defined_here">
195
+ inherited
196
+ from <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
197
+ </span>
198
+
199
+
200
+
201
+
202
+
203
+
204
+
205
+
206
+
207
+
208
+
209
+
210
+ <span class="summary_desc"><div class='inline'>
211
+ <p>Returns the value of attribute error.</p>
212
+ </div></span>
213
+
214
+ </li>
215
+
216
+
217
+ <li class="public ">
218
+ <span class="summary_signature">
219
+
220
+ <a href="#error_message-instance_method" title="#error_message (instance method)">- (Object) <strong>error_message</strong> </a>
221
+
222
+
223
+
224
+ </span>
225
+
226
+ <span class="note title not_defined_here">
227
+ inherited
228
+ from <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
229
+ </span>
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+
242
+ <span class="summary_desc"><div class='inline'>
243
+ <p>Returns the value of attribute error_message.</p>
244
+ </div></span>
245
+
246
+ </li>
247
+
248
+
249
+ <li class="public ">
250
+ <span class="summary_signature">
251
+
252
+ <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
253
+
254
+
255
+
256
+ </span>
257
+
258
+ <span class="note title not_defined_here">
259
+ inherited
260
+ from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
261
+ </span>
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+
273
+
274
+ <span class="summary_desc"><div class='inline'>
275
+ <p>The last received errors.</p>
276
+ </div></span>
277
+
278
+ </li>
279
+
280
+
281
+ <li class="public ">
282
+ <span class="summary_signature">
283
+
284
+ <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
285
+
286
+
287
+
288
+ </span>
289
+
290
+ <span class="note title not_defined_here">
291
+ inherited
292
+ from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
293
+ </span>
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+
303
+
304
+
305
+
306
+ <span class="summary_desc"><div class='inline'>
307
+ <p>Place to dump the last response.</p>
308
+ </div></span>
309
+
310
+ </li>
311
+
312
+
313
+ </ul>
314
+
315
+
123
316
 
124
317
 
125
318
 
@@ -419,13 +612,6 @@
419
612
 
420
613
 
421
614
 
422
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Read.html" title="ZendeskAPI::Read (module)">Read</a></span></h3>
423
- <p class="inherited"><span class='object_link'><a href="Read.html#find-instance_method" title="ZendeskAPI::Read#find (method)">#find</a></span></p>
424
-
425
-
426
-
427
-
428
-
429
615
 
430
616
 
431
617
 
@@ -433,84 +619,265 @@
433
619
 
434
620
 
435
621
 
622
+ <div id="constructor_details" class="method_details_list">
623
+ <h2>Constructor Details</h2>
436
624
 
625
+ <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>
437
626
 
627
+ </div>
628
+ <div id="method_missing_details" class="method_details_list">
629
+ <h2>Dynamic Method Handling</h2>
630
+ <p class="notice super">
631
+ This class handles dynamic methods through the <tt>method_missing</tt> method
632
+
633
+ 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>
634
+
635
+ </p>
438
636
 
439
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Destroy.html" title="ZendeskAPI::Destroy (module)">Destroy</a></span></h3>
440
- <p class="inherited"><span class='object_link'><a href="Destroy.html#destroy-instance_method" title="ZendeskAPI::Destroy#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="Destroy.html#destroyed%3F-instance_method" title="ZendeskAPI::Destroy#destroyed? (method)">#destroyed?</a></span></p>
637
+ </div>
441
638
 
639
+ <div id="instance_attr_details" class="attr_details">
640
+ <h2>Instance Attribute Details</h2>
641
+
642
+
643
+ <span id="association=-instance_method"></span>
644
+ <div class="method_details first">
645
+ <h3 class="signature first" id="association-instance_method">
442
646
 
647
+ - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
443
648
 
649
+
444
650
 
651
+
445
652
 
653
+ <span class="not_defined_here">
654
+ Originally defined in class
655
+ <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
656
+ </span>
446
657
 
658
+ </h3><div class="docstring">
659
+ <div class="discussion">
660
+
661
+ <p>The association</p>
662
+
663
+
664
+ </div>
665
+ </div>
666
+ <div class="tags">
447
667
 
668
+ <p class="tag_title">Returns:</p>
669
+ <ul class="return">
448
670
 
671
+ <li>
672
+
673
+
674
+ <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
675
+
676
+
677
+
678
+ &mdash;
679
+ <div class='inline'>
680
+ <p>The association</p>
681
+ </div>
682
+
683
+ </li>
449
684
 
685
+ </ul>
686
+
687
+ </div>
688
+ </div>
689
+
690
+
691
+ <span id=""></span>
692
+ <div class="method_details ">
693
+ <h3 class="signature " id="attributes-instance_method">
450
694
 
695
+ - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
451
696
 
452
-
453
-
454
-
455
-
456
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Save.html" title="ZendeskAPI::Save (module)">Save</a></span></h3>
457
- <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-instance_method" title="ZendeskAPI::Save#save (method)">#save</a></span>, <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">#save!</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>
458
697
 
459
698
 
699
+ <span class="aliases">Also known as:
700
+ <span class="names"><span id='to_param-instance_method'>to_param</span></span>
701
+ </span>
460
702
 
703
+
461
704
 
705
+ <span class="not_defined_here">
706
+ Originally defined in class
707
+ <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
708
+ </span>
462
709
 
710
+ </h3><div class="docstring">
711
+ <div class="discussion">
712
+
713
+ <p>The resource's attributes</p>
714
+
715
+
716
+ </div>
717
+ </div>
718
+ <div class="tags">
463
719
 
720
+ <p class="tag_title">Returns:</p>
721
+ <ul class="return">
464
722
 
723
+ <li>
724
+
725
+
726
+ <span class='type'>(<tt>Hash</tt>)</span>
727
+
728
+
729
+
730
+ &mdash;
731
+ <div class='inline'>
732
+ <p>The resource's attributes</p>
733
+ </div>
734
+
735
+ </li>
465
736
 
737
+ </ul>
738
+
739
+ </div>
740
+ </div>
741
+
742
+
743
+ <span id="error=-instance_method"></span>
744
+ <div class="method_details ">
745
+ <h3 class="signature " id="error-instance_method">
466
746
 
747
+ - (<tt>Object</tt>) <strong>error</strong>
467
748
 
749
+
468
750
 
751
+
469
752
 
753
+ <span class="not_defined_here">
754
+ Originally defined in class
755
+ <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
756
+ </span>
470
757
 
758
+ </h3><div class="docstring">
759
+ <div class="discussion">
760
+
761
+ <p>Returns the value of attribute error</p>
762
+
763
+
764
+ </div>
765
+ </div>
766
+ <div class="tags">
471
767
 
768
+
769
+ </div>
770
+ </div>
771
+
772
+
773
+ <span id="error_message=-instance_method"></span>
774
+ <div class="method_details ">
775
+ <h3 class="signature " id="error_message-instance_method">
472
776
 
777
+ - (<tt>Object</tt>) <strong>error_message</strong>
473
778
 
779
+
474
780
 
781
+
475
782
 
783
+ <span class="not_defined_here">
784
+ Originally defined in class
785
+ <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
786
+ </span>
476
787
 
788
+ </h3><div class="docstring">
789
+ <div class="discussion">
790
+
791
+ <p>Returns the value of attribute error_message</p>
792
+
793
+
794
+ </div>
795
+ </div>
796
+ <div class="tags">
477
797
 
478
-
479
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Verbs.html" title="ZendeskAPI::Verbs (module)">Verbs</a></span></h3>
480
- <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>
481
798
 
799
+ </div>
800
+ </div>
801
+
802
+
803
+ <span id="errors=-instance_method"></span>
804
+ <div class="method_details ">
805
+ <h3 class="signature " id="errors-instance_method">
482
806
 
807
+ - (<tt>Array</tt>) <strong>errors</strong>
483
808
 
809
+
484
810
 
811
+
485
812
 
813
+ <span class="not_defined_here">
814
+ Originally defined in class
815
+ <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
816
+ </span>
486
817
 
818
+ </h3><div class="docstring">
819
+ <div class="discussion">
820
+
821
+ <p>The last received errors</p>
822
+
823
+
824
+ </div>
825
+ </div>
826
+ <div class="tags">
487
827
 
828
+ <p class="tag_title">Returns:</p>
829
+ <ul class="return">
488
830
 
831
+ <li>
832
+
833
+
834
+ <span class='type'>(<tt>Array</tt>)</span>
835
+
836
+
837
+
838
+ &mdash;
839
+ <div class='inline'>
840
+ <p>The last received errors</p>
841
+ </div>
842
+
843
+ </li>
489
844
 
490
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
491
- <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>
845
+ </ul>
492
846
 
847
+ </div>
848
+ </div>
849
+
850
+
851
+ <span id="response=-instance_method"></span>
852
+ <div class="method_details ">
853
+ <h3 class="signature " id="response-instance_method">
493
854
 
855
+ - (<tt>Object</tt>) <strong>response</strong>
494
856
 
857
+
495
858
 
859
+
496
860
 
861
+ <span class="not_defined_here">
862
+ Originally defined in class
863
+ <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
864
+ </span>
497
865
 
498
- <div id="constructor_details" class="method_details_list">
499
- <h2>Constructor Details</h2>
500
-
501
- <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>
502
-
503
- </div>
504
- <div id="method_missing_details" class="method_details_list">
505
- <h2>Dynamic Method Handling</h2>
506
- <p class="notice super">
507
- This class handles dynamic methods through the <tt>method_missing</tt> method
508
-
509
- 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>
866
+ </h3><div class="docstring">
867
+ <div class="discussion">
510
868
 
511
- </p>
869
+ <p>Place to dump the last response</p>
870
+
871
+
872
+ </div>
873
+ </div>
874
+ <div class="tags">
512
875
 
876
+
877
+ </div>
513
878
  </div>
879
+
880
+ </div>
514
881
 
515
882
 
516
883
  <div id="class_method_details" class="method_details_list">
@@ -532,12 +899,12 @@
532
899
  <pre class="lines">
533
900
 
534
901
 
535
- 293
536
- 294
537
- 295</pre>
902
+ 310
903
+ 311
904
+ 312</pre>
538
905
  </td>
539
906
  <td>
540
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 293</span>
907
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 310</span>
541
908
 
542
909
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_preview'>preview</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
543
910
  <span class='const'>Collection</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_client'>client</span><span class='comma'>,</span> <span class='const'>ViewRow</span><span class='comma'>,</span> <span class='id identifier rubyid_options'>options</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>views/preview</span><span class='tstring_end'>&quot;</span></span><span class='comma'>,</span> <span class='symbol'>:verb</span> <span class='op'>=&gt;</span> <span class='symbol'>:post</span><span class='rparen'>)</span><span class='rparen'>)</span>
@@ -597,10 +964,10 @@
597
964
  <pre class="lines">
598
965
 
599
966
 
600
- 290</pre>
967
+ 307</pre>
601
968
  </td>
602
969
  <td>
603
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 290</span>
970
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 307</span>
604
971
 
605
972
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:execution</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>RuleExecution</span></pre>
606
973
  </td>
@@ -672,10 +1039,10 @@
672
1039
  <pre class="lines">
673
1040
 
674
1041
 
675
- 290</pre>
1042
+ 307</pre>
676
1043
  </td>
677
1044
  <td>
678
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 290</span>
1045
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 307</span>
679
1046
 
680
1047
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:execution</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>RuleExecution</span></pre>
681
1048
  </td>
@@ -749,10 +1116,10 @@
749
1116
  <pre class="lines">
750
1117
 
751
1118
 
752
- 287</pre>
1119
+ 304</pre>
753
1120
  </td>
754
1121
  <td>
755
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 287</span>
1122
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 304</span>
756
1123
 
757
1124
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:feed</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>Ticket</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>feed</span><span class='tstring_end'>&quot;</span></span></pre>
758
1125
  </td>
@@ -824,10 +1191,10 @@
824
1191
  <pre class="lines">
825
1192
 
826
1193
 
827
- 287</pre>
1194
+ 304</pre>
828
1195
  </td>
829
1196
  <td>
830
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 287</span>
1197
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 304</span>
831
1198
 
832
1199
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:feed</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>Ticket</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>feed</span><span class='tstring_end'>&quot;</span></span></pre>
833
1200
  </td>
@@ -901,10 +1268,10 @@
901
1268
  <pre class="lines">
902
1269
 
903
1270
 
904
- 289</pre>
1271
+ 306</pre>
905
1272
  </td>
906
1273
  <td>
907
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 289</span>
1274
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 306</span>
908
1275
 
909
1276
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:rows</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>ViewRow</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>execute</span><span class='tstring_end'>&quot;</span></span></pre>
910
1277
  </td>
@@ -976,10 +1343,10 @@
976
1343
  <pre class="lines">
977
1344
 
978
1345
 
979
- 289</pre>
1346
+ 306</pre>
980
1347
  </td>
981
1348
  <td>
982
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 289</span>
1349
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 306</span>
983
1350
 
984
1351
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:rows</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>ViewRow</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>execute</span><span class='tstring_end'>&quot;</span></span></pre>
985
1352
  </td>
@@ -1053,10 +1420,10 @@
1053
1420
  <pre class="lines">
1054
1421
 
1055
1422
 
1056
- 286</pre>
1423
+ 303</pre>
1057
1424
  </td>
1058
1425
  <td>
1059
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 286</span>
1426
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 303</span>
1060
1427
 
1061
1428
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:tickets</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>Ticket</span></pre>
1062
1429
  </td>
@@ -1128,10 +1495,10 @@
1128
1495
  <pre class="lines">
1129
1496
 
1130
1497
 
1131
- 286</pre>
1498
+ 303</pre>
1132
1499
  </td>
1133
1500
  <td>
1134
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 286</span>
1501
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 303</span>
1135
1502
 
1136
1503
  <span class='id identifier rubyid_has_many'>has_many</span> <span class='symbol'>:tickets</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>Ticket</span></pre>
1137
1504
  </td>
@@ -1183,10 +1550,10 @@
1183
1550
  <pre class="lines">
1184
1551
 
1185
1552
 
1186
- 291</pre>
1553
+ 308</pre>
1187
1554
  </td>
1188
1555
  <td>
1189
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 291</span>
1556
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 308</span>
1190
1557
 
1191
1558
  <span class='id identifier rubyid_has'>has</span> <span class='const'>ViewCount</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>count</span><span class='tstring_end'>&quot;</span></span></pre>
1192
1559
  </td>
@@ -1258,10 +1625,10 @@
1258
1625
  <pre class="lines">
1259
1626
 
1260
1627
 
1261
- 291</pre>
1628
+ 308</pre>
1262
1629
  </td>
1263
1630
  <td>
1264
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 291</span>
1631
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 308</span>
1265
1632
 
1266
1633
  <span class='id identifier rubyid_has'>has</span> <span class='const'>ViewCount</span><span class='comma'>,</span> <span class='symbol'>:path</span> <span class='op'>=&gt;</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>count</span><span class='tstring_end'>&quot;</span></span></pre>
1267
1634
  </td>
@@ -1274,9 +1641,9 @@
1274
1641
  </div>
1275
1642
 
1276
1643
  <div id="footer">
1277
- Generated on Mon Feb 11 17:45:40 2013 by
1644
+ Generated on Wed May 15 18:59:35 2013 by
1278
1645
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1279
- 0.8.4.1 (ruby-1.9.3).
1646
+ 0.8.5.2 (ruby-1.9.3).
1280
1647
  </div>
1281
1648
 
1282
1649
  </body>