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::ViewRow
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
 
@@ -107,17 +107,208 @@
107
107
 
108
108
 
109
109
 
110
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
111
+ <ul class="summary">
112
+
113
+ <li class="public ">
114
+ <span class="summary_signature">
115
+
116
+ <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
117
+
118
+
119
+
120
+ </span>
121
+
122
+ <span class="note title not_defined_here">
123
+ inherited
124
+ from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
125
+ </span>
126
+
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+
138
+ <span class="summary_desc"><div class='inline'>
139
+ <p>The association.</p>
140
+ </div></span>
141
+
142
+ </li>
143
+
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature">
147
+
148
+ <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
149
+
150
+
151
+
152
+ (also: #to_param)
153
+
154
+ </span>
155
+
156
+ <span class="note title not_defined_here">
157
+ inherited
158
+ from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
159
+ </span>
160
+
161
+
162
+
163
+
164
+ <span class="note title readonly">readonly</span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
110
172
 
173
+
174
+ <span class="summary_desc"><div class='inline'>
175
+ <p>The resource's attributes.</p>
176
+ </div></span>
177
+
178
+ </li>
111
179
 
112
- <h2>Instance Attribute Summary</h2>
180
+
181
+ <li class="public ">
182
+ <span class="summary_signature">
183
+
184
+ <a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong> </a>
185
+
186
+
187
+
188
+ </span>
189
+
190
+ <span class="note title not_defined_here">
191
+ inherited
192
+ from <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
193
+ </span>
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
113
203
 
114
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DataResource.html" title="ZendeskAPI::DataResource (class)">DataResource</a></span></h3>
115
- <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>
116
204
 
117
205
 
206
+ <span class="summary_desc"><div class='inline'>
207
+ <p>Returns the value of attribute error.</p>
208
+ </div></span>
118
209
 
119
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
120
- <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>
210
+ </li>
211
+
212
+
213
+ <li class="public ">
214
+ <span class="summary_signature">
215
+
216
+ <a href="#error_message-instance_method" title="#error_message (instance method)">- (Object) <strong>error_message</strong> </a>
217
+
218
+
219
+
220
+ </span>
221
+
222
+ <span class="note title not_defined_here">
223
+ inherited
224
+ from <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
225
+ </span>
226
+
227
+
228
+
229
+
230
+
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+ <span class="summary_desc"><div class='inline'>
239
+ <p>Returns the value of attribute error_message.</p>
240
+ </div></span>
241
+
242
+ </li>
243
+
244
+
245
+ <li class="public ">
246
+ <span class="summary_signature">
247
+
248
+ <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
249
+
250
+
251
+
252
+ </span>
253
+
254
+ <span class="note title not_defined_here">
255
+ inherited
256
+ from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
257
+ </span>
258
+
259
+
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+ <span class="summary_desc"><div class='inline'>
271
+ <p>The last received errors.</p>
272
+ </div></span>
273
+
274
+ </li>
275
+
276
+
277
+ <li class="public ">
278
+ <span class="summary_signature">
279
+
280
+ <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
281
+
282
+
283
+
284
+ </span>
285
+
286
+ <span class="note title not_defined_here">
287
+ inherited
288
+ from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
289
+ </span>
290
+
291
+
292
+
293
+
294
+
295
+
296
+
297
+
298
+
299
+
300
+
301
+
302
+ <span class="summary_desc"><div class='inline'>
303
+ <p>Place to dump the last response.</p>
304
+ </div></span>
305
+
306
+ </li>
307
+
308
+
309
+ </ul>
310
+
311
+
121
312
 
122
313
 
123
314
 
@@ -458,54 +649,265 @@
458
649
 
459
650
 
460
651
 
652
+ <div id="constructor_details" class="method_details_list">
653
+ <h2>Constructor Details</h2>
654
+
655
+ <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>
656
+
657
+ </div>
658
+ <div id="method_missing_details" class="method_details_list">
659
+ <h2>Dynamic Method Handling</h2>
660
+ <p class="notice super">
661
+ This class handles dynamic methods through the <tt>method_missing</tt> method
662
+
663
+ 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>
664
+
665
+ </p>
666
+
667
+ </div>
668
+
669
+ <div id="instance_attr_details" class="attr_details">
670
+ <h2>Instance Attribute Details</h2>
671
+
672
+
673
+ <span id="association=-instance_method"></span>
674
+ <div class="method_details first">
675
+ <h3 class="signature first" id="association-instance_method">
676
+
677
+ - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
678
+
679
+
680
+
681
+
682
+
683
+ <span class="not_defined_here">
684
+ Originally defined in class
685
+ <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
686
+ </span>
687
+
688
+ </h3><div class="docstring">
689
+ <div class="discussion">
690
+
691
+ <p>The association</p>
692
+
693
+
694
+ </div>
695
+ </div>
696
+ <div class="tags">
697
+
698
+ <p class="tag_title">Returns:</p>
699
+ <ul class="return">
700
+
701
+ <li>
702
+
703
+
704
+ <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
705
+
706
+
707
+
708
+ &mdash;
709
+ <div class='inline'>
710
+ <p>The association</p>
711
+ </div>
712
+
713
+ </li>
461
714
 
715
+ </ul>
716
+
717
+ </div>
718
+ </div>
719
+
720
+
721
+ <span id=""></span>
722
+ <div class="method_details ">
723
+ <h3 class="signature " id="attributes-instance_method">
462
724
 
725
+ - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
463
726
 
727
+
464
728
 
729
+ <span class="aliases">Also known as:
730
+ <span class="names"><span id='to_param-instance_method'>to_param</span></span>
731
+ </span>
465
732
 
733
+
466
734
 
735
+ <span class="not_defined_here">
736
+ Originally defined in class
737
+ <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
738
+ </span>
467
739
 
468
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Verbs.html" title="ZendeskAPI::Verbs (module)">Verbs</a></span></h3>
469
- <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>
740
+ </h3><div class="docstring">
741
+ <div class="discussion">
742
+
743
+ <p>The resource's attributes</p>
744
+
470
745
 
746
+ </div>
747
+ </div>
748
+ <div class="tags">
471
749
 
750
+ <p class="tag_title">Returns:</p>
751
+ <ul class="return">
472
752
 
753
+ <li>
754
+
755
+
756
+ <span class='type'>(<tt>Hash</tt>)</span>
757
+
758
+
759
+
760
+ &mdash;
761
+ <div class='inline'>
762
+ <p>The resource's attributes</p>
763
+ </div>
764
+
765
+ </li>
473
766
 
767
+ </ul>
768
+
769
+ </div>
770
+ </div>
771
+
772
+
773
+ <span id="error=-instance_method"></span>
774
+ <div class="method_details ">
775
+ <h3 class="signature " id="error-instance_method">
474
776
 
777
+ - (<tt>Object</tt>) <strong>error</strong>
475
778
 
779
+
476
780
 
781
+
477
782
 
783
+ <span class="not_defined_here">
784
+ Originally defined in class
785
+ <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
786
+ </span>
478
787
 
788
+ </h3><div class="docstring">
789
+ <div class="discussion">
790
+
791
+ <p>Returns the value of attribute error</p>
792
+
793
+
794
+ </div>
795
+ </div>
796
+ <div class="tags">
479
797
 
798
+
799
+ </div>
800
+ </div>
801
+
802
+
803
+ <span id="error_message=-instance_method"></span>
804
+ <div class="method_details ">
805
+ <h3 class="signature " id="error_message-instance_method">
480
806
 
807
+ - (<tt>Object</tt>) <strong>error_message</strong>
481
808
 
809
+
482
810
 
811
+
483
812
 
813
+ <span class="not_defined_here">
814
+ Originally defined in class
815
+ <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
816
+ </span>
484
817
 
485
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
486
- <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>
818
+ </h3><div class="docstring">
819
+ <div class="discussion">
820
+
821
+ <p>Returns the value of attribute error_message</p>
822
+
487
823
 
824
+ </div>
825
+ </div>
826
+ <div class="tags">
488
827
 
828
+
829
+ </div>
830
+ </div>
831
+
832
+
833
+ <span id="errors=-instance_method"></span>
834
+ <div class="method_details ">
835
+ <h3 class="signature " id="errors-instance_method">
489
836
 
837
+ - (<tt>Array</tt>) <strong>errors</strong>
490
838
 
839
+
491
840
 
841
+
492
842
 
493
- <div id="constructor_details" class="method_details_list">
494
- <h2>Constructor Details</h2>
843
+ <span class="not_defined_here">
844
+ Originally defined in class
845
+ <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
846
+ </span>
495
847
 
496
- <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>
848
+ </h3><div class="docstring">
849
+ <div class="discussion">
850
+
851
+ <p>The last received errors</p>
852
+
853
+
854
+ </div>
855
+ </div>
856
+ <div class="tags">
497
857
 
858
+ <p class="tag_title">Returns:</p>
859
+ <ul class="return">
860
+
861
+ <li>
862
+
863
+
864
+ <span class='type'>(<tt>Array</tt>)</span>
865
+
866
+
867
+
868
+ &mdash;
869
+ <div class='inline'>
870
+ <p>The last received errors</p>
871
+ </div>
872
+
873
+ </li>
874
+
875
+ </ul>
876
+
877
+ </div>
498
878
  </div>
499
- <div id="method_missing_details" class="method_details_list">
500
- <h2>Dynamic Method Handling</h2>
501
- <p class="notice super">
502
- This class handles dynamic methods through the <tt>method_missing</tt> method
503
879
 
504
- 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>
880
+
881
+ <span id="response=-instance_method"></span>
882
+ <div class="method_details ">
883
+ <h3 class="signature " id="response-instance_method">
884
+
885
+ - (<tt>Object</tt>) <strong>response</strong>
886
+
887
+
888
+
889
+
890
+
891
+ <span class="not_defined_here">
892
+ Originally defined in class
893
+ <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
894
+ </span>
895
+
896
+ </h3><div class="docstring">
897
+ <div class="discussion">
505
898
 
506
- </p>
899
+ <p>Place to dump the last response</p>
900
+
901
+
902
+ </div>
903
+ </div>
904
+ <div class="tags">
507
905
 
906
+
907
+ </div>
508
908
  </div>
909
+
910
+ </div>
509
911
 
510
912
 
511
913
  <div id="class_method_details" class="method_details_list">
@@ -527,12 +929,12 @@
527
929
  <pre class="lines">
528
930
 
529
931
 
530
- 274
531
- 275
532
- 276</pre>
932
+ 282
933
+ 283
934
+ 284</pre>
533
935
  </td>
534
936
  <td>
535
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 274</span>
937
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 282</span>
536
938
 
537
939
  <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_model_key'>model_key</span>
538
940
  <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>rows</span><span class='tstring_end'>&quot;</span></span>
@@ -592,10 +994,10 @@
592
994
  <pre class="lines">
593
995
 
594
996
 
595
- 269</pre>
997
+ 277</pre>
596
998
  </td>
597
999
  <td>
598
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 269</span>
1000
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 277</span>
599
1001
 
600
1002
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:assignee</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
601
1003
  </td>
@@ -667,10 +1069,10 @@
667
1069
  <pre class="lines">
668
1070
 
669
1071
 
670
- 269</pre>
1072
+ 277</pre>
671
1073
  </td>
672
1074
  <td>
673
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 269</span>
1075
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 277</span>
674
1076
 
675
1077
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:assignee</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
676
1078
  </td>
@@ -722,10 +1124,10 @@
722
1124
  <pre class="lines">
723
1125
 
724
1126
 
725
- 268</pre>
1127
+ 276</pre>
726
1128
  </td>
727
1129
  <td>
728
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 268</span>
1130
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 276</span>
729
1131
 
730
1132
  <span class='id identifier rubyid_has'>has</span> <span class='const'>Group</span></pre>
731
1133
  </td>
@@ -797,10 +1199,10 @@
797
1199
  <pre class="lines">
798
1200
 
799
1201
 
800
- 268</pre>
1202
+ 276</pre>
801
1203
  </td>
802
1204
  <td>
803
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 268</span>
1205
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 276</span>
804
1206
 
805
1207
  <span class='id identifier rubyid_has'>has</span> <span class='const'>Group</span></pre>
806
1208
  </td>
@@ -852,10 +1254,10 @@
852
1254
  <pre class="lines">
853
1255
 
854
1256
 
855
- 272</pre>
1257
+ 280</pre>
856
1258
  </td>
857
1259
  <td>
858
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 272</span>
1260
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 280</span>
859
1261
 
860
1262
  <span class='id identifier rubyid_has'>has</span> <span class='const'>Organization</span></pre>
861
1263
  </td>
@@ -927,10 +1329,10 @@
927
1329
  <pre class="lines">
928
1330
 
929
1331
 
930
- 272</pre>
1332
+ 280</pre>
931
1333
  </td>
932
1334
  <td>
933
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 272</span>
1335
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 280</span>
934
1336
 
935
1337
  <span class='id identifier rubyid_has'>has</span> <span class='const'>Organization</span></pre>
936
1338
  </td>
@@ -982,10 +1384,10 @@
982
1384
  <pre class="lines">
983
1385
 
984
1386
 
985
- 270</pre>
1387
+ 278</pre>
986
1388
  </td>
987
1389
  <td>
988
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 270</span>
1390
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 278</span>
989
1391
 
990
1392
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:requester</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
991
1393
  </td>
@@ -1057,10 +1459,10 @@
1057
1459
  <pre class="lines">
1058
1460
 
1059
1461
 
1060
- 270</pre>
1462
+ 278</pre>
1061
1463
  </td>
1062
1464
  <td>
1063
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 270</span>
1465
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 278</span>
1064
1466
 
1065
1467
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:requester</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
1066
1468
  </td>
@@ -1112,10 +1514,10 @@
1112
1514
  <pre class="lines">
1113
1515
 
1114
1516
 
1115
- 271</pre>
1517
+ 279</pre>
1116
1518
  </td>
1117
1519
  <td>
1118
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 271</span>
1520
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 279</span>
1119
1521
 
1120
1522
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:submitter</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
1121
1523
  </td>
@@ -1187,10 +1589,10 @@
1187
1589
  <pre class="lines">
1188
1590
 
1189
1591
 
1190
- 271</pre>
1592
+ 279</pre>
1191
1593
  </td>
1192
1594
  <td>
1193
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 271</span>
1595
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 279</span>
1194
1596
 
1195
1597
  <span class='id identifier rubyid_has'>has</span> <span class='symbol'>:submitter</span><span class='comma'>,</span> <span class='symbol'>:class</span> <span class='op'>=&gt;</span> <span class='const'>User</span></pre>
1196
1598
  </td>
@@ -1242,10 +1644,10 @@
1242
1644
  <pre class="lines">
1243
1645
 
1244
1646
 
1245
- 264</pre>
1647
+ 272</pre>
1246
1648
  </td>
1247
1649
  <td>
1248
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 264</span>
1650
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 272</span>
1249
1651
 
1250
1652
  <span class='id identifier rubyid_has'>has</span> <span class='const'>Ticket</span></pre>
1251
1653
  </td>
@@ -1317,10 +1719,10 @@
1317
1719
  <pre class="lines">
1318
1720
 
1319
1721
 
1320
- 264</pre>
1722
+ 272</pre>
1321
1723
  </td>
1322
1724
  <td>
1323
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 264</span>
1725
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 272</span>
1324
1726
 
1325
1727
  <span class='id identifier rubyid_has'>has</span> <span class='const'>Ticket</span></pre>
1326
1728
  </td>
@@ -1333,9 +1735,9 @@
1333
1735
  </div>
1334
1736
 
1335
1737
  <div id="footer">
1336
- Generated on Mon Feb 11 17:45:40 2013 by
1738
+ Generated on Wed May 15 18:59:34 2013 by
1337
1739
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1338
- 0.8.4.1 (ruby-1.9.3).
1740
+ 0.8.5.2 (ruby-1.9.3).
1339
1741
  </div>
1340
1742
 
1341
1743
  </body>