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::Read
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
 
@@ -121,16 +121,21 @@
121
121
 
122
122
 
123
123
  <span class="summary_desc"><div class='inline'>
124
- <p>Finds a resource by an id and any options passed in.</p>
124
+ <p>Finds, returning nil if it fails.</p>
125
125
  </div></span>
126
126
 
127
127
  </li>
128
128
 
129
129
 
130
- </ul>
131
-
132
-
130
+ <li class="public ">
131
+ <span class="summary_signature">
132
+
133
+ <a href="#find%21-instance_method" title="#find! (instance method)">- (Object) <strong>find!</strong>(client, options = {}) </a>
134
+
133
135
 
136
+
137
+ </span>
138
+
134
139
 
135
140
 
136
141
 
@@ -138,6 +143,19 @@
138
143
 
139
144
 
140
145
 
146
+
147
+ <span class="summary_desc"><div class='inline'>
148
+ <p>Finds a resource by an id and any options passed in.</p>
149
+ </div></span>
150
+
151
+ </li>
152
+
153
+
154
+ </ul>
155
+
156
+
157
+
158
+
141
159
  <div id="instance_method_details" class="method_details_list">
142
160
  <h2>Instance Method Details</h2>
143
161
 
@@ -151,6 +169,51 @@
151
169
 
152
170
 
153
171
 
172
+ </h3><div class="docstring">
173
+ <div class="discussion">
174
+
175
+ <p>Finds, returning nil if it fails</p>
176
+
177
+
178
+ </div>
179
+ </div>
180
+ <div class="tags">
181
+
182
+
183
+ </div><table class="source_code">
184
+ <tr>
185
+ <td>
186
+ <pre class="lines">
187
+
188
+
189
+ 99
190
+ 100
191
+ 101
192
+ 102
193
+ 103</pre>
194
+ </td>
195
+ <td>
196
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/actions.rb', line 99</span>
197
+
198
+ <span class='kw'>def</span> <span class='id identifier rubyid_find'>find</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>
199
+ <span class='id identifier rubyid_find!'>find!</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='rparen'>)</span>
200
+ <span class='kw'>rescue</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>Error</span><span class='op'>::</span><span class='const'>ClientError</span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_e'>e</span>
201
+ <span class='kw'>nil</span>
202
+ <span class='kw'>end</span></pre>
203
+ </td>
204
+ </tr>
205
+ </table>
206
+ </div>
207
+
208
+ <div class="method_details ">
209
+ <h3 class="signature " id="find!-instance_method">
210
+
211
+ - (<tt>Object</tt>) <strong>find!</strong>(client, options = {})
212
+
213
+
214
+
215
+
216
+
154
217
  </h3><div class="docstring">
155
218
  <div class="discussion">
156
219
 
@@ -221,6 +284,8 @@ of the class.</p>
221
284
  <pre class="lines">
222
285
 
223
286
 
287
+ 80
288
+ 81
224
289
  82
225
290
  83
226
291
  84
@@ -235,14 +300,12 @@ of the class.</p>
235
300
  93
236
301
  94
237
302
  95
238
- 96
239
- 97
240
- 98</pre>
303
+ 96</pre>
241
304
  </td>
242
305
  <td>
243
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/actions.rb', line 82</span>
306
+ <pre class="code"><span class="info file"># File 'lib/zendesk_api/actions.rb', line 80</span>
244
307
 
245
- <span class='kw'>def</span> <span class='id identifier rubyid_find'>find</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>
308
+ <span class='kw'>def</span> <span class='id identifier rubyid_find!'>find!</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>
246
309
  <span class='ivar'>@client</span> <span class='op'>=</span> <span class='id identifier rubyid_client'>client</span> <span class='comment'># so we can use client.logger in rescue
247
310
  </span>
248
311
  <span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>No :id given</span><span class='tstring_end'>&quot;</span></span> <span class='kw'>unless</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:id</span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='id identifier rubyid_ancestors'>ancestors</span><span class='period'>.</span><span class='id identifier rubyid_include?'>include?</span><span class='lparen'>(</span><span class='const'>SingularResource</span><span class='rparen'>)</span>
@@ -269,9 +332,9 @@ of the class.</p>
269
332
  </div>
270
333
 
271
334
  <div id="footer">
272
- Generated on Mon Feb 11 17:45:36 2013 by
335
+ Generated on Wed May 15 18:59:28 2013 by
273
336
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
274
- 0.8.4.1 (ruby-1.9.3).
337
+ 0.8.5.2 (ruby-1.9.3).
275
338
  </div>
276
339
 
277
340
  </body>
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ZendeskAPI::ReadResource
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
 
@@ -120,50 +120,237 @@
120
120
 
121
121
  </div><div id="subclasses">
122
122
  <h2>Direct Known Subclasses</h2>
123
- <p class="children"><span class='object_link'><a href="JobStatus.html" title="ZendeskAPI::JobStatus (class)">JobStatus</a></span>, <span class='object_link'><a href="Locale.html" title="ZendeskAPI::Locale (class)">Locale</a></span>, <span class='object_link'><a href="Request/Comment.html" title="ZendeskAPI::Request::Comment (class)">ZendeskAPI::Request::Comment</a></span>, <span class='object_link'><a href="SatisfactionRating.html" title="ZendeskAPI::SatisfactionRating (class)">SatisfactionRating</a></span>, <span class='object_link'><a href="SharingAgreement.html" title="ZendeskAPI::SharingAgreement (class)">SharingAgreement</a></span>, <span class='object_link'><a href="SuspendedTicket.html" title="ZendeskAPI::SuspendedTicket (class)">SuspendedTicket</a></span></p>
123
+ <p class="children"><span class='object_link'><a href="JobStatus.html" title="ZendeskAPI::JobStatus (class)">JobStatus</a></span>, <span class='object_link'><a href="Locale.html" title="ZendeskAPI::Locale (class)">Locale</a></span>, <span class='object_link'><a href="OAuthToken.html" title="ZendeskAPI::OAuthToken (class)">OAuthToken</a></span>, <span class='object_link'><a href="Request/Comment.html" title="ZendeskAPI::Request::Comment (class)">ZendeskAPI::Request::Comment</a></span>, <span class='object_link'><a href="SatisfactionRating.html" title="ZendeskAPI::SatisfactionRating (class)">SatisfactionRating</a></span>, <span class='object_link'><a href="SharingAgreement.html" title="ZendeskAPI::SharingAgreement (class)">SharingAgreement</a></span>, <span class='object_link'><a href="SuspendedTicket.html" title="ZendeskAPI::SuspendedTicket (class)">SuspendedTicket</a></span></p>
124
124
  </div>
125
125
 
126
126
 
127
127
 
128
128
 
129
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
130
+ <ul class="summary">
131
+
132
+ <li class="public ">
133
+ <span class="summary_signature">
134
+
135
+ <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
136
+
137
+
138
+
139
+ </span>
140
+
141
+ <span class="note title not_defined_here">
142
+ inherited
143
+ from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
144
+ </span>
145
+
146
+
147
+
148
+
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+ <span class="summary_desc"><div class='inline'>
158
+ <p>The association.</p>
159
+ </div></span>
160
+
161
+ </li>
162
+
163
+
164
+ <li class="public ">
165
+ <span class="summary_signature">
166
+
167
+ <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
168
+
169
+
170
+
171
+ (also: #to_param)
172
+
173
+ </span>
174
+
175
+ <span class="note title not_defined_here">
176
+ inherited
177
+ from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
178
+ </span>
179
+
180
+
181
+
182
+
183
+ <span class="note title readonly">readonly</span>
184
+
185
+
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+ <span class="summary_desc"><div class='inline'>
194
+ <p>The resource's attributes.</p>
195
+ </div></span>
196
+
197
+ </li>
198
+
199
+
200
+ <li class="public ">
201
+ <span class="summary_signature">
202
+
203
+ <a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong> </a>
204
+
129
205
 
206
+
207
+ </span>
208
+
209
+ <span class="note title not_defined_here">
210
+ inherited
211
+ from <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
212
+ </span>
213
+
214
+
215
+
216
+
217
+
218
+
219
+
220
+
221
+
222
+
130
223
 
131
- <h2>Instance Attribute Summary</h2>
132
224
 
133
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DataResource.html" title="ZendeskAPI::DataResource (class)">DataResource</a></span></h3>
134
- <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>
225
+ <span class="summary_desc"><div class='inline'>
226
+ <p>Returns the value of attribute error.</p>
227
+ </div></span>
228
+
229
+ </li>
135
230
 
231
+
232
+ <li class="public ">
233
+ <span class="summary_signature">
234
+
235
+ <a href="#error_message-instance_method" title="#error_message (instance method)">- (Object) <strong>error_message</strong> </a>
236
+
237
+
238
+
239
+ </span>
240
+
241
+ <span class="note title not_defined_here">
242
+ inherited
243
+ from <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
244
+ </span>
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
136
253
 
137
254
 
138
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
139
- <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>
140
255
 
256
+
257
+ <span class="summary_desc"><div class='inline'>
258
+ <p>Returns the value of attribute error_message.</p>
259
+ </div></span>
260
+
261
+ </li>
141
262
 
263
+
264
+ <li class="public ">
265
+ <span class="summary_signature">
266
+
267
+ <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
268
+
142
269
 
270
+
271
+ </span>
272
+
273
+ <span class="note title not_defined_here">
274
+ inherited
275
+ from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
276
+ </span>
277
+
278
+
143
279
 
280
+
281
+
144
282
 
145
283
 
146
284
 
147
285
 
148
286
 
149
- <h2>Method Summary</h2>
287
+
150
288
 
151
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Read.html" title="ZendeskAPI::Read (module)">Read</a></span></h3>
152
- <p class="inherited"><span class='object_link'><a href="Read.html#find-instance_method" title="ZendeskAPI::Read#find (method)">find</a></span></p>
289
+ <span class="summary_desc"><div class='inline'>
290
+ <p>The last received errors.</p>
291
+ </div></span>
292
+
293
+ </li>
294
+
295
+
296
+ <li class="public ">
297
+ <span class="summary_signature">
298
+
299
+ <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
300
+
153
301
 
302
+
303
+ </span>
154
304
 
305
+ <span class="note title not_defined_here">
306
+ inherited
307
+ from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
308
+ </span>
155
309
 
156
310
 
157
311
 
312
+
313
+
158
314
 
159
315
 
160
316
 
161
317
 
162
318
 
319
+
163
320
 
321
+ <span class="summary_desc"><div class='inline'>
322
+ <p>Place to dump the last response.</p>
323
+ </div></span>
164
324
 
325
+ </li>
326
+
327
+
328
+ </ul>
329
+
330
+
331
+
332
+
165
333
 
334
+ <h2>
335
+ Class Method Summary
336
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
337
+ </h2>
338
+
339
+ <ul class="summary">
340
+
341
+ <li class="public ">
342
+ <span class="summary_signature">
343
+
344
+ <a href="#find-class_method" title="#find (class method)">+ (Object) <strong>find</strong>(client, options = {}) </a>
345
+
346
+
347
+
348
+ </span>
166
349
 
350
+ <span class="note title not_defined_here">
351
+ extended
352
+ from <span class='object_link'><a href="Read.html#find-class_method" title="ZendeskAPI::Read#find (method)">Read</a></span>
353
+ </span>
167
354
 
168
355
 
169
356
 
@@ -171,10 +358,28 @@
171
358
 
172
359
 
173
360
 
174
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Verbs.html" title="ZendeskAPI::Verbs (module)">Verbs</a></span></h3>
175
- <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>
176
361
 
177
362
 
363
+ <span class="summary_desc"><div class='inline'>
364
+ <p>Finds, returning nil if it fails.</p>
365
+ </div></span>
366
+
367
+ </li>
368
+
369
+
370
+ <li class="public ">
371
+ <span class="summary_signature">
372
+
373
+ <a href="#find%21-class_method" title="#find! (class method)">+ (Object) <strong>find!</strong>(client, options = {}) </a>
374
+
375
+
376
+
377
+ </span>
378
+
379
+ <span class="note title not_defined_here">
380
+ extended
381
+ from <span class='object_link'><a href="Read.html#find%21-class_method" title="ZendeskAPI::Read#find! (method)">Read</a></span>
382
+ </span>
178
383
 
179
384
 
180
385
 
@@ -182,10 +387,24 @@
182
387
 
183
388
 
184
389
 
185
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
186
- <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>
187
390
 
188
391
 
392
+ <span class="summary_desc"><div class='inline'>
393
+ <p>Finds a resource by an id and any options passed in.</p>
394
+ </div></span>
395
+
396
+ </li>
397
+
398
+
399
+ </ul>
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
189
408
 
190
409
 
191
410
 
@@ -207,13 +426,371 @@
207
426
 
208
427
  </div>
209
428
 
429
+ <div id="instance_attr_details" class="attr_details">
430
+ <h2>Instance Attribute Details</h2>
431
+
432
+
433
+ <span id="association=-instance_method"></span>
434
+ <div class="method_details first">
435
+ <h3 class="signature first" id="association-instance_method">
436
+
437
+ - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
438
+
439
+
440
+
441
+
442
+
443
+ <span class="not_defined_here">
444
+ Originally defined in class
445
+ <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
446
+ </span>
447
+
448
+ </h3><div class="docstring">
449
+ <div class="discussion">
450
+
451
+ <p>The association</p>
452
+
453
+
454
+ </div>
455
+ </div>
456
+ <div class="tags">
457
+
458
+ <p class="tag_title">Returns:</p>
459
+ <ul class="return">
460
+
461
+ <li>
462
+
463
+
464
+ <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
465
+
466
+
467
+
468
+ &mdash;
469
+ <div class='inline'>
470
+ <p>The association</p>
471
+ </div>
472
+
473
+ </li>
474
+
475
+ </ul>
476
+
477
+ </div>
478
+ </div>
479
+
480
+
481
+ <span id=""></span>
482
+ <div class="method_details ">
483
+ <h3 class="signature " id="attributes-instance_method">
484
+
485
+ - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
486
+
487
+
488
+
489
+ <span class="aliases">Also known as:
490
+ <span class="names"><span id='to_param-instance_method'>to_param</span></span>
491
+ </span>
492
+
493
+
494
+
495
+ <span class="not_defined_here">
496
+ Originally defined in class
497
+ <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
498
+ </span>
499
+
500
+ </h3><div class="docstring">
501
+ <div class="discussion">
502
+
503
+ <p>The resource's attributes</p>
504
+
505
+
506
+ </div>
507
+ </div>
508
+ <div class="tags">
509
+
510
+ <p class="tag_title">Returns:</p>
511
+ <ul class="return">
512
+
513
+ <li>
514
+
515
+
516
+ <span class='type'>(<tt>Hash</tt>)</span>
517
+
518
+
519
+
520
+ &mdash;
521
+ <div class='inline'>
522
+ <p>The resource's attributes</p>
523
+ </div>
524
+
525
+ </li>
526
+
527
+ </ul>
528
+
529
+ </div>
530
+ </div>
531
+
532
+
533
+ <span id="error=-instance_method"></span>
534
+ <div class="method_details ">
535
+ <h3 class="signature " id="error-instance_method">
536
+
537
+ - (<tt>Object</tt>) <strong>error</strong>
538
+
539
+
540
+
541
+
542
+
543
+ <span class="not_defined_here">
544
+ Originally defined in class
545
+ <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
546
+ </span>
547
+
548
+ </h3><div class="docstring">
549
+ <div class="discussion">
550
+
551
+ <p>Returns the value of attribute error</p>
552
+
553
+
554
+ </div>
555
+ </div>
556
+ <div class="tags">
557
+
558
+
559
+ </div>
560
+ </div>
561
+
562
+
563
+ <span id="error_message=-instance_method"></span>
564
+ <div class="method_details ">
565
+ <h3 class="signature " id="error_message-instance_method">
566
+
567
+ - (<tt>Object</tt>) <strong>error_message</strong>
568
+
569
+
570
+
571
+
572
+
573
+ <span class="not_defined_here">
574
+ Originally defined in class
575
+ <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
576
+ </span>
577
+
578
+ </h3><div class="docstring">
579
+ <div class="discussion">
580
+
581
+ <p>Returns the value of attribute error_message</p>
582
+
583
+
584
+ </div>
585
+ </div>
586
+ <div class="tags">
587
+
588
+
589
+ </div>
590
+ </div>
591
+
592
+
593
+ <span id="errors=-instance_method"></span>
594
+ <div class="method_details ">
595
+ <h3 class="signature " id="errors-instance_method">
596
+
597
+ - (<tt>Array</tt>) <strong>errors</strong>
598
+
599
+
600
+
601
+
602
+
603
+ <span class="not_defined_here">
604
+ Originally defined in class
605
+ <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
606
+ </span>
607
+
608
+ </h3><div class="docstring">
609
+ <div class="discussion">
610
+
611
+ <p>The last received errors</p>
612
+
613
+
614
+ </div>
615
+ </div>
616
+ <div class="tags">
617
+
618
+ <p class="tag_title">Returns:</p>
619
+ <ul class="return">
620
+
621
+ <li>
622
+
623
+
624
+ <span class='type'>(<tt>Array</tt>)</span>
625
+
626
+
627
+
628
+ &mdash;
629
+ <div class='inline'>
630
+ <p>The last received errors</p>
631
+ </div>
632
+
633
+ </li>
634
+
635
+ </ul>
636
+
637
+ </div>
638
+ </div>
639
+
640
+
641
+ <span id="response=-instance_method"></span>
642
+ <div class="method_details ">
643
+ <h3 class="signature " id="response-instance_method">
644
+
645
+ - (<tt>Object</tt>) <strong>response</strong>
646
+
647
+
648
+
649
+
650
+
651
+ <span class="not_defined_here">
652
+ Originally defined in class
653
+ <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
654
+ </span>
655
+
656
+ </h3><div class="docstring">
657
+ <div class="discussion">
658
+
659
+ <p>Place to dump the last response</p>
660
+
661
+
662
+ </div>
663
+ </div>
664
+ <div class="tags">
665
+
666
+
667
+ </div>
668
+ </div>
669
+
670
+ </div>
671
+
672
+
673
+ <div id="class_method_details" class="method_details_list">
674
+ <h2>Class Method Details</h2>
675
+
676
+
677
+ <div class="method_details first">
678
+ <h3 class="signature first" id="find-class_method">
679
+
680
+ + (<tt>Object</tt>) <strong>find</strong>(client, options = {})
681
+
682
+
683
+
684
+
685
+
686
+ <span class="not_defined_here">
687
+ Originally defined in module
688
+ <span class='object_link'><a href="Read.html#find-class_method" title="ZendeskAPI::Read#find (method)">Read</a></span>
689
+ </span>
690
+
691
+ </h3><div class="docstring">
692
+ <div class="discussion">
693
+
694
+ <p>Finds, returning nil if it fails</p>
695
+
696
+
697
+ </div>
698
+ </div>
699
+ <div class="tags">
700
+
701
+
702
+ </div>
703
+ </div>
704
+
705
+ <div class="method_details ">
706
+ <h3 class="signature " id="find!-class_method">
707
+
708
+ + (<tt>Object</tt>) <strong>find!</strong>(client, options = {})
709
+
710
+
711
+
712
+
713
+
714
+ <span class="not_defined_here">
715
+ Originally defined in module
716
+ <span class='object_link'><a href="Read.html#find%21-class_method" title="ZendeskAPI::Read#find! (method)">Read</a></span>
717
+ </span>
718
+
719
+ </h3><div class="docstring">
720
+ <div class="discussion">
721
+
722
+ <p>Finds a resource by an id and any options passed in. A custom path to
723
+ search at can be passed into opts. It defaults to the <span class='object_link'><a href="Data.html#resource_name-class_method" title="ZendeskAPI::Data.resource_name (method)">Data.resource_name</a></span>
724
+ of the class.</p>
725
+
726
+
727
+ </div>
728
+ </div>
729
+ <div class="tags">
730
+ <p class="tag_title">Parameters:</p>
731
+ <ul class="param">
732
+
733
+ <li>
734
+
735
+ <span class='name'>client</span>
736
+
737
+
738
+ <span class='type'>(<tt><span class='object_link'><a href="Client.html" title="ZendeskAPI::Client (class)">Client</a></span></tt>)</span>
739
+
740
+
741
+
742
+ &mdash;
743
+ <div class='inline'>
744
+ <p>The <span class='object_link'><a href="Client.html" title="ZendeskAPI::Client (class)">Client</a></span> object to be used</p>
745
+ </div>
746
+
747
+ </li>
748
+
749
+ <li>
750
+
751
+ <span class='name'>options</span>
752
+
753
+
754
+ <span class='type'>(<tt>Hash</tt>)</span>
755
+
756
+
757
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
758
+
759
+
760
+ &mdash;
761
+ <div class='inline'>
762
+ <p>Any additional GET parameters to be added</p>
763
+ </div>
764
+
765
+ </li>
766
+
767
+ </ul>
768
+
769
+ <p class="tag_title">Raises:</p>
770
+ <ul class="raise">
771
+
772
+ <li>
773
+
774
+
775
+ <span class='type'>(<tt>ArgumentError</tt>)</span>
776
+
777
+
778
+
779
+ </li>
780
+
781
+ </ul>
782
+
783
+ </div>
784
+ </div>
785
+
786
+ </div>
210
787
 
211
788
  </div>
212
789
 
213
790
  <div id="footer">
214
- Generated on Mon Feb 11 17:45:36 2013 by
791
+ Generated on Wed May 15 18:59:29 2013 by
215
792
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
216
- 0.8.4.1 (ruby-1.9.3).
793
+ 0.8.5.2 (ruby-1.9.3).
217
794
  </div>
218
795
 
219
796
  </body>