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.
- data/.yardopts +6 -2
- data/Gemfile +3 -2
- data/Gemfile.lock +4 -4
- data/Readme.md +3 -268
- data/lib/zendesk_api/actions.rb +51 -46
- data/lib/zendesk_api/association.rb +1 -1
- data/lib/zendesk_api/associations.rb +2 -6
- data/lib/zendesk_api/client.rb +8 -9
- data/lib/zendesk_api/collection.rb +84 -50
- data/lib/zendesk_api/configuration.rb +4 -0
- data/lib/zendesk_api/error.rb +22 -0
- data/lib/zendesk_api/middleware/request/etag_cache.rb +1 -7
- data/lib/zendesk_api/middleware/request/upload.rb +1 -2
- data/lib/zendesk_api/middleware/response/raise_error.rb +20 -0
- data/lib/zendesk_api/resource.rb +33 -5
- data/lib/zendesk_api/resources.rb +36 -11
- data/lib/zendesk_api/server/base.rb +1 -1
- data/lib/zendesk_api/server/helper.rb +3 -3
- data/lib/zendesk_api/server/models/zlib_json.rb +1 -1
- data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +7 -7
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +321 -25
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +413 -46
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +410 -47
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +98 -362
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +457 -676
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +110 -20
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +264 -6
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +43 -82
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +671 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +207 -233
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +499 -24
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +614 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +73 -23
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +68 -18
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/{FormatError.html → Error.html} +19 -27
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html +127 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/{Server/UserRequest.html → Error/NetworkError.html} +18 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html +371 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html +127 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +426 -63
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +405 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +405 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +413 -46
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +404 -41
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html +606 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html +810 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +422 -59
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html +606 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +75 -12
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +593 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +418 -55
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +420 -31
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +1025 -20
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html +610 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +317 -21
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +428 -39
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +63 -79
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +34 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +305 -9
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +433 -41
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +405 -16
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +600 -31
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +464 -101
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +427 -25
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +435 -32
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +389 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +592 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +427 -64
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +907 -17
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +414 -55
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +325 -29
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +414 -51
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +413 -46
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +258 -6
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +62 -12
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +671 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +800 -28
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +505 -142
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +412 -49
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +475 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html +606 -0
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +9 -15
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +433 -66
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +415 -13
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +451 -49
- data/lib/zendesk_api/server/public/doc/_index.html +72 -72
- data/lib/zendesk_api/server/public/doc/class_list.html +1 -1
- data/lib/zendesk_api/server/public/doc/css/style.css +10 -0
- data/lib/zendesk_api/server/public/doc/file.Readme.html +20 -260
- data/lib/zendesk_api/server/public/doc/file_list.html +1 -1
- data/lib/zendesk_api/server/public/doc/frames.html +1 -1
- data/lib/zendesk_api/server/public/doc/index.html +20 -260
- data/lib/zendesk_api/server/public/doc/method_list.html +309 -517
- data/lib/zendesk_api/server/public/doc/top-level-namespace.html +3 -35
- data/lib/zendesk_api/verbs.rb +0 -4
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/core/client_spec.rb +53 -13
- data/spec/core/collection_spec.rb +32 -4
- data/spec/core/create_resource_spec.rb +1 -1
- data/spec/core/data_resource_spec.rb +2 -2
- data/spec/core/middleware/request/etag_cache_spec.rb +6 -7
- data/spec/core/middleware/request/upload_spec.rb +2 -10
- data/spec/core/middleware/response/callback_spec.rb +1 -1
- data/spec/core/middleware/response/raise_error_spec.rb +40 -0
- data/spec/core/read_resource_spec.rb +0 -2
- data/spec/core/resource_spec.rb +13 -5
- data/spec/core/search_spec.rb +1 -1
- data/spec/core/spec_helper.rb +3 -3
- data/spec/live/automation_spec.rb +23 -0
- data/spec/live/organization_field_spec.rb +12 -0
- data/spec/live/ticket_spec.rb +8 -2
- data/spec/live/trigger_spec.rb +23 -0
- data/spec/live/user_field_spec.rb +12 -0
- data/spec/live/user_spec.rb +0 -2
- data/spec/live/view_spec.rb +17 -1
- data/spec/server/spec_helper.rb +2 -2
- data/zendesk_api.gemspec +1 -1
- metadata +88 -51
- checksums.yaml +0 -7
- data/lib/zendesk_api/rescue.rb +0 -63
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console.html +0 -860
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console/Eval.html +0 -190
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server.html +0 -131
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/App.html +0 -523
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/Helper.html +0 -684
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer.html +0 -303
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer/RedcarpetRenderer.html +0 -508
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/ZlibJSON.html +0 -244
- data/spec/core/rescue_spec.rb +0 -151
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: ZendeskAPI::TicketMetric
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -111,70 +111,289 @@
|
|
111
111
|
|
112
112
|
|
113
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
|
+
|
114
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
|
+
|
115
140
|
|
116
|
-
<h2>Instance Attribute Summary</h2>
|
117
141
|
|
118
|
-
|
119
|
-
|
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
|
+
|
120
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
|
+
|
121
174
|
|
122
175
|
|
123
|
-
<h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
|
124
|
-
<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>
|
125
176
|
|
177
|
+
|
178
|
+
<span class="summary_desc"><div class='inline'>
|
179
|
+
<p>The resource's attributes.</p>
|
180
|
+
</div></span>
|
181
|
+
|
182
|
+
</li>
|
126
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
|
+
|
127
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
|
+
|
128
199
|
|
129
200
|
|
201
|
+
|
202
|
+
|
203
|
+
|
130
204
|
|
131
205
|
|
132
206
|
|
133
207
|
|
134
|
-
|
208
|
+
|
209
|
+
|
210
|
+
<span class="summary_desc"><div class='inline'>
|
211
|
+
<p>Returns the value of attribute error.</p>
|
212
|
+
</div></span>
|
135
213
|
|
136
|
-
|
137
|
-
<p class="inherited"><span class='object_link'><a href="Read.html#find-instance_method" title="ZendeskAPI::Read#find (method)">find</a></span></p>
|
214
|
+
</li>
|
138
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>
|
139
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>
|
140
230
|
|
141
231
|
|
142
232
|
|
233
|
+
|
234
|
+
|
235
|
+
|
143
236
|
|
144
237
|
|
145
238
|
|
146
239
|
|
240
|
+
|
241
|
+
|
242
|
+
<span class="summary_desc"><div class='inline'>
|
243
|
+
<p>Returns the value of attribute error_message.</p>
|
244
|
+
</div></span>
|
147
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>
|
148
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>
|
149
262
|
|
150
263
|
|
151
264
|
|
265
|
+
|
266
|
+
|
152
267
|
|
153
268
|
|
154
269
|
|
155
270
|
|
156
271
|
|
272
|
+
|
157
273
|
|
274
|
+
<span class="summary_desc"><div class='inline'>
|
275
|
+
<p>The last received errors.</p>
|
276
|
+
</div></span>
|
158
277
|
|
159
|
-
|
160
|
-
|
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
|
+
|
161
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>
|
162
294
|
|
163
295
|
|
164
296
|
|
297
|
+
|
298
|
+
|
165
299
|
|
166
300
|
|
167
301
|
|
168
302
|
|
169
303
|
|
170
|
-
|
171
|
-
|
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
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
<h2>
|
320
|
+
Class Method Summary
|
321
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
322
|
+
</h2>
|
323
|
+
|
324
|
+
<ul class="summary">
|
325
|
+
|
326
|
+
<li class="public ">
|
327
|
+
<span class="summary_signature">
|
328
|
+
|
329
|
+
<a href="#find-class_method" title="#find (class method)">+ (Object) <strong>find</strong>(client, options = {}) </a>
|
330
|
+
|
331
|
+
|
332
|
+
|
333
|
+
</span>
|
334
|
+
|
335
|
+
<span class="note title not_defined_here">
|
336
|
+
extended
|
337
|
+
from <span class='object_link'><a href="Read.html#find-class_method" title="ZendeskAPI::Read#find (method)">Read</a></span>
|
338
|
+
</span>
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
348
|
+
<span class="summary_desc"><div class='inline'>
|
349
|
+
<p>Finds, returning nil if it fails.</p>
|
350
|
+
</div></span>
|
351
|
+
|
352
|
+
</li>
|
353
|
+
|
354
|
+
|
355
|
+
<li class="public ">
|
356
|
+
<span class="summary_signature">
|
357
|
+
|
358
|
+
<a href="#find%21-class_method" title="#find! (class method)">+ (Object) <strong>find!</strong>(client, options = {}) </a>
|
359
|
+
|
360
|
+
|
361
|
+
|
362
|
+
</span>
|
363
|
+
|
364
|
+
<span class="note title not_defined_here">
|
365
|
+
extended
|
366
|
+
from <span class='object_link'><a href="Read.html#find%21-class_method" title="ZendeskAPI::Read#find! (method)">Read</a></span>
|
367
|
+
</span>
|
368
|
+
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
<span class="summary_desc"><div class='inline'>
|
378
|
+
<p>Finds a resource by an id and any options passed in.</p>
|
379
|
+
</div></span>
|
380
|
+
|
381
|
+
</li>
|
382
|
+
|
383
|
+
|
384
|
+
</ul>
|
385
|
+
|
386
|
+
|
172
387
|
|
173
388
|
|
174
389
|
|
175
390
|
|
176
391
|
|
177
392
|
|
393
|
+
|
394
|
+
|
395
|
+
|
396
|
+
|
178
397
|
<div id="constructor_details" class="method_details_list">
|
179
398
|
<h2>Constructor Details</h2>
|
180
399
|
|
@@ -192,13 +411,371 @@
|
|
192
411
|
|
193
412
|
</div>
|
194
413
|
|
414
|
+
<div id="instance_attr_details" class="attr_details">
|
415
|
+
<h2>Instance Attribute Details</h2>
|
416
|
+
|
417
|
+
|
418
|
+
<span id="association=-instance_method"></span>
|
419
|
+
<div class="method_details first">
|
420
|
+
<h3 class="signature first" id="association-instance_method">
|
421
|
+
|
422
|
+
- (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
|
423
|
+
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
|
428
|
+
<span class="not_defined_here">
|
429
|
+
Originally defined in class
|
430
|
+
<span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
|
431
|
+
</span>
|
432
|
+
|
433
|
+
</h3><div class="docstring">
|
434
|
+
<div class="discussion">
|
435
|
+
|
436
|
+
<p>The association</p>
|
437
|
+
|
438
|
+
|
439
|
+
</div>
|
440
|
+
</div>
|
441
|
+
<div class="tags">
|
442
|
+
|
443
|
+
<p class="tag_title">Returns:</p>
|
444
|
+
<ul class="return">
|
445
|
+
|
446
|
+
<li>
|
447
|
+
|
448
|
+
|
449
|
+
<span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
—
|
454
|
+
<div class='inline'>
|
455
|
+
<p>The association</p>
|
456
|
+
</div>
|
457
|
+
|
458
|
+
</li>
|
459
|
+
|
460
|
+
</ul>
|
461
|
+
|
462
|
+
</div>
|
463
|
+
</div>
|
464
|
+
|
465
|
+
|
466
|
+
<span id=""></span>
|
467
|
+
<div class="method_details ">
|
468
|
+
<h3 class="signature " id="attributes-instance_method">
|
469
|
+
|
470
|
+
- (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
<span class="aliases">Also known as:
|
475
|
+
<span class="names"><span id='to_param-instance_method'>to_param</span></span>
|
476
|
+
</span>
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
<span class="not_defined_here">
|
481
|
+
Originally defined in class
|
482
|
+
<span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
|
483
|
+
</span>
|
484
|
+
|
485
|
+
</h3><div class="docstring">
|
486
|
+
<div class="discussion">
|
487
|
+
|
488
|
+
<p>The resource's attributes</p>
|
489
|
+
|
490
|
+
|
491
|
+
</div>
|
492
|
+
</div>
|
493
|
+
<div class="tags">
|
494
|
+
|
495
|
+
<p class="tag_title">Returns:</p>
|
496
|
+
<ul class="return">
|
497
|
+
|
498
|
+
<li>
|
499
|
+
|
500
|
+
|
501
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
—
|
506
|
+
<div class='inline'>
|
507
|
+
<p>The resource's attributes</p>
|
508
|
+
</div>
|
509
|
+
|
510
|
+
</li>
|
511
|
+
|
512
|
+
</ul>
|
513
|
+
|
514
|
+
</div>
|
515
|
+
</div>
|
516
|
+
|
517
|
+
|
518
|
+
<span id="error=-instance_method"></span>
|
519
|
+
<div class="method_details ">
|
520
|
+
<h3 class="signature " id="error-instance_method">
|
521
|
+
|
522
|
+
- (<tt>Object</tt>) <strong>error</strong>
|
523
|
+
|
524
|
+
|
525
|
+
|
526
|
+
|
527
|
+
|
528
|
+
<span class="not_defined_here">
|
529
|
+
Originally defined in class
|
530
|
+
<span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
|
531
|
+
</span>
|
532
|
+
|
533
|
+
</h3><div class="docstring">
|
534
|
+
<div class="discussion">
|
535
|
+
|
536
|
+
<p>Returns the value of attribute error</p>
|
537
|
+
|
538
|
+
|
539
|
+
</div>
|
540
|
+
</div>
|
541
|
+
<div class="tags">
|
542
|
+
|
543
|
+
|
544
|
+
</div>
|
545
|
+
</div>
|
546
|
+
|
547
|
+
|
548
|
+
<span id="error_message=-instance_method"></span>
|
549
|
+
<div class="method_details ">
|
550
|
+
<h3 class="signature " id="error_message-instance_method">
|
551
|
+
|
552
|
+
- (<tt>Object</tt>) <strong>error_message</strong>
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
<span class="not_defined_here">
|
559
|
+
Originally defined in class
|
560
|
+
<span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
|
561
|
+
</span>
|
562
|
+
|
563
|
+
</h3><div class="docstring">
|
564
|
+
<div class="discussion">
|
565
|
+
|
566
|
+
<p>Returns the value of attribute error_message</p>
|
567
|
+
|
568
|
+
|
569
|
+
</div>
|
570
|
+
</div>
|
571
|
+
<div class="tags">
|
572
|
+
|
573
|
+
|
574
|
+
</div>
|
575
|
+
</div>
|
576
|
+
|
577
|
+
|
578
|
+
<span id="errors=-instance_method"></span>
|
579
|
+
<div class="method_details ">
|
580
|
+
<h3 class="signature " id="errors-instance_method">
|
581
|
+
|
582
|
+
- (<tt>Array</tt>) <strong>errors</strong>
|
583
|
+
|
584
|
+
|
585
|
+
|
586
|
+
|
587
|
+
|
588
|
+
<span class="not_defined_here">
|
589
|
+
Originally defined in class
|
590
|
+
<span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
|
591
|
+
</span>
|
592
|
+
|
593
|
+
</h3><div class="docstring">
|
594
|
+
<div class="discussion">
|
595
|
+
|
596
|
+
<p>The last received errors</p>
|
597
|
+
|
598
|
+
|
599
|
+
</div>
|
600
|
+
</div>
|
601
|
+
<div class="tags">
|
602
|
+
|
603
|
+
<p class="tag_title">Returns:</p>
|
604
|
+
<ul class="return">
|
605
|
+
|
606
|
+
<li>
|
607
|
+
|
608
|
+
|
609
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
610
|
+
|
611
|
+
|
612
|
+
|
613
|
+
—
|
614
|
+
<div class='inline'>
|
615
|
+
<p>The last received errors</p>
|
616
|
+
</div>
|
617
|
+
|
618
|
+
</li>
|
619
|
+
|
620
|
+
</ul>
|
621
|
+
|
622
|
+
</div>
|
623
|
+
</div>
|
624
|
+
|
625
|
+
|
626
|
+
<span id="response=-instance_method"></span>
|
627
|
+
<div class="method_details ">
|
628
|
+
<h3 class="signature " id="response-instance_method">
|
629
|
+
|
630
|
+
- (<tt>Object</tt>) <strong>response</strong>
|
631
|
+
|
632
|
+
|
633
|
+
|
634
|
+
|
635
|
+
|
636
|
+
<span class="not_defined_here">
|
637
|
+
Originally defined in class
|
638
|
+
<span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
|
639
|
+
</span>
|
640
|
+
|
641
|
+
</h3><div class="docstring">
|
642
|
+
<div class="discussion">
|
643
|
+
|
644
|
+
<p>Place to dump the last response</p>
|
645
|
+
|
646
|
+
|
647
|
+
</div>
|
648
|
+
</div>
|
649
|
+
<div class="tags">
|
650
|
+
|
651
|
+
|
652
|
+
</div>
|
653
|
+
</div>
|
654
|
+
|
655
|
+
</div>
|
656
|
+
|
657
|
+
|
658
|
+
<div id="class_method_details" class="method_details_list">
|
659
|
+
<h2>Class Method Details</h2>
|
660
|
+
|
661
|
+
|
662
|
+
<div class="method_details first">
|
663
|
+
<h3 class="signature first" id="find-class_method">
|
664
|
+
|
665
|
+
+ (<tt>Object</tt>) <strong>find</strong>(client, options = {})
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
<span class="not_defined_here">
|
672
|
+
Originally defined in module
|
673
|
+
<span class='object_link'><a href="Read.html#find-class_method" title="ZendeskAPI::Read#find (method)">Read</a></span>
|
674
|
+
</span>
|
675
|
+
|
676
|
+
</h3><div class="docstring">
|
677
|
+
<div class="discussion">
|
678
|
+
|
679
|
+
<p>Finds, returning nil if it fails</p>
|
680
|
+
|
681
|
+
|
682
|
+
</div>
|
683
|
+
</div>
|
684
|
+
<div class="tags">
|
685
|
+
|
686
|
+
|
687
|
+
</div>
|
688
|
+
</div>
|
689
|
+
|
690
|
+
<div class="method_details ">
|
691
|
+
<h3 class="signature " id="find!-class_method">
|
692
|
+
|
693
|
+
+ (<tt>Object</tt>) <strong>find!</strong>(client, options = {})
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
|
698
|
+
|
699
|
+
<span class="not_defined_here">
|
700
|
+
Originally defined in module
|
701
|
+
<span class='object_link'><a href="Read.html#find%21-class_method" title="ZendeskAPI::Read#find! (method)">Read</a></span>
|
702
|
+
</span>
|
703
|
+
|
704
|
+
</h3><div class="docstring">
|
705
|
+
<div class="discussion">
|
706
|
+
|
707
|
+
<p>Finds a resource by an id and any options passed in. A custom path to
|
708
|
+
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>
|
709
|
+
of the class.</p>
|
710
|
+
|
711
|
+
|
712
|
+
</div>
|
713
|
+
</div>
|
714
|
+
<div class="tags">
|
715
|
+
<p class="tag_title">Parameters:</p>
|
716
|
+
<ul class="param">
|
717
|
+
|
718
|
+
<li>
|
719
|
+
|
720
|
+
<span class='name'>client</span>
|
721
|
+
|
722
|
+
|
723
|
+
<span class='type'>(<tt><span class='object_link'><a href="Client.html" title="ZendeskAPI::Client (class)">Client</a></span></tt>)</span>
|
724
|
+
|
725
|
+
|
726
|
+
|
727
|
+
—
|
728
|
+
<div class='inline'>
|
729
|
+
<p>The <span class='object_link'><a href="Client.html" title="ZendeskAPI::Client (class)">Client</a></span> object to be used</p>
|
730
|
+
</div>
|
731
|
+
|
732
|
+
</li>
|
733
|
+
|
734
|
+
<li>
|
735
|
+
|
736
|
+
<span class='name'>options</span>
|
737
|
+
|
738
|
+
|
739
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
740
|
+
|
741
|
+
|
742
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
743
|
+
|
744
|
+
|
745
|
+
—
|
746
|
+
<div class='inline'>
|
747
|
+
<p>Any additional GET parameters to be added</p>
|
748
|
+
</div>
|
749
|
+
|
750
|
+
</li>
|
751
|
+
|
752
|
+
</ul>
|
753
|
+
|
754
|
+
<p class="tag_title">Raises:</p>
|
755
|
+
<ul class="raise">
|
756
|
+
|
757
|
+
<li>
|
758
|
+
|
759
|
+
|
760
|
+
<span class='type'>(<tt>ArgumentError</tt>)</span>
|
761
|
+
|
762
|
+
|
763
|
+
|
764
|
+
</li>
|
765
|
+
|
766
|
+
</ul>
|
767
|
+
|
768
|
+
</div>
|
769
|
+
</div>
|
770
|
+
|
771
|
+
</div>
|
195
772
|
|
196
773
|
</div>
|
197
774
|
|
198
775
|
<div id="footer">
|
199
|
-
Generated on
|
776
|
+
Generated on Wed May 15 18:59:34 2013 by
|
200
777
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
201
|
-
0.8.
|
778
|
+
0.8.5.2 (ruby-1.9.3).
|
202
779
|
</div>
|
203
780
|
|
204
781
|
</body>
|