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::Configuration
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -117,6 +117,33 @@
|
|
117
117
|
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
118
118
|
<ul class="summary">
|
119
119
|
|
120
|
+
<li class="public ">
|
121
|
+
<span class="summary_signature">
|
122
|
+
|
123
|
+
<a href="#access_token-instance_method" title="#access_token (instance method)">- (String) <strong>access_token</strong> </a>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
</span>
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
<span class="summary_desc"><div class='inline'>
|
141
|
+
<p>OAuth2 access_token.</p>
|
142
|
+
</div></span>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
|
146
|
+
|
120
147
|
<li class="public ">
|
121
148
|
<span class="summary_signature">
|
122
149
|
|
@@ -485,16 +512,18 @@
|
|
485
512
|
<pre class="lines">
|
486
513
|
|
487
514
|
|
488
|
-
|
489
|
-
|
490
|
-
|
491
|
-
|
515
|
+
40
|
516
|
+
41
|
517
|
+
42
|
518
|
+
43
|
519
|
+
44</pre>
|
492
520
|
</td>
|
493
521
|
<td>
|
494
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line
|
522
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line 40</span>
|
495
523
|
|
496
524
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span>
|
497
525
|
<span class='ivar'>@client_options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
526
|
+
|
498
527
|
<span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_cache'>cache</span> <span class='op'>=</span> <span class='const'>ZendeskAPI</span><span class='op'>::</span><span class='const'>LRUCache</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='int'>1000</span><span class='rparen'>)</span>
|
499
528
|
<span class='kw'>end</span></pre>
|
500
529
|
</td>
|
@@ -508,9 +537,70 @@
|
|
508
537
|
<h2>Instance Attribute Details</h2>
|
509
538
|
|
510
539
|
|
511
|
-
<span id="
|
540
|
+
<span id="access_token=-instance_method"></span>
|
512
541
|
<div class="method_details first">
|
513
|
-
<h3 class="signature first" id="
|
542
|
+
<h3 class="signature first" id="access_token-instance_method">
|
543
|
+
|
544
|
+
- (<tt>String</tt>) <strong>access_token</strong>
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
|
550
|
+
</h3><div class="docstring">
|
551
|
+
<div class="discussion">
|
552
|
+
|
553
|
+
<p>OAuth2 access_token</p>
|
554
|
+
|
555
|
+
|
556
|
+
</div>
|
557
|
+
</div>
|
558
|
+
<div class="tags">
|
559
|
+
|
560
|
+
<p class="tag_title">Returns:</p>
|
561
|
+
<ul class="return">
|
562
|
+
|
563
|
+
<li>
|
564
|
+
|
565
|
+
|
566
|
+
<span class='type'>(<tt>String</tt>)</span>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
—
|
571
|
+
<div class='inline'>
|
572
|
+
<p>OAuth2 access_token</p>
|
573
|
+
</div>
|
574
|
+
|
575
|
+
</li>
|
576
|
+
|
577
|
+
</ul>
|
578
|
+
|
579
|
+
</div><table class="source_code">
|
580
|
+
<tr>
|
581
|
+
<td>
|
582
|
+
<pre class="lines">
|
583
|
+
|
584
|
+
|
585
|
+
32
|
586
|
+
33
|
587
|
+
34</pre>
|
588
|
+
</td>
|
589
|
+
<td>
|
590
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line 32</span>
|
591
|
+
|
592
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_access_token'>access_token</span>
|
593
|
+
<span class='ivar'>@access_token</span>
|
594
|
+
<span class='kw'>end</span></pre>
|
595
|
+
</td>
|
596
|
+
</tr>
|
597
|
+
</table>
|
598
|
+
</div>
|
599
|
+
|
600
|
+
|
601
|
+
<span id="adapter=-instance_method"></span>
|
602
|
+
<div class="method_details ">
|
603
|
+
<h3 class="signature " id="adapter-instance_method">
|
514
604
|
|
515
605
|
- (<tt>Symbol</tt>) <strong>adapter</strong>
|
516
606
|
|
@@ -676,12 +766,12 @@ ActiveSupport::Cache::MemoryStore.new)</p>
|
|
676
766
|
<pre class="lines">
|
677
767
|
|
678
768
|
|
679
|
-
|
680
|
-
|
681
|
-
|
769
|
+
38
|
770
|
+
39
|
771
|
+
40</pre>
|
682
772
|
</td>
|
683
773
|
<td>
|
684
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line
|
774
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line 38</span>
|
685
775
|
|
686
776
|
<span class='kw'>def</span> <span class='id identifier rubyid_cache'>cache</span>
|
687
777
|
<span class='ivar'>@cache</span>
|
@@ -1169,19 +1259,19 @@ ActiveSupport::Cache::MemoryStore.new)</p>
|
|
1169
1259
|
<pre class="lines">
|
1170
1260
|
|
1171
1261
|
|
1172
|
-
45
|
1173
|
-
46
|
1174
|
-
47
|
1175
|
-
48
|
1176
1262
|
49
|
1177
1263
|
50
|
1178
1264
|
51
|
1179
1265
|
52
|
1180
1266
|
53
|
1181
|
-
54
|
1267
|
+
54
|
1268
|
+
55
|
1269
|
+
56
|
1270
|
+
57
|
1271
|
+
58</pre>
|
1182
1272
|
</td>
|
1183
1273
|
<td>
|
1184
|
-
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line
|
1274
|
+
<pre class="code"><span class="info file"># File 'lib/zendesk_api/configuration.rb', line 49</span>
|
1185
1275
|
|
1186
1276
|
<span class='kw'>def</span> <span class='id identifier rubyid_options'>options</span>
|
1187
1277
|
<span class='lbrace'>{</span>
|
@@ -1203,9 +1293,9 @@ ActiveSupport::Cache::MemoryStore.new)</p>
|
|
1203
1293
|
</div>
|
1204
1294
|
|
1205
1295
|
<div id="footer">
|
1206
|
-
Generated on
|
1296
|
+
Generated on Wed May 15 18:59:36 2013 by
|
1207
1297
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1208
|
-
0.8.
|
1298
|
+
0.8.5.2 (ruby-1.9.3).
|
1209
1299
|
</div>
|
1210
1300
|
|
1211
1301
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Module: ZendeskAPI::Create
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8.
|
9
|
+
— Documentation by YARD 0.8.5.2
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -109,25 +109,283 @@
|
|
109
109
|
|
110
110
|
|
111
111
|
|
112
|
+
|
113
|
+
<h2>
|
114
|
+
Instance Method Summary
|
115
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
116
|
+
</h2>
|
117
|
+
|
118
|
+
<ul class="summary">
|
119
|
+
|
120
|
+
<li class="public ">
|
121
|
+
<span class="summary_signature">
|
122
|
+
|
123
|
+
<a href="#clear_associations-instance_method" title="#clear_associations (instance method)">- (Object) <strong>clear_associations</strong> </a>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
</span>
|
128
|
+
|
129
|
+
<span class="note title not_defined_here">
|
130
|
+
included
|
131
|
+
from <span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
|
132
|
+
</span>
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
<span class="summary_desc"><div class='inline'>
|
143
|
+
<p>Removes all cached associations.</p>
|
144
|
+
</div></span>
|
145
|
+
|
146
|
+
</li>
|
147
|
+
|
148
|
+
|
149
|
+
<li class="public ">
|
150
|
+
<span class="summary_signature">
|
151
|
+
|
152
|
+
<a href="#save-instance_method" title="#save (instance method)">- (Object) <strong>save</strong>(options = {}) </a>
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
</span>
|
157
|
+
|
158
|
+
<span class="note title not_defined_here">
|
159
|
+
included
|
160
|
+
from <span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">Save</a></span>
|
161
|
+
</span>
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
<span class="summary_desc"><div class='inline'>
|
172
|
+
<p>Saves, returning false if it fails and attaching the errors.</p>
|
173
|
+
</div></span>
|
174
|
+
|
175
|
+
</li>
|
176
|
+
|
177
|
+
|
178
|
+
<li class="public ">
|
179
|
+
<span class="summary_signature">
|
180
|
+
|
181
|
+
<a href="#save%21-instance_method" title="#save! (instance method)">- (Boolean) <strong>save!</strong>(options = {}) </a>
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
</span>
|
186
|
+
|
187
|
+
<span class="note title not_defined_here">
|
188
|
+
included
|
189
|
+
from <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">Save</a></span>
|
190
|
+
</span>
|
191
|
+
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<span class="summary_desc"><div class='inline'>
|
201
|
+
<p>If this resource hasn't been deleted, then create or save it.</p>
|
202
|
+
</div></span>
|
203
|
+
|
204
|
+
</li>
|
205
|
+
|
206
|
+
|
207
|
+
<li class="public ">
|
208
|
+
<span class="summary_signature">
|
209
|
+
|
210
|
+
<a href="#save_associations-instance_method" title="#save_associations (instance method)">- (Object) <strong>save_associations</strong> </a>
|
211
|
+
|
112
212
|
|
213
|
+
|
214
|
+
</span>
|
215
|
+
|
216
|
+
<span class="note title not_defined_here">
|
217
|
+
included
|
218
|
+
from <span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
|
219
|
+
</span>
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
|
113
225
|
|
114
226
|
|
227
|
+
|
115
228
|
|
229
|
+
<span class="summary_desc"><div class='inline'>
|
230
|
+
<p>Saves associations Takes into account inlining, collections, and id setting
|
231
|
+
on the parent resource.</p>
|
232
|
+
</div></span>
|
116
233
|
|
234
|
+
</li>
|
235
|
+
|
236
|
+
|
237
|
+
</ul>
|
117
238
|
|
239
|
+
|
240
|
+
|
118
241
|
|
119
|
-
<h2>Method Summary</h2>
|
120
242
|
|
121
|
-
<h3 class="inherited">Methods included from <span class='object_link'><a href="Save.html" title="ZendeskAPI::Save (module)">Save</a></span></h3>
|
122
|
-
<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>
|
123
243
|
|
244
|
+
<div id="instance_method_details" class="method_details_list">
|
245
|
+
<h2>Instance Method Details</h2>
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method_details first">
|
249
|
+
<h3 class="signature first" id="clear_associations-instance_method">
|
250
|
+
|
251
|
+
- (<tt>Object</tt>) <strong>clear_associations</strong>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
<span class="not_defined_here">
|
258
|
+
Originally defined in module
|
259
|
+
<span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
|
260
|
+
</span>
|
261
|
+
|
262
|
+
</h3><div class="docstring">
|
263
|
+
<div class="discussion">
|
264
|
+
|
265
|
+
<p>Removes all cached associations</p>
|
266
|
+
|
267
|
+
|
268
|
+
</div>
|
269
|
+
</div>
|
270
|
+
<div class="tags">
|
271
|
+
|
272
|
+
|
273
|
+
</div>
|
274
|
+
</div>
|
275
|
+
|
276
|
+
<div class="method_details ">
|
277
|
+
<h3 class="signature " id="save-instance_method">
|
278
|
+
|
279
|
+
- (<tt>Object</tt>) <strong>save</strong>(options = {})
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
|
284
|
+
|
285
|
+
<span class="not_defined_here">
|
286
|
+
Originally defined in module
|
287
|
+
<span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">Save</a></span>
|
288
|
+
</span>
|
289
|
+
|
290
|
+
</h3><div class="docstring">
|
291
|
+
<div class="discussion">
|
292
|
+
|
293
|
+
<p>Saves, returning false if it fails and attaching the errors</p>
|
294
|
+
|
295
|
+
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
<div class="tags">
|
299
|
+
|
300
|
+
|
301
|
+
</div>
|
302
|
+
</div>
|
303
|
+
|
304
|
+
<div class="method_details ">
|
305
|
+
<h3 class="signature " id="save!-instance_method">
|
306
|
+
|
307
|
+
- (<tt>Boolean</tt>) <strong>save!</strong>(options = {})
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
|
312
|
+
|
313
|
+
<span class="not_defined_here">
|
314
|
+
Originally defined in module
|
315
|
+
<span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">Save</a></span>
|
316
|
+
</span>
|
317
|
+
|
318
|
+
</h3><div class="docstring">
|
319
|
+
<div class="discussion">
|
320
|
+
|
321
|
+
<p>If this resource hasn't been deleted, then create or save it. Executes a
|
322
|
+
POST if it is a <span class='object_link'><a href="Data.html#new_record%3F-instance_method" title="ZendeskAPI::Data#new_record? (method)">Data#new_record?</a></span>, otherwise a PUT. Merges returned
|
323
|
+
attributes on success.</p>
|
324
|
+
|
325
|
+
|
326
|
+
</div>
|
327
|
+
</div>
|
328
|
+
<div class="tags">
|
329
|
+
|
330
|
+
<p class="tag_title">Returns:</p>
|
331
|
+
<ul class="return">
|
332
|
+
|
333
|
+
<li>
|
334
|
+
|
335
|
+
|
336
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
—
|
341
|
+
<div class='inline'>
|
342
|
+
<p>Success?</p>
|
343
|
+
</div>
|
344
|
+
|
345
|
+
</li>
|
346
|
+
|
347
|
+
</ul>
|
348
|
+
|
349
|
+
</div>
|
350
|
+
</div>
|
351
|
+
|
352
|
+
<div class="method_details ">
|
353
|
+
<h3 class="signature " id="save_associations-instance_method">
|
354
|
+
|
355
|
+
- (<tt>Object</tt>) <strong>save_associations</strong>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
<span class="not_defined_here">
|
362
|
+
Originally defined in module
|
363
|
+
<span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
|
364
|
+
</span>
|
365
|
+
|
366
|
+
</h3><div class="docstring">
|
367
|
+
<div class="discussion">
|
368
|
+
|
369
|
+
<p>Saves associations Takes into account inlining, collections, and id setting
|
370
|
+
on the parent resource.</p>
|
371
|
+
|
372
|
+
|
373
|
+
</div>
|
374
|
+
</div>
|
375
|
+
<div class="tags">
|
376
|
+
|
377
|
+
|
378
|
+
</div>
|
379
|
+
</div>
|
380
|
+
|
381
|
+
</div>
|
124
382
|
|
125
383
|
</div>
|
126
384
|
|
127
385
|
<div id="footer">
|
128
|
-
Generated on
|
386
|
+
Generated on Wed May 15 18:59:28 2013 by
|
129
387
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
130
|
-
0.8.
|
388
|
+
0.8.5.2 (ruby-1.9.3).
|
131
389
|
</div>
|
132
390
|
|
133
391
|
</body>
|