zendesk_api 0.3.14 → 0.4.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (141) hide show
  1. data/.yardopts +6 -2
  2. data/Gemfile +3 -2
  3. data/Gemfile.lock +4 -4
  4. data/Readme.md +3 -268
  5. data/lib/zendesk_api/actions.rb +51 -46
  6. data/lib/zendesk_api/association.rb +1 -1
  7. data/lib/zendesk_api/associations.rb +2 -6
  8. data/lib/zendesk_api/client.rb +8 -9
  9. data/lib/zendesk_api/collection.rb +84 -50
  10. data/lib/zendesk_api/configuration.rb +4 -0
  11. data/lib/zendesk_api/error.rb +22 -0
  12. data/lib/zendesk_api/middleware/request/etag_cache.rb +1 -7
  13. data/lib/zendesk_api/middleware/request/upload.rb +1 -2
  14. data/lib/zendesk_api/middleware/response/raise_error.rb +20 -0
  15. data/lib/zendesk_api/resource.rb +33 -5
  16. data/lib/zendesk_api/resources.rb +36 -11
  17. data/lib/zendesk_api/server/base.rb +1 -1
  18. data/lib/zendesk_api/server/helper.rb +3 -3
  19. data/lib/zendesk_api/server/models/zlib_json.rb +1 -1
  20. data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +7 -7
  21. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +415 -13
  22. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +414 -51
  23. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +321 -25
  24. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +413 -46
  25. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +389 -26
  26. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +415 -13
  27. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +415 -13
  28. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +410 -47
  29. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +98 -362
  30. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +457 -676
  31. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +110 -20
  32. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +264 -6
  33. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +43 -82
  34. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +671 -15
  35. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +415 -13
  36. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +207 -233
  37. data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +499 -24
  38. data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +614 -15
  39. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +73 -23
  40. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +68 -18
  41. data/lib/zendesk_api/server/public/doc/ZendeskAPI/{FormatError.html → Error.html} +19 -27
  42. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html +127 -0
  43. data/lib/zendesk_api/server/public/doc/ZendeskAPI/{Server/UserRequest.html → Error/NetworkError.html} +18 -16
  44. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html +371 -0
  45. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html +127 -0
  46. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +426 -63
  47. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +414 -51
  48. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +389 -26
  49. data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +414 -51
  50. data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +405 -16
  51. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +405 -16
  52. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +413 -46
  53. data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +404 -41
  54. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html +606 -0
  55. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html +810 -0
  56. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +422 -59
  57. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html +606 -0
  58. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +75 -12
  59. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +593 -16
  60. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +418 -55
  61. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +420 -31
  62. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +1025 -20
  63. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +415 -13
  64. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html +610 -0
  65. data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +317 -21
  66. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +428 -39
  67. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +63 -79
  68. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +34 -26
  69. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +305 -9
  70. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +433 -41
  71. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +405 -16
  72. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +389 -26
  73. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +600 -31
  74. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +464 -101
  75. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +427 -25
  76. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +435 -32
  77. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +389 -26
  78. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +389 -26
  79. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +592 -15
  80. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +427 -64
  81. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +907 -17
  82. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +414 -55
  83. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +325 -29
  84. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +414 -51
  85. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +413 -46
  86. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +258 -6
  87. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +62 -12
  88. data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +671 -15
  89. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +800 -28
  90. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +505 -142
  91. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +412 -49
  92. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +475 -13
  93. data/lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html +606 -0
  94. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +9 -15
  95. data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +433 -66
  96. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +415 -13
  97. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +451 -49
  98. data/lib/zendesk_api/server/public/doc/_index.html +72 -72
  99. data/lib/zendesk_api/server/public/doc/class_list.html +1 -1
  100. data/lib/zendesk_api/server/public/doc/css/style.css +10 -0
  101. data/lib/zendesk_api/server/public/doc/file.Readme.html +20 -260
  102. data/lib/zendesk_api/server/public/doc/file_list.html +1 -1
  103. data/lib/zendesk_api/server/public/doc/frames.html +1 -1
  104. data/lib/zendesk_api/server/public/doc/index.html +20 -260
  105. data/lib/zendesk_api/server/public/doc/method_list.html +309 -517
  106. data/lib/zendesk_api/server/public/doc/top-level-namespace.html +3 -35
  107. data/lib/zendesk_api/verbs.rb +0 -4
  108. data/lib/zendesk_api/version.rb +1 -1
  109. data/spec/core/client_spec.rb +53 -13
  110. data/spec/core/collection_spec.rb +32 -4
  111. data/spec/core/create_resource_spec.rb +1 -1
  112. data/spec/core/data_resource_spec.rb +2 -2
  113. data/spec/core/middleware/request/etag_cache_spec.rb +6 -7
  114. data/spec/core/middleware/request/upload_spec.rb +2 -10
  115. data/spec/core/middleware/response/callback_spec.rb +1 -1
  116. data/spec/core/middleware/response/raise_error_spec.rb +40 -0
  117. data/spec/core/read_resource_spec.rb +0 -2
  118. data/spec/core/resource_spec.rb +13 -5
  119. data/spec/core/search_spec.rb +1 -1
  120. data/spec/core/spec_helper.rb +3 -3
  121. data/spec/live/automation_spec.rb +23 -0
  122. data/spec/live/organization_field_spec.rb +12 -0
  123. data/spec/live/ticket_spec.rb +8 -2
  124. data/spec/live/trigger_spec.rb +23 -0
  125. data/spec/live/user_field_spec.rb +12 -0
  126. data/spec/live/user_spec.rb +0 -2
  127. data/spec/live/view_spec.rb +17 -1
  128. data/spec/server/spec_helper.rb +2 -2
  129. data/zendesk_api.gemspec +1 -1
  130. metadata +88 -51
  131. checksums.yaml +0 -7
  132. data/lib/zendesk_api/rescue.rb +0 -63
  133. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console.html +0 -860
  134. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Console/Eval.html +0 -190
  135. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server.html +0 -131
  136. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/App.html +0 -523
  137. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/Helper.html +0 -684
  138. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer.html +0 -303
  139. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/HtmlRenderer/RedcarpetRenderer.html +0 -508
  140. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Server/ZlibJSON.html +0 -244
  141. data/spec/core/rescue_spec.rb +0 -151
@@ -6,7 +6,7 @@
6
6
  <title>
7
7
  Class: ZendeskAPI::Resource
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
 
@@ -124,42 +124,333 @@
124
124
 
125
125
  </div><div id="subclasses">
126
126
  <h2>Direct Known Subclasses</h2>
127
- <p class="children"><span class='object_link'><a href="Activity.html" title="ZendeskAPI::Activity (class)">Activity</a></span>, <span class='object_link'><a href="Automation.html" title="ZendeskAPI::Automation (class)">Automation</a></span>, <span class='object_link'><a href="Bookmark.html" title="ZendeskAPI::Bookmark (class)">Bookmark</a></span>, <span class='object_link'><a href="Category.html" title="ZendeskAPI::Category (class)">Category</a></span>, <span class='object_link'><a href="Forum.html" title="ZendeskAPI::Forum (class)">Forum</a></span>, <span class='object_link'><a href="ForumSubscription.html" title="ZendeskAPI::ForumSubscription (class)">ForumSubscription</a></span>, <span class='object_link'><a href="Group.html" title="ZendeskAPI::Group (class)">Group</a></span>, <span class='object_link'><a href="GroupMembership.html" title="ZendeskAPI::GroupMembership (class)">GroupMembership</a></span>, <span class='object_link'><a href="Macro.html" title="ZendeskAPI::Macro (class)">Macro</a></span>, <span class='object_link'><a href="MobileDevice.html" title="ZendeskAPI::MobileDevice (class)">MobileDevice</a></span>, <span class='object_link'><a href="Organization.html" title="ZendeskAPI::Organization (class)">Organization</a></span>, <span class='object_link'><a href="Request.html" title="ZendeskAPI::Request (class)">Request</a></span>, <span class='object_link'><a href="SingularResource.html" title="ZendeskAPI::SingularResource (class)">SingularResource</a></span>, <span class='object_link'><a href="Ticket.html" title="ZendeskAPI::Ticket (class)">Ticket</a></span>, <span class='object_link'><a href="Ticket/Tag.html" title="ZendeskAPI::Ticket::Tag (class)">Ticket::Tag</a></span>, <span class='object_link'><a href="TicketField.html" title="ZendeskAPI::TicketField (class)">TicketField</a></span>, <span class='object_link'><a href="Topic.html" title="ZendeskAPI::Topic (class)">Topic</a></span>, <span class='object_link'><a href="TopicSubscription.html" title="ZendeskAPI::TopicSubscription (class)">TopicSubscription</a></span>, <span class='object_link'><a href="Trigger.html" title="ZendeskAPI::Trigger (class)">Trigger</a></span>, <span class='object_link'><a href="User.html" title="ZendeskAPI::User (class)">User</a></span>, <span class='object_link'><a href="User/Identity.html" title="ZendeskAPI::User::Identity (class)">User::Identity</a></span>, <span class='object_link'><a href="View.html" title="ZendeskAPI::View (class)">View</a></span></p>
127
+ <p class="children"><span class='object_link'><a href="Activity.html" title="ZendeskAPI::Activity (class)">Activity</a></span>, <span class='object_link'><a href="Bookmark.html" title="ZendeskAPI::Bookmark (class)">Bookmark</a></span>, <span class='object_link'><a href="Category.html" title="ZendeskAPI::Category (class)">Category</a></span>, <span class='object_link'><a href="Forum.html" title="ZendeskAPI::Forum (class)">Forum</a></span>, <span class='object_link'><a href="ForumSubscription.html" title="ZendeskAPI::ForumSubscription (class)">ForumSubscription</a></span>, <span class='object_link'><a href="Group.html" title="ZendeskAPI::Group (class)">Group</a></span>, <span class='object_link'><a href="GroupMembership.html" title="ZendeskAPI::GroupMembership (class)">GroupMembership</a></span>, <span class='object_link'><a href="MobileDevice.html" title="ZendeskAPI::MobileDevice (class)">MobileDevice</a></span>, <span class='object_link'><a href="OAuthClient.html" title="ZendeskAPI::OAuthClient (class)">OAuthClient</a></span>, <span class='object_link'><a href="Organization.html" title="ZendeskAPI::Organization (class)">Organization</a></span>, <span class='object_link'><a href="OrganizationField.html" title="ZendeskAPI::OrganizationField (class)">OrganizationField</a></span>, <span class='object_link'><a href="Request.html" title="ZendeskAPI::Request (class)">Request</a></span>, <span class='object_link'><a href="Rule.html" title="ZendeskAPI::Rule (class)">Rule</a></span>, <span class='object_link'><a href="SingularResource.html" title="ZendeskAPI::SingularResource (class)">SingularResource</a></span>, <span class='object_link'><a href="Ticket.html" title="ZendeskAPI::Ticket (class)">Ticket</a></span>, <span class='object_link'><a href="Ticket/Tag.html" title="ZendeskAPI::Ticket::Tag (class)">Ticket::Tag</a></span>, <span class='object_link'><a href="TicketField.html" title="ZendeskAPI::TicketField (class)">TicketField</a></span>, <span class='object_link'><a href="Topic.html" title="ZendeskAPI::Topic (class)">Topic</a></span>, <span class='object_link'><a href="TopicSubscription.html" title="ZendeskAPI::TopicSubscription (class)">TopicSubscription</a></span>, <span class='object_link'><a href="User.html" title="ZendeskAPI::User (class)">User</a></span>, <span class='object_link'><a href="User/Identity.html" title="ZendeskAPI::User::Identity (class)">User::Identity</a></span>, <span class='object_link'><a href="UserField.html" title="ZendeskAPI::UserField (class)">UserField</a></span></p>
128
128
  </div>
129
129
 
130
130
 
131
131
 
132
132
 
133
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
134
+ <ul class="summary">
135
+
136
+ <li class="public ">
137
+ <span class="summary_signature">
138
+
139
+ <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
140
+
141
+
142
+
143
+ </span>
144
+
145
+ <span class="note title not_defined_here">
146
+ inherited
147
+ from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
148
+ </span>
149
+
150
+
151
+
152
+
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+ <span class="summary_desc"><div class='inline'>
162
+ <p>The association.</p>
163
+ </div></span>
164
+
165
+ </li>
166
+
167
+
168
+ <li class="public ">
169
+ <span class="summary_signature">
170
+
171
+ <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
172
+
173
+
174
+
175
+ (also: #to_param)
176
+
177
+ </span>
178
+
179
+ <span class="note title not_defined_here">
180
+ inherited
181
+ from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
182
+ </span>
183
+
184
+
185
+
186
+
187
+ <span class="note title readonly">readonly</span>
188
+
189
+
190
+
191
+
192
+
193
+
194
+
195
+
196
+
197
+ <span class="summary_desc"><div class='inline'>
198
+ <p>The resource's attributes.</p>
199
+ </div></span>
200
+
201
+ </li>
202
+
203
+
204
+ <li class="public ">
205
+ <span class="summary_signature">
206
+
207
+ <a href="#error-instance_method" title="#error (instance method)">- (Object) <strong>error</strong> </a>
208
+
209
+
210
+
211
+ </span>
212
+
213
+ <span class="note title not_defined_here">
214
+ inherited
215
+ from <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
216
+ </span>
217
+
218
+
219
+
220
+
221
+
222
+
223
+
224
+
225
+
226
+
227
+
228
+
229
+ <span class="summary_desc"><div class='inline'>
230
+ <p>Returns the value of attribute error.</p>
231
+ </div></span>
232
+
233
+ </li>
234
+
235
+
236
+ <li class="public ">
237
+ <span class="summary_signature">
238
+
239
+ <a href="#error_message-instance_method" title="#error_message (instance method)">- (Object) <strong>error_message</strong> </a>
240
+
241
+
242
+
243
+ </span>
244
+
245
+ <span class="note title not_defined_here">
246
+ inherited
247
+ from <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
248
+ </span>
249
+
250
+
251
+
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'>
262
+ <p>Returns the value of attribute error_message.</p>
263
+ </div></span>
264
+
265
+ </li>
266
+
267
+
268
+ <li class="public ">
269
+ <span class="summary_signature">
270
+
271
+ <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
272
+
273
+
274
+
275
+ </span>
276
+
277
+ <span class="note title not_defined_here">
278
+ inherited
279
+ from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
280
+ </span>
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+
291
+
292
+
293
+ <span class="summary_desc"><div class='inline'>
294
+ <p>The last received errors.</p>
295
+ </div></span>
296
+
297
+ </li>
298
+
299
+
300
+ <li class="public ">
301
+ <span class="summary_signature">
302
+
303
+ <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
304
+
305
+
306
+
307
+ </span>
308
+
309
+ <span class="note title not_defined_here">
310
+ inherited
311
+ from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
312
+ </span>
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+
322
+
323
+
324
+
325
+ <span class="summary_desc"><div class='inline'>
326
+ <p>Place to dump the last response.</p>
327
+ </div></span>
328
+
329
+ </li>
330
+
331
+
332
+ </ul>
333
+
334
+
133
335
 
134
336
 
135
- <h2>Instance Attribute Summary</h2>
136
337
 
137
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="DataResource.html" title="ZendeskAPI::DataResource (class)">DataResource</a></span></h3>
138
- <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>
338
+ <h2>
339
+ Class Method Summary
340
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
341
+ </h2>
342
+
343
+ <ul class="summary">
344
+
345
+ <li class="public ">
346
+ <span class="summary_signature">
347
+
348
+ <a href="#find-class_method" title="#find (class method)">+ (Object) <strong>find</strong>(client, options = {}) </a>
349
+
139
350
 
351
+
352
+ </span>
353
+
354
+ <span class="note title not_defined_here">
355
+ extended
356
+ from <span class='object_link'><a href="Read.html#find-class_method" title="ZendeskAPI::Read#find (method)">Read</a></span>
357
+ </span>
358
+
359
+
360
+
361
+
362
+
140
363
 
141
364
 
142
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
143
- <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>
144
365
 
366
+
367
+ <span class="summary_desc"><div class='inline'>
368
+ <p>Finds, returning nil if it fails.</p>
369
+ </div></span>
370
+
371
+ </li>
145
372
 
373
+
374
+ <li class="public ">
375
+ <span class="summary_signature">
376
+
377
+ <a href="#find%21-class_method" title="#find! (class method)">+ (Object) <strong>find!</strong>(client, options = {}) </a>
378
+
146
379
 
380
+
381
+ </span>
382
+
383
+ <span class="note title not_defined_here">
384
+ extended
385
+ from <span class='object_link'><a href="Read.html#find%21-class_method" title="ZendeskAPI::Read#find! (method)">Read</a></span>
386
+ </span>
387
+
147
388
 
148
389
 
149
390
 
150
391
 
151
392
 
152
393
 
153
- <h2>Method Summary</h2>
394
+
395
+
396
+ <span class="summary_desc"><div class='inline'>
397
+ <p>Finds a resource by an id and any options passed in.</p>
398
+ </div></span>
399
+
400
+ </li>
401
+
402
+
403
+ </ul>
154
404
 
155
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Read.html" title="ZendeskAPI::Read (module)">Read</a></span></h3>
156
- <p class="inherited"><span class='object_link'><a href="Read.html#find-instance_method" title="ZendeskAPI::Read#find (method)">find</a></span></p>
405
+ <h2>
406
+ Instance Method Summary
407
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
408
+ </h2>
409
+
410
+ <ul class="summary">
411
+
412
+ <li class="public ">
413
+ <span class="summary_signature">
414
+
415
+ <a href="#clear_associations-instance_method" title="#clear_associations (instance method)">- (Object) <strong>clear_associations</strong> </a>
416
+
157
417
 
418
+
419
+ </span>
420
+
421
+ <span class="note title not_defined_here">
422
+ included
423
+ from <span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
424
+ </span>
425
+
426
+
427
+
428
+
429
+
158
430
 
159
431
 
432
+
160
433
 
434
+ <span class="summary_desc"><div class='inline'>
435
+ <p>Removes all cached associations.</p>
436
+ </div></span>
161
437
 
438
+ </li>
439
+
440
+
441
+ <li class="public ">
442
+ <span class="summary_signature">
443
+
444
+ <a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong> </a>
445
+
446
+
447
+
448
+ </span>
162
449
 
450
+ <span class="note title not_defined_here">
451
+ included
452
+ from <span class='object_link'><a href="Destroy.html#destroy-instance_method" title="ZendeskAPI::Destroy#destroy (method)">Destroy</a></span>
453
+ </span>
163
454
 
164
455
 
165
456
 
@@ -167,16 +458,55 @@
167
458
 
168
459
 
169
460
 
461
+
170
462
 
463
+ <span class="summary_desc"><div class='inline'></div></span>
171
464
 
172
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Destroy.html" title="ZendeskAPI::Destroy (module)">Destroy</a></span></h3>
173
- <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>
465
+ </li>
174
466
 
467
+
468
+ <li class="public ">
469
+ <span class="summary_signature">
470
+
471
+ <a href="#destroy%21-instance_method" title="#destroy! (instance method)">- (Boolean) <strong>destroy!</strong> </a>
472
+
473
+
474
+
475
+ </span>
476
+
477
+ <span class="note title not_defined_here">
478
+ included
479
+ from <span class='object_link'><a href="Destroy.html#destroy%21-instance_method" title="ZendeskAPI::Destroy#destroy! (method)">Destroy</a></span>
480
+ </span>
481
+
482
+
175
483
 
176
484
 
177
485
 
178
486
 
179
487
 
488
+
489
+
490
+ <span class="summary_desc"><div class='inline'>
491
+ <p>If this resource hasn't already been deleted, then do so.</p>
492
+ </div></span>
493
+
494
+ </li>
495
+
496
+
497
+ <li class="public ">
498
+ <span class="summary_signature">
499
+
500
+ <a href="#destroyed%3F-instance_method" title="#destroyed? (instance method)">- (Boolean) <strong>destroyed?</strong> </a>
501
+
502
+
503
+
504
+ </span>
505
+
506
+ <span class="note title not_defined_here">
507
+ included
508
+ from <span class='object_link'><a href="Destroy.html#destroyed%3F-instance_method" title="ZendeskAPI::Destroy#destroyed? (method)">Destroy</a></span>
509
+ </span>
180
510
 
181
511
 
182
512
 
@@ -184,12 +514,28 @@
184
514
 
185
515
 
186
516
 
517
+
187
518
 
519
+ <span class="summary_desc"><div class='inline'>
520
+ <p>Has this object been deleted?.</p>
521
+ </div></span>
188
522
 
189
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Save.html" title="ZendeskAPI::Save (module)">Save</a></span></h3>
190
- <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>
523
+ </li>
524
+
525
+
526
+ <li class="public ">
527
+ <span class="summary_signature">
528
+
529
+ <a href="#save-instance_method" title="#save (instance method)">- (Object) <strong>save</strong>(options = {}) </a>
530
+
191
531
 
532
+
533
+ </span>
192
534
 
535
+ <span class="note title not_defined_here">
536
+ included
537
+ from <span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">Save</a></span>
538
+ </span>
193
539
 
194
540
 
195
541
 
@@ -197,9 +543,28 @@
197
543
 
198
544
 
199
545
 
546
+
200
547
 
548
+ <span class="summary_desc"><div class='inline'>
549
+ <p>Saves, returning false if it fails and attaching the errors.</p>
550
+ </div></span>
201
551
 
552
+ </li>
553
+
554
+
555
+ <li class="public ">
556
+ <span class="summary_signature">
557
+
558
+ <a href="#save%21-instance_method" title="#save! (instance method)">- (Boolean) <strong>save!</strong>(options = {}) </a>
559
+
560
+
561
+
562
+ </span>
202
563
 
564
+ <span class="note title not_defined_here">
565
+ included
566
+ from <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">Save</a></span>
567
+ </span>
203
568
 
204
569
 
205
570
 
@@ -207,22 +572,61 @@
207
572
 
208
573
 
209
574
 
575
+
210
576
 
577
+ <span class="summary_desc"><div class='inline'>
578
+ <p>If this resource hasn't been deleted, then create or save it.</p>
579
+ </div></span>
211
580
 
212
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Verbs.html" title="ZendeskAPI::Verbs (module)">Verbs</a></span></h3>
213
- <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>
581
+ </li>
214
582
 
583
+
584
+ <li class="public ">
585
+ <span class="summary_signature">
586
+
587
+ <a href="#save_associations-instance_method" title="#save_associations (instance method)">- (Object) <strong>save_associations</strong> </a>
588
+
589
+
590
+
591
+ </span>
592
+
593
+ <span class="note title not_defined_here">
594
+ included
595
+ from <span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
596
+ </span>
597
+
598
+
215
599
 
216
600
 
217
601
 
218
602
 
219
603
 
604
+
220
605
 
606
+ <span class="summary_desc"><div class='inline'>
607
+ <p>Saves associations Takes into account inlining, collections, and id setting
608
+ on the parent resource.</p>
609
+ </div></span>
221
610
 
611
+ </li>
612
+
613
+
614
+ </ul>
222
615
 
223
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></h3>
224
- <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>
225
616
 
617
+
618
+
619
+
620
+
621
+
622
+
623
+
624
+
625
+
626
+
627
+
628
+
629
+
226
630
 
227
631
 
228
632
 
@@ -245,13 +649,614 @@
245
649
 
246
650
  </div>
247
651
 
652
+ <div id="instance_attr_details" class="attr_details">
653
+ <h2>Instance Attribute Details</h2>
654
+
655
+
656
+ <span id="association=-instance_method"></span>
657
+ <div class="method_details first">
658
+ <h3 class="signature first" id="association-instance_method">
659
+
660
+ - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
661
+
662
+
663
+
664
+
665
+
666
+ <span class="not_defined_here">
667
+ Originally defined in class
668
+ <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
669
+ </span>
670
+
671
+ </h3><div class="docstring">
672
+ <div class="discussion">
673
+
674
+ <p>The association</p>
675
+
676
+
677
+ </div>
678
+ </div>
679
+ <div class="tags">
680
+
681
+ <p class="tag_title">Returns:</p>
682
+ <ul class="return">
683
+
684
+ <li>
685
+
686
+
687
+ <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
688
+
689
+
690
+
691
+ &mdash;
692
+ <div class='inline'>
693
+ <p>The association</p>
694
+ </div>
695
+
696
+ </li>
697
+
698
+ </ul>
699
+
700
+ </div>
701
+ </div>
702
+
703
+
704
+ <span id=""></span>
705
+ <div class="method_details ">
706
+ <h3 class="signature " id="attributes-instance_method">
707
+
708
+ - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
709
+
710
+
711
+
712
+ <span class="aliases">Also known as:
713
+ <span class="names"><span id='to_param-instance_method'>to_param</span></span>
714
+ </span>
715
+
716
+
717
+
718
+ <span class="not_defined_here">
719
+ Originally defined in class
720
+ <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
721
+ </span>
722
+
723
+ </h3><div class="docstring">
724
+ <div class="discussion">
725
+
726
+ <p>The resource's attributes</p>
727
+
728
+
729
+ </div>
730
+ </div>
731
+ <div class="tags">
732
+
733
+ <p class="tag_title">Returns:</p>
734
+ <ul class="return">
735
+
736
+ <li>
737
+
738
+
739
+ <span class='type'>(<tt>Hash</tt>)</span>
740
+
741
+
742
+
743
+ &mdash;
744
+ <div class='inline'>
745
+ <p>The resource's attributes</p>
746
+ </div>
747
+
748
+ </li>
749
+
750
+ </ul>
751
+
752
+ </div>
753
+ </div>
754
+
755
+
756
+ <span id="error=-instance_method"></span>
757
+ <div class="method_details ">
758
+ <h3 class="signature " id="error-instance_method">
759
+
760
+ - (<tt>Object</tt>) <strong>error</strong>
761
+
762
+
763
+
764
+
765
+
766
+ <span class="not_defined_here">
767
+ Originally defined in class
768
+ <span class='object_link'><a href="DataResource.html#error-instance_method" title="ZendeskAPI::DataResource#error (method)">DataResource</a></span>
769
+ </span>
770
+
771
+ </h3><div class="docstring">
772
+ <div class="discussion">
773
+
774
+ <p>Returns the value of attribute error</p>
775
+
776
+
777
+ </div>
778
+ </div>
779
+ <div class="tags">
780
+
781
+
782
+ </div>
783
+ </div>
784
+
785
+
786
+ <span id="error_message=-instance_method"></span>
787
+ <div class="method_details ">
788
+ <h3 class="signature " id="error_message-instance_method">
789
+
790
+ - (<tt>Object</tt>) <strong>error_message</strong>
791
+
792
+
793
+
794
+
795
+
796
+ <span class="not_defined_here">
797
+ Originally defined in class
798
+ <span class='object_link'><a href="DataResource.html#error_message-instance_method" title="ZendeskAPI::DataResource#error_message (method)">DataResource</a></span>
799
+ </span>
800
+
801
+ </h3><div class="docstring">
802
+ <div class="discussion">
803
+
804
+ <p>Returns the value of attribute error_message</p>
805
+
806
+
807
+ </div>
808
+ </div>
809
+ <div class="tags">
810
+
811
+
812
+ </div>
813
+ </div>
814
+
815
+
816
+ <span id="errors=-instance_method"></span>
817
+ <div class="method_details ">
818
+ <h3 class="signature " id="errors-instance_method">
819
+
820
+ - (<tt>Array</tt>) <strong>errors</strong>
821
+
822
+
823
+
824
+
825
+
826
+ <span class="not_defined_here">
827
+ Originally defined in class
828
+ <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
829
+ </span>
830
+
831
+ </h3><div class="docstring">
832
+ <div class="discussion">
833
+
834
+ <p>The last received errors</p>
835
+
836
+
837
+ </div>
838
+ </div>
839
+ <div class="tags">
840
+
841
+ <p class="tag_title">Returns:</p>
842
+ <ul class="return">
843
+
844
+ <li>
845
+
846
+
847
+ <span class='type'>(<tt>Array</tt>)</span>
848
+
849
+
850
+
851
+ &mdash;
852
+ <div class='inline'>
853
+ <p>The last received errors</p>
854
+ </div>
855
+
856
+ </li>
857
+
858
+ </ul>
859
+
860
+ </div>
861
+ </div>
862
+
863
+
864
+ <span id="response=-instance_method"></span>
865
+ <div class="method_details ">
866
+ <h3 class="signature " id="response-instance_method">
867
+
868
+ - (<tt>Object</tt>) <strong>response</strong>
869
+
870
+
871
+
872
+
873
+
874
+ <span class="not_defined_here">
875
+ Originally defined in class
876
+ <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
877
+ </span>
878
+
879
+ </h3><div class="docstring">
880
+ <div class="discussion">
881
+
882
+ <p>Place to dump the last response</p>
883
+
884
+
885
+ </div>
886
+ </div>
887
+ <div class="tags">
888
+
889
+
890
+ </div>
891
+ </div>
892
+
893
+ </div>
894
+
895
+
896
+ <div id="class_method_details" class="method_details_list">
897
+ <h2>Class Method Details</h2>
898
+
899
+
900
+ <div class="method_details first">
901
+ <h3 class="signature first" id="find-class_method">
902
+
903
+ + (<tt>Object</tt>) <strong>find</strong>(client, options = {})
904
+
905
+
906
+
907
+
908
+
909
+ <span class="not_defined_here">
910
+ Originally defined in module
911
+ <span class='object_link'><a href="Read.html#find-class_method" title="ZendeskAPI::Read#find (method)">Read</a></span>
912
+ </span>
913
+
914
+ </h3><div class="docstring">
915
+ <div class="discussion">
916
+
917
+ <p>Finds, returning nil if it fails</p>
918
+
919
+
920
+ </div>
921
+ </div>
922
+ <div class="tags">
923
+
924
+
925
+ </div>
926
+ </div>
927
+
928
+ <div class="method_details ">
929
+ <h3 class="signature " id="find!-class_method">
930
+
931
+ + (<tt>Object</tt>) <strong>find!</strong>(client, options = {})
932
+
933
+
934
+
935
+
936
+
937
+ <span class="not_defined_here">
938
+ Originally defined in module
939
+ <span class='object_link'><a href="Read.html#find%21-class_method" title="ZendeskAPI::Read#find! (method)">Read</a></span>
940
+ </span>
941
+
942
+ </h3><div class="docstring">
943
+ <div class="discussion">
944
+
945
+ <p>Finds a resource by an id and any options passed in. A custom path to
946
+ 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>
947
+ of the class.</p>
948
+
949
+
950
+ </div>
951
+ </div>
952
+ <div class="tags">
953
+ <p class="tag_title">Parameters:</p>
954
+ <ul class="param">
955
+
956
+ <li>
957
+
958
+ <span class='name'>client</span>
959
+
960
+
961
+ <span class='type'>(<tt><span class='object_link'><a href="Client.html" title="ZendeskAPI::Client (class)">Client</a></span></tt>)</span>
962
+
963
+
964
+
965
+ &mdash;
966
+ <div class='inline'>
967
+ <p>The <span class='object_link'><a href="Client.html" title="ZendeskAPI::Client (class)">Client</a></span> object to be used</p>
968
+ </div>
969
+
970
+ </li>
971
+
972
+ <li>
973
+
974
+ <span class='name'>options</span>
975
+
976
+
977
+ <span class='type'>(<tt>Hash</tt>)</span>
978
+
979
+
980
+ <em class="default">(defaults to: <tt>{}</tt>)</em>
981
+
982
+
983
+ &mdash;
984
+ <div class='inline'>
985
+ <p>Any additional GET parameters to be added</p>
986
+ </div>
987
+
988
+ </li>
989
+
990
+ </ul>
991
+
992
+ <p class="tag_title">Raises:</p>
993
+ <ul class="raise">
994
+
995
+ <li>
996
+
997
+
998
+ <span class='type'>(<tt>ArgumentError</tt>)</span>
999
+
1000
+
1001
+
1002
+ </li>
1003
+
1004
+ </ul>
1005
+
1006
+ </div>
1007
+ </div>
1008
+
1009
+ </div>
1010
+
1011
+ <div id="instance_method_details" class="method_details_list">
1012
+ <h2>Instance Method Details</h2>
1013
+
1014
+
1015
+ <div class="method_details first">
1016
+ <h3 class="signature first" id="clear_associations-instance_method">
1017
+
1018
+ - (<tt>Object</tt>) <strong>clear_associations</strong>
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+ <span class="not_defined_here">
1025
+ Originally defined in module
1026
+ <span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
1027
+ </span>
1028
+
1029
+ </h3><div class="docstring">
1030
+ <div class="discussion">
1031
+
1032
+ <p>Removes all cached associations</p>
1033
+
1034
+
1035
+ </div>
1036
+ </div>
1037
+ <div class="tags">
1038
+
1039
+
1040
+ </div>
1041
+ </div>
1042
+
1043
+ <div class="method_details ">
1044
+ <h3 class="signature " id="destroy-instance_method">
1045
+
1046
+ - (<tt>Object</tt>) <strong>destroy</strong>
1047
+
1048
+
1049
+
1050
+
1051
+
1052
+ <span class="not_defined_here">
1053
+ Originally defined in module
1054
+ <span class='object_link'><a href="Destroy.html#destroy-instance_method" title="ZendeskAPI::Destroy#destroy (method)">Destroy</a></span>
1055
+ </span>
1056
+
1057
+ </h3>
1058
+ </div>
1059
+
1060
+ <div class="method_details ">
1061
+ <h3 class="signature " id="destroy!-instance_method">
1062
+
1063
+ - (<tt>Boolean</tt>) <strong>destroy!</strong>
1064
+
1065
+
1066
+
1067
+
1068
+
1069
+ <span class="not_defined_here">
1070
+ Originally defined in module
1071
+ <span class='object_link'><a href="Destroy.html#destroy%21-instance_method" title="ZendeskAPI::Destroy#destroy! (method)">Destroy</a></span>
1072
+ </span>
1073
+
1074
+ </h3><div class="docstring">
1075
+ <div class="discussion">
1076
+
1077
+ <p>If this resource hasn't already been deleted, then do so.</p>
1078
+
1079
+
1080
+ </div>
1081
+ </div>
1082
+ <div class="tags">
1083
+
1084
+ <p class="tag_title">Returns:</p>
1085
+ <ul class="return">
1086
+
1087
+ <li>
1088
+
1089
+
1090
+ <span class='type'>(<tt>Boolean</tt>)</span>
1091
+
1092
+
1093
+
1094
+ &mdash;
1095
+ <div class='inline'>
1096
+ <p>Successful?</p>
1097
+ </div>
1098
+
1099
+ </li>
1100
+
1101
+ </ul>
1102
+
1103
+ </div>
1104
+ </div>
1105
+
1106
+ <div class="method_details ">
1107
+ <h3 class="signature " id="destroyed?-instance_method">
1108
+
1109
+ - (<tt>Boolean</tt>) <strong>destroyed?</strong>
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+ <span class="not_defined_here">
1116
+ Originally defined in module
1117
+ <span class='object_link'><a href="Destroy.html#destroyed%3F-instance_method" title="ZendeskAPI::Destroy#destroyed? (method)">Destroy</a></span>
1118
+ </span>
1119
+
1120
+ </h3><div class="docstring">
1121
+ <div class="discussion">
1122
+
1123
+ <p>Has this object been deleted?</p>
1124
+
1125
+
1126
+ </div>
1127
+ </div>
1128
+ <div class="tags">
1129
+
1130
+ <p class="tag_title">Returns:</p>
1131
+ <ul class="return">
1132
+
1133
+ <li>
1134
+
1135
+
1136
+ <span class='type'>(<tt>Boolean</tt>)</span>
1137
+
1138
+
1139
+
1140
+ </li>
1141
+
1142
+ </ul>
1143
+
1144
+ </div>
1145
+ </div>
1146
+
1147
+ <div class="method_details ">
1148
+ <h3 class="signature " id="save-instance_method">
1149
+
1150
+ - (<tt>Object</tt>) <strong>save</strong>(options = {})
1151
+
1152
+
1153
+
1154
+
1155
+
1156
+ <span class="not_defined_here">
1157
+ Originally defined in module
1158
+ <span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">Save</a></span>
1159
+ </span>
1160
+
1161
+ </h3><div class="docstring">
1162
+ <div class="discussion">
1163
+
1164
+ <p>Saves, returning false if it fails and attaching the errors</p>
1165
+
1166
+
1167
+ </div>
1168
+ </div>
1169
+ <div class="tags">
1170
+
1171
+
1172
+ </div>
1173
+ </div>
1174
+
1175
+ <div class="method_details ">
1176
+ <h3 class="signature " id="save!-instance_method">
1177
+
1178
+ - (<tt>Boolean</tt>) <strong>save!</strong>(options = {})
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+ <span class="not_defined_here">
1185
+ Originally defined in module
1186
+ <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">Save</a></span>
1187
+ </span>
1188
+
1189
+ </h3><div class="docstring">
1190
+ <div class="discussion">
1191
+
1192
+ <p>If this resource hasn't been deleted, then create or save it. Executes a
1193
+ 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
1194
+ attributes on success.</p>
1195
+
1196
+
1197
+ </div>
1198
+ </div>
1199
+ <div class="tags">
1200
+
1201
+ <p class="tag_title">Returns:</p>
1202
+ <ul class="return">
1203
+
1204
+ <li>
1205
+
1206
+
1207
+ <span class='type'>(<tt>Boolean</tt>)</span>
1208
+
1209
+
1210
+
1211
+ &mdash;
1212
+ <div class='inline'>
1213
+ <p>Success?</p>
1214
+ </div>
1215
+
1216
+ </li>
1217
+
1218
+ </ul>
1219
+
1220
+ </div>
1221
+ </div>
1222
+
1223
+ <div class="method_details ">
1224
+ <h3 class="signature " id="save_associations-instance_method">
1225
+
1226
+ - (<tt>Object</tt>) <strong>save_associations</strong>
1227
+
1228
+
1229
+
1230
+
1231
+
1232
+ <span class="not_defined_here">
1233
+ Originally defined in module
1234
+ <span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
1235
+ </span>
1236
+
1237
+ </h3><div class="docstring">
1238
+ <div class="discussion">
1239
+
1240
+ <p>Saves associations Takes into account inlining, collections, and id setting
1241
+ on the parent resource.</p>
1242
+
1243
+
1244
+ </div>
1245
+ </div>
1246
+ <div class="tags">
1247
+
1248
+
1249
+ </div>
1250
+ </div>
1251
+
1252
+ </div>
248
1253
 
249
1254
  </div>
250
1255
 
251
1256
  <div id="footer">
252
- Generated on Mon Feb 11 17:45:36 2013 by
1257
+ Generated on Wed May 15 18:59:29 2013 by
253
1258
  <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
254
- 0.8.4.1 (ruby-1.9.3).
1259
+ 0.8.5.2 (ruby-1.9.3).
255
1260
  </div>
256
1261
 
257
1262
  </body>