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::Request
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -119,17 +119,208 @@
|
|
119
119
|
|
120
120
|
|
121
121
|
|
122
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
123
|
+
<ul class="summary">
|
124
|
+
|
125
|
+
<li class="public ">
|
126
|
+
<span class="summary_signature">
|
127
|
+
|
128
|
+
<a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</span>
|
133
|
+
|
134
|
+
<span class="note title not_defined_here">
|
135
|
+
inherited
|
136
|
+
from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
|
137
|
+
</span>
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<span class="summary_desc"><div class='inline'>
|
151
|
+
<p>The association.</p>
|
152
|
+
</div></span>
|
153
|
+
|
154
|
+
</li>
|
155
|
+
|
156
|
+
|
157
|
+
<li class="public ">
|
158
|
+
<span class="summary_signature">
|
159
|
+
|
160
|
+
<a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
(also: #to_param)
|
165
|
+
|
166
|
+
</span>
|
167
|
+
|
168
|
+
<span class="note title not_defined_here">
|
169
|
+
inherited
|
170
|
+
from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
|
171
|
+
</span>
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
|
176
|
+
<span class="note title readonly">readonly</span>
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
<span class="summary_desc"><div class='inline'>
|
187
|
+
<p>The resource's attributes.</p>
|
188
|
+
</div></span>
|
189
|
+
|
190
|
+
</li>
|
191
|
+
|
192
|
+
|
193
|
+
<li class="public ">
|
194
|
+
<span class="summary_signature">
|
195
|
+
|
196
|
+
<a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong> </a>
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
</span>
|
201
|
+
|
202
|
+
<span class="note title not_defined_here">
|
203
|
+
inherited
|
204
|
+
from <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
|
205
|
+
</span>
|
206
|
+
|
207
|
+
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
<span class="summary_desc"><div class='inline'>
|
219
|
+
<p>Returns the value of attribute error.</p>
|
220
|
+
</div></span>
|
221
|
+
|
222
|
+
</li>
|
223
|
+
|
224
|
+
|
225
|
+
<li class="public ">
|
226
|
+
<span class="summary_signature">
|
227
|
+
|
228
|
+
<a href="#error_message-instance_method" title="#error_message (instance method)">- (Object) <strong>error_message</strong> </a>
|
229
|
+
|
122
230
|
|
231
|
+
|
232
|
+
</span>
|
233
|
+
|
234
|
+
<span class="note title not_defined_here">
|
235
|
+
inherited
|
236
|
+
from <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
|
237
|
+
</span>
|
238
|
+
|
239
|
+
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
123
248
|
|
124
|
-
<h2>Instance Attribute Summary</h2>
|
125
249
|
|
126
|
-
|
127
|
-
|
250
|
+
<span class="summary_desc"><div class='inline'>
|
251
|
+
<p>Returns the value of attribute error_message.</p>
|
252
|
+
</div></span>
|
253
|
+
|
254
|
+
</li>
|
128
255
|
|
256
|
+
|
257
|
+
<li class="public ">
|
258
|
+
<span class="summary_signature">
|
259
|
+
|
260
|
+
<a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
</span>
|
265
|
+
|
266
|
+
<span class="note title not_defined_here">
|
267
|
+
inherited
|
268
|
+
from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
|
269
|
+
</span>
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
|
129
278
|
|
130
279
|
|
131
|
-
|
132
|
-
|
280
|
+
|
281
|
+
|
282
|
+
<span class="summary_desc"><div class='inline'>
|
283
|
+
<p>The last received errors.</p>
|
284
|
+
</div></span>
|
285
|
+
|
286
|
+
</li>
|
287
|
+
|
288
|
+
|
289
|
+
<li class="public ">
|
290
|
+
<span class="summary_signature">
|
291
|
+
|
292
|
+
<a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
</span>
|
297
|
+
|
298
|
+
<span class="note title not_defined_here">
|
299
|
+
inherited
|
300
|
+
from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
|
301
|
+
</span>
|
302
|
+
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
<span class="summary_desc"><div class='inline'>
|
315
|
+
<p>Place to dump the last response.</p>
|
316
|
+
</div></span>
|
317
|
+
|
318
|
+
</li>
|
319
|
+
|
320
|
+
|
321
|
+
</ul>
|
322
|
+
|
323
|
+
|
133
324
|
|
134
325
|
|
135
326
|
|
@@ -302,98 +493,270 @@
|
|
302
493
|
|
303
494
|
|
304
495
|
|
305
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Read.html" title="ZendeskAPI::Read (module)">Read</a></span></h3>
|
306
|
-
<p class="inherited"><span class='object_link'><a href="Read.html#find-instance_method" title="ZendeskAPI::Read#find (method)">#find</a></span></p>
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
496
|
|
315
497
|
|
316
498
|
|
317
499
|
|
318
500
|
|
501
|
+
<div id="constructor_details" class="method_details_list">
|
502
|
+
<h2>Constructor Details</h2>
|
319
503
|
|
504
|
+
<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>
|
320
505
|
|
506
|
+
</div>
|
507
|
+
<div id="method_missing_details" class="method_details_list">
|
508
|
+
<h2>Dynamic Method Handling</h2>
|
509
|
+
<p class="notice super">
|
510
|
+
This class handles dynamic methods through the <tt>method_missing</tt> method
|
511
|
+
|
512
|
+
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>
|
513
|
+
|
514
|
+
</p>
|
321
515
|
|
322
|
-
|
323
|
-
<p class="inherited"><span class='object_link'><a href="Destroy.html#destroy-instance_method" title="ZendeskAPI::Destroy#destroy (method)">#destroy</a></span>, <span class='object_link'><a href="Destroy.html#destroyed%3F-instance_method" title="ZendeskAPI::Destroy#destroyed? (method)">#destroyed?</a></span></p>
|
516
|
+
</div>
|
324
517
|
|
518
|
+
<div id="instance_attr_details" class="attr_details">
|
519
|
+
<h2>Instance Attribute Details</h2>
|
520
|
+
|
521
|
+
|
522
|
+
<span id="association=-instance_method"></span>
|
523
|
+
<div class="method_details first">
|
524
|
+
<h3 class="signature first" id="association-instance_method">
|
325
525
|
|
526
|
+
- (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
|
326
527
|
|
528
|
+
|
327
529
|
|
530
|
+
|
328
531
|
|
532
|
+
<span class="not_defined_here">
|
533
|
+
Originally defined in class
|
534
|
+
<span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
|
535
|
+
</span>
|
329
536
|
|
537
|
+
</h3><div class="docstring">
|
538
|
+
<div class="discussion">
|
539
|
+
|
540
|
+
<p>The association</p>
|
541
|
+
|
542
|
+
|
543
|
+
</div>
|
544
|
+
</div>
|
545
|
+
<div class="tags">
|
330
546
|
|
547
|
+
<p class="tag_title">Returns:</p>
|
548
|
+
<ul class="return">
|
331
549
|
|
550
|
+
<li>
|
551
|
+
|
552
|
+
|
553
|
+
<span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
—
|
558
|
+
<div class='inline'>
|
559
|
+
<p>The association</p>
|
560
|
+
</div>
|
561
|
+
|
562
|
+
</li>
|
332
563
|
|
564
|
+
</ul>
|
565
|
+
|
566
|
+
</div>
|
567
|
+
</div>
|
568
|
+
|
569
|
+
|
570
|
+
<span id=""></span>
|
571
|
+
<div class="method_details ">
|
572
|
+
<h3 class="signature " id="attributes-instance_method">
|
333
573
|
|
574
|
+
- (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
|
334
575
|
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Save.html" title="ZendeskAPI::Save (module)">Save</a></span></h3>
|
340
|
-
<p class="inherited"><span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">#clear_associations</a></span>, <span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">#save</a></span>, <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">#save!</a></span>, <span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">#save_associations</a></span></p>
|
341
576
|
|
342
577
|
|
578
|
+
<span class="aliases">Also known as:
|
579
|
+
<span class="names"><span id='to_param-instance_method'>to_param</span></span>
|
580
|
+
</span>
|
343
581
|
|
582
|
+
|
344
583
|
|
584
|
+
<span class="not_defined_here">
|
585
|
+
Originally defined in class
|
586
|
+
<span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
|
587
|
+
</span>
|
345
588
|
|
589
|
+
</h3><div class="docstring">
|
590
|
+
<div class="discussion">
|
591
|
+
|
592
|
+
<p>The resource's attributes</p>
|
593
|
+
|
594
|
+
|
595
|
+
</div>
|
596
|
+
</div>
|
597
|
+
<div class="tags">
|
346
598
|
|
599
|
+
<p class="tag_title">Returns:</p>
|
600
|
+
<ul class="return">
|
347
601
|
|
602
|
+
<li>
|
603
|
+
|
604
|
+
|
605
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
606
|
+
|
607
|
+
|
608
|
+
|
609
|
+
—
|
610
|
+
<div class='inline'>
|
611
|
+
<p>The resource's attributes</p>
|
612
|
+
</div>
|
613
|
+
|
614
|
+
</li>
|
348
615
|
|
616
|
+
</ul>
|
617
|
+
|
618
|
+
</div>
|
619
|
+
</div>
|
620
|
+
|
621
|
+
|
622
|
+
<span id="error=-instance_method"></span>
|
623
|
+
<div class="method_details ">
|
624
|
+
<h3 class="signature " id="error-instance_method">
|
349
625
|
|
626
|
+
- (<tt>Object</tt>) <strong>error</strong>
|
350
627
|
|
628
|
+
|
351
629
|
|
630
|
+
|
352
631
|
|
632
|
+
<span class="not_defined_here">
|
633
|
+
Originally defined in class
|
634
|
+
<span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
|
635
|
+
</span>
|
353
636
|
|
637
|
+
</h3><div class="docstring">
|
638
|
+
<div class="discussion">
|
639
|
+
|
640
|
+
<p>Returns the value of attribute error</p>
|
641
|
+
|
642
|
+
|
643
|
+
</div>
|
644
|
+
</div>
|
645
|
+
<div class="tags">
|
354
646
|
|
647
|
+
|
648
|
+
</div>
|
649
|
+
</div>
|
650
|
+
|
651
|
+
|
652
|
+
<span id="error_message=-instance_method"></span>
|
653
|
+
<div class="method_details ">
|
654
|
+
<h3 class="signature " id="error_message-instance_method">
|
355
655
|
|
656
|
+
- (<tt>Object</tt>) <strong>error_message</strong>
|
356
657
|
|
658
|
+
|
357
659
|
|
660
|
+
|
358
661
|
|
662
|
+
<span class="not_defined_here">
|
663
|
+
Originally defined in class
|
664
|
+
<span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
|
665
|
+
</span>
|
359
666
|
|
667
|
+
</h3><div class="docstring">
|
668
|
+
<div class="discussion">
|
669
|
+
|
670
|
+
<p>Returns the value of attribute error_message</p>
|
671
|
+
|
672
|
+
|
673
|
+
</div>
|
674
|
+
</div>
|
675
|
+
<div class="tags">
|
360
676
|
|
361
|
-
|
362
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Verbs.html" title="ZendeskAPI::Verbs (module)">Verbs</a></span></h3>
|
363
|
-
<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>
|
364
677
|
|
678
|
+
</div>
|
679
|
+
</div>
|
680
|
+
|
681
|
+
|
682
|
+
<span id="errors=-instance_method"></span>
|
683
|
+
<div class="method_details ">
|
684
|
+
<h3 class="signature " id="errors-instance_method">
|
365
685
|
|
686
|
+
- (<tt>Array</tt>) <strong>errors</strong>
|
366
687
|
|
688
|
+
|
367
689
|
|
690
|
+
|
368
691
|
|
692
|
+
<span class="not_defined_here">
|
693
|
+
Originally defined in class
|
694
|
+
<span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
|
695
|
+
</span>
|
369
696
|
|
697
|
+
</h3><div class="docstring">
|
698
|
+
<div class="discussion">
|
699
|
+
|
700
|
+
<p>The last received errors</p>
|
701
|
+
|
702
|
+
|
703
|
+
</div>
|
704
|
+
</div>
|
705
|
+
<div class="tags">
|
370
706
|
|
707
|
+
<p class="tag_title">Returns:</p>
|
708
|
+
<ul class="return">
|
371
709
|
|
710
|
+
<li>
|
711
|
+
|
712
|
+
|
713
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
—
|
718
|
+
<div class='inline'>
|
719
|
+
<p>The last received errors</p>
|
720
|
+
</div>
|
721
|
+
|
722
|
+
</li>
|
372
723
|
|
373
|
-
|
374
|
-
<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>
|
724
|
+
</ul>
|
375
725
|
|
726
|
+
</div>
|
727
|
+
</div>
|
728
|
+
|
729
|
+
|
730
|
+
<span id="response=-instance_method"></span>
|
731
|
+
<div class="method_details ">
|
732
|
+
<h3 class="signature " id="response-instance_method">
|
376
733
|
|
734
|
+
- (<tt>Object</tt>) <strong>response</strong>
|
377
735
|
|
736
|
+
|
378
737
|
|
738
|
+
|
379
739
|
|
740
|
+
<span class="not_defined_here">
|
741
|
+
Originally defined in class
|
742
|
+
<span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
|
743
|
+
</span>
|
380
744
|
|
381
|
-
|
382
|
-
<
|
383
|
-
|
384
|
-
<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>
|
385
|
-
|
386
|
-
</div>
|
387
|
-
<div id="method_missing_details" class="method_details_list">
|
388
|
-
<h2>Dynamic Method Handling</h2>
|
389
|
-
<p class="notice super">
|
390
|
-
This class handles dynamic methods through the <tt>method_missing</tt> method
|
391
|
-
|
392
|
-
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>
|
745
|
+
</h3><div class="docstring">
|
746
|
+
<div class="discussion">
|
393
747
|
|
394
|
-
|
748
|
+
<p>Place to dump the last response</p>
|
749
|
+
|
750
|
+
|
751
|
+
</div>
|
752
|
+
</div>
|
753
|
+
<div class="tags">
|
395
754
|
|
755
|
+
|
756
|
+
</div>
|
396
757
|
</div>
|
758
|
+
|
759
|
+
</div>
|
397
760
|
|
398
761
|
|
399
762
|
<div id="instance_method_details" class="method_details_list">
|
@@ -466,10 +829,10 @@
|
|
466
829
|
<pre class="lines">
|
467
830
|
|
468
831
|
|
469
|
-
|
832
|
+
197</pre>
|
470
833
|
</td>
|
471
834
|
<td>
|
472
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line
|
835
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 197</span>
|
473
836
|
|
474
837
|
<span class='id identifier rubyid_has_many'>has_many</span> <span class='const'>Comment</span></pre>
|
475
838
|
</td>
|
@@ -541,10 +904,10 @@
|
|
541
904
|
<pre class="lines">
|
542
905
|
|
543
906
|
|
544
|
-
|
907
|
+
197</pre>
|
545
908
|
</td>
|
546
909
|
<td>
|
547
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line
|
910
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 197</span>
|
548
911
|
|
549
912
|
<span class='id identifier rubyid_has_many'>has_many</span> <span class='const'>Comment</span></pre>
|
550
913
|
</td>
|
@@ -596,10 +959,10 @@
|
|
596
959
|
<pre class="lines">
|
597
960
|
|
598
961
|
|
599
|
-
|
962
|
+
199</pre>
|
600
963
|
</td>
|
601
964
|
<td>
|
602
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line
|
965
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 199</span>
|
603
966
|
|
604
967
|
<span class='id identifier rubyid_has'>has</span> <span class='const'>Organization</span></pre>
|
605
968
|
</td>
|
@@ -671,10 +1034,10 @@
|
|
671
1034
|
<pre class="lines">
|
672
1035
|
|
673
1036
|
|
674
|
-
|
1037
|
+
199</pre>
|
675
1038
|
</td>
|
676
1039
|
<td>
|
677
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line
|
1040
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 199</span>
|
678
1041
|
|
679
1042
|
<span class='id identifier rubyid_has'>has</span> <span class='const'>Organization</span></pre>
|
680
1043
|
</td>
|
@@ -726,10 +1089,10 @@
|
|
726
1089
|
<pre class="lines">
|
727
1090
|
|
728
1091
|
|
729
|
-
|
1092
|
+
200</pre>
|
730
1093
|
</td>
|
731
1094
|
<td>
|
732
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line
|
1095
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 200</span>
|
733
1096
|
|
734
1097
|
<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'>=></span> <span class='const'>User</span></pre>
|
735
1098
|
</td>
|
@@ -801,10 +1164,10 @@
|
|
801
1164
|
<pre class="lines">
|
802
1165
|
|
803
1166
|
|
804
|
-
|
1167
|
+
200</pre>
|
805
1168
|
</td>
|
806
1169
|
<td>
|
807
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line
|
1170
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 200</span>
|
808
1171
|
|
809
1172
|
<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'>=></span> <span class='const'>User</span></pre>
|
810
1173
|
</td>
|
@@ -817,9 +1180,9 @@
|
|
817
1180
|
</div>
|
818
1181
|
|
819
1182
|
<div id="footer">
|
820
|
-
Generated on
|
1183
|
+
Generated on Wed May 15 18:59:33 2013 by
|
821
1184
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
822
|
-
0.8.
|
1185
|
+
0.8.5.2 (ruby-1.9.3).
|
823
1186
|
</div>
|
824
1187
|
|
825
1188
|
</body>
|