zendesk_api 1.3.5 → 1.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (203) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +2 -2
  3. data/.yardopts +0 -2
  4. data/Gemfile +4 -30
  5. data/Gemfile.lock +38 -80
  6. data/Rakefile +0 -5
  7. data/lib/zendesk_api/actions.rb +3 -2
  8. data/lib/zendesk_api/client.rb +4 -1
  9. data/lib/zendesk_api/collection.rb +4 -0
  10. data/lib/zendesk_api/configuration.rb +2 -0
  11. data/lib/zendesk_api/middleware/request/upload.rb +1 -1
  12. data/lib/zendesk_api/middleware/request/url_based_access_token.rb +26 -0
  13. data/lib/zendesk_api/resources.rb +25 -1
  14. data/lib/zendesk_api/version.rb +1 -1
  15. data/spec/core/client_spec.rb +1 -0
  16. data/spec/core/middleware/request/upload_spec.rb +26 -27
  17. data/spec/core/spec_helper.rb +27 -1
  18. data/spec/live/user_spec.rb +4 -2
  19. data/spec/live/user_view_spec.rb +16 -0
  20. data/spec/live/voice/phone_number_spec.rb +2 -0
  21. data/zendesk_api.gemspec +1 -4
  22. metadata +9 -191
  23. data/Procfile +0 -1
  24. data/bin/zendesk +0 -27
  25. data/config.ru +0 -6
  26. data/config/mongoid.yml +0 -81
  27. data/config/newrelic.yml +0 -255
  28. data/lib/zendesk_api/console/base.rb +0 -12
  29. data/lib/zendesk_api/console/console.rb +0 -144
  30. data/lib/zendesk_api/console/extensions.rb +0 -202
  31. data/lib/zendesk_api/console/options.rb +0 -41
  32. data/lib/zendesk_api/server/base.rb +0 -123
  33. data/lib/zendesk_api/server/docs/account_settings.md +0 -191
  34. data/lib/zendesk_api/server/docs/activity_stream.md +0 -121
  35. data/lib/zendesk_api/server/docs/attachments.md +0 -142
  36. data/lib/zendesk_api/server/docs/autocomplete.md +0 -29
  37. data/lib/zendesk_api/server/docs/automations.md +0 -256
  38. data/lib/zendesk_api/server/docs/categories.md +0 -193
  39. data/lib/zendesk_api/server/docs/changes_roadmap.md +0 -286
  40. data/lib/zendesk_api/server/docs/custom_roles.md +0 -88
  41. data/lib/zendesk_api/server/docs/forum_subscriptions.md +0 -139
  42. data/lib/zendesk_api/server/docs/forums.md +0 -229
  43. data/lib/zendesk_api/server/docs/group_memberships.md +0 -229
  44. data/lib/zendesk_api/server/docs/groups.md +0 -212
  45. data/lib/zendesk_api/server/docs/introduction.md +0 -165
  46. data/lib/zendesk_api/server/docs/job_statuses.md +0 -86
  47. data/lib/zendesk_api/server/docs/locales.md +0 -124
  48. data/lib/zendesk_api/server/docs/macros.md +0 -289
  49. data/lib/zendesk_api/server/docs/organizations.md +0 -271
  50. data/lib/zendesk_api/server/docs/problems.md +0 -117
  51. data/lib/zendesk_api/server/docs/requests.md +0 -274
  52. data/lib/zendesk_api/server/docs/satisfaction_ratings.md +0 -172
  53. data/lib/zendesk_api/server/docs/search.md +0 -106
  54. data/lib/zendesk_api/server/docs/sharing_agreements.md +0 -57
  55. data/lib/zendesk_api/server/docs/side_loading.md +0 -125
  56. data/lib/zendesk_api/server/docs/suspended_tickets.md +0 -184
  57. data/lib/zendesk_api/server/docs/tags.md +0 -145
  58. data/lib/zendesk_api/server/docs/ticket_audits.md +0 -688
  59. data/lib/zendesk_api/server/docs/ticket_export.md +0 -121
  60. data/lib/zendesk_api/server/docs/ticket_fields.md +0 -277
  61. data/lib/zendesk_api/server/docs/ticket_import.md +0 -65
  62. data/lib/zendesk_api/server/docs/ticket_metrics.md +0 -125
  63. data/lib/zendesk_api/server/docs/tickets.md +0 -696
  64. data/lib/zendesk_api/server/docs/topic_comments.md +0 -221
  65. data/lib/zendesk_api/server/docs/topic_subscriptions.md +0 -140
  66. data/lib/zendesk_api/server/docs/topic_votes.md +0 -153
  67. data/lib/zendesk_api/server/docs/topics.md +0 -335
  68. data/lib/zendesk_api/server/docs/triggers.md +0 -264
  69. data/lib/zendesk_api/server/docs/user_identities.md +0 -279
  70. data/lib/zendesk_api/server/docs/users.md +0 -455
  71. data/lib/zendesk_api/server/docs/views.md +0 -644
  72. data/lib/zendesk_api/server/helper.rb +0 -110
  73. data/lib/zendesk_api/server/html_renderer.rb +0 -98
  74. data/lib/zendesk_api/server/models/user_request.rb +0 -16
  75. data/lib/zendesk_api/server/models/zlib_json.rb +0 -13
  76. data/lib/zendesk_api/server/public/config.rb +0 -26
  77. data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +0 -131
  78. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +0 -592
  79. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +0 -979
  80. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +0 -658
  81. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +0 -805
  82. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +0 -606
  83. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +0 -592
  84. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +0 -592
  85. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +0 -825
  86. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +0 -1226
  87. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +0 -2606
  88. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +0 -1302
  89. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +0 -392
  90. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +0 -283
  91. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +0 -878
  92. data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +0 -592
  93. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +0 -1406
  94. data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +0 -823
  95. data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +0 -815
  96. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +0 -357
  97. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +0 -295
  98. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error.html +0 -115
  99. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html +0 -127
  100. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/NetworkError.html +0 -127
  101. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html +0 -371
  102. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html +0 -127
  103. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +0 -1559
  104. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +0 -979
  105. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +0 -606
  106. data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +0 -979
  107. data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +0 -598
  108. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +0 -598
  109. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +0 -805
  110. data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +0 -724
  111. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html +0 -606
  112. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html +0 -810
  113. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +0 -1379
  114. data/lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html +0 -606
  115. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +0 -341
  116. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +0 -797
  117. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +0 -1189
  118. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +0 -993
  119. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +0 -1263
  120. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +0 -592
  121. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html +0 -610
  122. data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +0 -679
  123. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +0 -1327
  124. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +0 -494
  125. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +0 -411
  126. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +0 -462
  127. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +0 -742
  128. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +0 -598
  129. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +0 -610
  130. data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +0 -911
  131. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +0 -3094
  132. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +0 -787
  133. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +0 -1039
  134. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +0 -606
  135. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +0 -606
  136. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +0 -782
  137. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +0 -1449
  138. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +0 -1122
  139. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +0 -983
  140. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +0 -1039
  141. data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +0 -979
  142. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +0 -805
  143. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +0 -392
  144. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +0 -287
  145. data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +0 -878
  146. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +0 -1176
  147. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +0 -3974
  148. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +0 -926
  149. data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +0 -656
  150. data/lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html +0 -606
  151. data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +0 -332
  152. data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +0 -1650
  153. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +0 -592
  154. data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +0 -1744
  155. data/lib/zendesk_api/server/public/doc/_index.html +0 -799
  156. data/lib/zendesk_api/server/public/doc/class_list.html +0 -53
  157. data/lib/zendesk_api/server/public/doc/css/common.css +0 -1
  158. data/lib/zendesk_api/server/public/doc/css/full_list.css +0 -57
  159. data/lib/zendesk_api/server/public/doc/css/style.css +0 -338
  160. data/lib/zendesk_api/server/public/doc/file.Readme.html +0 -137
  161. data/lib/zendesk_api/server/public/doc/file_list.html +0 -55
  162. data/lib/zendesk_api/server/public/doc/frames.html +0 -28
  163. data/lib/zendesk_api/server/public/doc/index.html +0 -137
  164. data/lib/zendesk_api/server/public/doc/js/app.js +0 -214
  165. data/lib/zendesk_api/server/public/doc/js/full_list.js +0 -173
  166. data/lib/zendesk_api/server/public/doc/js/jquery.js +0 -4
  167. data/lib/zendesk_api/server/public/doc/method_list.html +0 -2332
  168. data/lib/zendesk_api/server/public/doc/top-level-namespace.html +0 -112
  169. data/lib/zendesk_api/server/public/favicon.ico +0 -0
  170. data/lib/zendesk_api/server/public/images/glyphicons-halflings-white.png +0 -0
  171. data/lib/zendesk_api/server/public/images/glyphicons-halflings.png +0 -0
  172. data/lib/zendesk_api/server/public/images/spinner.gif +0 -0
  173. data/lib/zendesk_api/server/public/images/zendesk_developers_bg.png +0 -0
  174. data/lib/zendesk_api/server/public/images/zendesk_developers_header.png +0 -0
  175. data/lib/zendesk_api/server/public/javascripts/application.js +0 -186
  176. data/lib/zendesk_api/server/public/javascripts/bootstrap-alert.js +0 -90
  177. data/lib/zendesk_api/server/public/javascripts/bootstrap-button.js +0 -96
  178. data/lib/zendesk_api/server/public/javascripts/bootstrap-carousel.js +0 -169
  179. data/lib/zendesk_api/server/public/javascripts/bootstrap-collapse.js +0 -157
  180. data/lib/zendesk_api/server/public/javascripts/bootstrap-dropdown.js +0 -100
  181. data/lib/zendesk_api/server/public/javascripts/bootstrap-modal.js +0 -218
  182. data/lib/zendesk_api/server/public/javascripts/bootstrap-popover.js +0 -98
  183. data/lib/zendesk_api/server/public/javascripts/bootstrap-scrollspy.js +0 -151
  184. data/lib/zendesk_api/server/public/javascripts/bootstrap-tab.js +0 -135
  185. data/lib/zendesk_api/server/public/javascripts/bootstrap-tooltip.js +0 -275
  186. data/lib/zendesk_api/server/public/javascripts/bootstrap-transition.js +0 -61
  187. data/lib/zendesk_api/server/public/javascripts/bootstrap-typeahead.js +0 -285
  188. data/lib/zendesk_api/server/public/sass/screen.scss +0 -102
  189. data/lib/zendesk_api/server/public/sass/styles.scss +0 -5
  190. data/lib/zendesk_api/server/public/stylesheets/developer.screen.css +0 -836
  191. data/lib/zendesk_api/server/public/stylesheets/screen.css +0 -129
  192. data/lib/zendesk_api/server/public/stylesheets/styles.css +0 -6208
  193. data/lib/zendesk_api/server/templates/footer.haml +0 -13
  194. data/lib/zendesk_api/server/templates/header.haml +0 -20
  195. data/lib/zendesk_api/server/templates/index.haml +0 -68
  196. data/lib/zendesk_api/server/templates/layout.haml +0 -44
  197. data/lib/zendesk_api/server/templates/param.haml +0 -4
  198. data/lib/zendesk_api/server/templates/search.haml +0 -23
  199. data/lib/zendesk_api/server/templates/sidebar.haml +0 -7
  200. data/spec/server/app_spec.rb +0 -140
  201. data/spec/server/helper_spec.rb +0 -97
  202. data/spec/server/html_renderer_spec.rb +0 -130
  203. data/spec/server/spec_helper.rb +0 -43
@@ -1,1176 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Class: ZendeskAPI::Upload
8
-
9
- &mdash; Documentation by YARD 0.8.5.2
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '../';
20
- framesUrl = "../frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="../_index.html">Index (U)</a> &raquo;
35
- <span class='title'><span class='object_link'><a href="../ZendeskAPI.html" title="ZendeskAPI (module)">ZendeskAPI</a></span></span>
36
- &raquo;
37
- <span class="title">Upload</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="../class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="../method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="../file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Class: ZendeskAPI::Upload
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
- <dt class="r1">Inherits:</dt>
75
- <dd class="r1">
76
- <span class="inheritName"><span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></span>
77
-
78
- <ul class="fullTree">
79
- <li>Object</li>
80
-
81
- <li class="next"><span class='object_link'><a href="Data.html" title="ZendeskAPI::Data (class)">Data</a></span></li>
82
-
83
- <li class="next">ZendeskAPI::Upload</li>
84
-
85
- </ul>
86
- <a href="#" class="inheritanceTree">show all</a>
87
-
88
- </dd>
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dt class="r2">Includes:</dt>
96
- <dd class="r2"><span class='object_link'><a href="Create.html" title="ZendeskAPI::Create (module)">Create</a></span>, <span class='object_link'><a href="Destroy.html" title="ZendeskAPI::Destroy (module)">Destroy</a></span></dd>
97
-
98
-
99
-
100
-
101
-
102
- <dt class="r1 last">Defined in:</dt>
103
- <dd class="r1 last">lib/zendesk_api/resources.rb</dd>
104
-
105
- </dl>
106
- <div class="clear"></div>
107
-
108
-
109
-
110
-
111
-
112
- <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
113
- <ul class="summary">
114
-
115
- <li class="public ">
116
- <span class="summary_signature">
117
-
118
- <a href="#association-instance_method" title="#association (instance method)">- (ZendeskAPI::Association) <strong>association</strong> </a>
119
-
120
-
121
-
122
- </span>
123
-
124
- <span class="note title not_defined_here">
125
- inherited
126
- from <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
127
- </span>
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
-
138
-
139
-
140
- <span class="summary_desc"><div class='inline'>
141
- <p>The association.</p>
142
- </div></span>
143
-
144
- </li>
145
-
146
-
147
- <li class="public ">
148
- <span class="summary_signature">
149
-
150
- <a href="#attributes-instance_method" title="#attributes (instance method)">- (Hash) <strong>attributes</strong> </a>
151
-
152
-
153
-
154
- (also: #to_param)
155
-
156
- </span>
157
-
158
- <span class="note title not_defined_here">
159
- inherited
160
- from <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
161
- </span>
162
-
163
-
164
-
165
-
166
- <span class="note title readonly">readonly</span>
167
-
168
-
169
-
170
-
171
-
172
-
173
-
174
-
175
-
176
- <span class="summary_desc"><div class='inline'>
177
- <p>The resource's attributes.</p>
178
- </div></span>
179
-
180
- </li>
181
-
182
-
183
- <li class="public ">
184
- <span class="summary_signature">
185
-
186
- <a href="#errors-instance_method" title="#errors (instance method)">- (Array) <strong>errors</strong> </a>
187
-
188
-
189
-
190
- </span>
191
-
192
- <span class="note title not_defined_here">
193
- inherited
194
- from <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
195
- </span>
196
-
197
-
198
-
199
-
200
-
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
- <span class="summary_desc"><div class='inline'>
209
- <p>The last received errors.</p>
210
- </div></span>
211
-
212
- </li>
213
-
214
-
215
- <li class="public ">
216
- <span class="summary_signature">
217
-
218
- <a href="#response-instance_method" title="#response (instance method)">- (Object) <strong>response</strong> </a>
219
-
220
-
221
-
222
- </span>
223
-
224
- <span class="note title not_defined_here">
225
- inherited
226
- from <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
227
- </span>
228
-
229
-
230
-
231
-
232
-
233
-
234
-
235
-
236
-
237
-
238
-
239
-
240
- <span class="summary_desc"><div class='inline'>
241
- <p>Place to dump the last response.</p>
242
- </div></span>
243
-
244
- </li>
245
-
246
-
247
- </ul>
248
-
249
-
250
-
251
-
252
-
253
- <h2>
254
- Instance Method Summary
255
- <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
256
- </h2>
257
-
258
- <ul class="summary">
259
-
260
- <li class="public ">
261
- <span class="summary_signature">
262
-
263
- <a href="#attachments-instance_method" title="#attachments (instance method)">- (ZendeskAPI::Attachment) <strong>attachments</strong>(options = {}) </a>
264
-
265
-
266
-
267
- </span>
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
- <span class="summary_desc"><div class='inline'>
278
- <p>The associated object.</p>
279
- </div></span>
280
-
281
- </li>
282
-
283
-
284
- <li class="public ">
285
- <span class="summary_signature">
286
-
287
- <a href="#attachments%3D-instance_method" title="#attachments= (instance method)">- (ZendeskAPI::Attachment) <strong>attachments=</strong>(value) </a>
288
-
289
-
290
-
291
- </span>
292
-
293
-
294
-
295
-
296
-
297
-
298
-
299
-
300
-
301
- <span class="summary_desc"><div class='inline'>
302
- <p>The associated object.</p>
303
- </div></span>
304
-
305
- </li>
306
-
307
-
308
- <li class="public ">
309
- <span class="summary_signature">
310
-
311
- <a href="#clear_associations-instance_method" title="#clear_associations (instance method)">- (Object) <strong>clear_associations</strong> </a>
312
-
313
-
314
-
315
- </span>
316
-
317
- <span class="note title not_defined_here">
318
- included
319
- from <span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
320
- </span>
321
-
322
-
323
-
324
-
325
-
326
-
327
-
328
-
329
-
330
- <span class="summary_desc"><div class='inline'>
331
- <p>Removes all cached associations.</p>
332
- </div></span>
333
-
334
- </li>
335
-
336
-
337
- <li class="public ">
338
- <span class="summary_signature">
339
-
340
- <a href="#destroy-instance_method" title="#destroy (instance method)">- (Object) <strong>destroy</strong> </a>
341
-
342
-
343
-
344
- </span>
345
-
346
- <span class="note title not_defined_here">
347
- included
348
- from <span class='object_link'><a href="Destroy.html#destroy-instance_method" title="ZendeskAPI::Destroy#destroy (method)">Destroy</a></span>
349
- </span>
350
-
351
-
352
-
353
-
354
-
355
-
356
-
357
-
358
-
359
- <span class="summary_desc"><div class='inline'></div></span>
360
-
361
- </li>
362
-
363
-
364
- <li class="public ">
365
- <span class="summary_signature">
366
-
367
- <a href="#destroy%21-instance_method" title="#destroy! (instance method)">- (Boolean) <strong>destroy!</strong> </a>
368
-
369
-
370
-
371
- </span>
372
-
373
- <span class="note title not_defined_here">
374
- included
375
- from <span class='object_link'><a href="Destroy.html#destroy%21-instance_method" title="ZendeskAPI::Destroy#destroy! (method)">Destroy</a></span>
376
- </span>
377
-
378
-
379
-
380
-
381
-
382
-
383
-
384
-
385
-
386
- <span class="summary_desc"><div class='inline'>
387
- <p>If this resource hasn't already been deleted, then do so.</p>
388
- </div></span>
389
-
390
- </li>
391
-
392
-
393
- <li class="public ">
394
- <span class="summary_signature">
395
-
396
- <a href="#destroyed%3F-instance_method" title="#destroyed? (instance method)">- (Boolean) <strong>destroyed?</strong> </a>
397
-
398
-
399
-
400
- </span>
401
-
402
- <span class="note title not_defined_here">
403
- included
404
- from <span class='object_link'><a href="Destroy.html#destroyed%3F-instance_method" title="ZendeskAPI::Destroy#destroyed? (method)">Destroy</a></span>
405
- </span>
406
-
407
-
408
-
409
-
410
-
411
-
412
-
413
-
414
-
415
- <span class="summary_desc"><div class='inline'>
416
- <p>Has this object been deleted?.</p>
417
- </div></span>
418
-
419
- </li>
420
-
421
-
422
- <li class="public ">
423
- <span class="summary_signature">
424
-
425
- <a href="#id-instance_method" title="#id (instance method)">- (Object) <strong>id</strong> </a>
426
-
427
-
428
-
429
- </span>
430
-
431
-
432
-
433
-
434
-
435
-
436
-
437
-
438
-
439
- <span class="summary_desc"><div class='inline'></div></span>
440
-
441
- </li>
442
-
443
-
444
- <li class="public ">
445
- <span class="summary_signature">
446
-
447
- <a href="#save-instance_method" title="#save (instance method)">- (Object) <strong>save</strong>(options = {}) </a>
448
-
449
-
450
-
451
- </span>
452
-
453
- <span class="note title not_defined_here">
454
- included
455
- from <span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">Save</a></span>
456
- </span>
457
-
458
-
459
-
460
-
461
-
462
-
463
-
464
-
465
-
466
- <span class="summary_desc"><div class='inline'>
467
- <p>Saves, returning false if it fails and attaching the errors.</p>
468
- </div></span>
469
-
470
- </li>
471
-
472
-
473
- <li class="public ">
474
- <span class="summary_signature">
475
-
476
- <a href="#save%21-instance_method" title="#save! (instance method)">- (Boolean) <strong>save!</strong>(options = {}) </a>
477
-
478
-
479
-
480
- </span>
481
-
482
- <span class="note title not_defined_here">
483
- included
484
- from <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">Save</a></span>
485
- </span>
486
-
487
-
488
-
489
-
490
-
491
-
492
-
493
-
494
-
495
- <span class="summary_desc"><div class='inline'>
496
- <p>If this resource hasn't been deleted, then create or save it.</p>
497
- </div></span>
498
-
499
- </li>
500
-
501
-
502
- <li class="public ">
503
- <span class="summary_signature">
504
-
505
- <a href="#save_associations-instance_method" title="#save_associations (instance method)">- (Object) <strong>save_associations</strong> </a>
506
-
507
-
508
-
509
- </span>
510
-
511
- <span class="note title not_defined_here">
512
- included
513
- from <span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
514
- </span>
515
-
516
-
517
-
518
-
519
-
520
-
521
-
522
-
523
-
524
- <span class="summary_desc"><div class='inline'>
525
- <p>Saves associations Takes into account inlining, collections, and id setting
526
- on the parent resource.</p>
527
- </div></span>
528
-
529
- </li>
530
-
531
-
532
- </ul>
533
-
534
-
535
-
536
-
537
-
538
-
539
-
540
-
541
-
542
-
543
-
544
-
545
- <div id="constructor_details" class="method_details_list">
546
- <h2>Constructor Details</h2>
547
-
548
- <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>
549
-
550
- </div>
551
- <div id="method_missing_details" class="method_details_list">
552
- <h2>Dynamic Method Handling</h2>
553
- <p class="notice super">
554
- This class handles dynamic methods through the <tt>method_missing</tt> method
555
-
556
- 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>
557
-
558
- </p>
559
-
560
- </div>
561
-
562
- <div id="instance_attr_details" class="attr_details">
563
- <h2>Instance Attribute Details</h2>
564
-
565
-
566
- <span id="association=-instance_method"></span>
567
- <div class="method_details first">
568
- <h3 class="signature first" id="association-instance_method">
569
-
570
- - (<tt><span class='object_link'>ZendeskAPI::Association</span></tt>) <strong>association</strong>
571
-
572
-
573
-
574
-
575
-
576
- <span class="not_defined_here">
577
- Originally defined in class
578
- <span class='object_link'><a href="Data.html#association-instance_method" title="ZendeskAPI::Data#association (method)">Data</a></span>
579
- </span>
580
-
581
- </h3><div class="docstring">
582
- <div class="discussion">
583
-
584
- <p>The association</p>
585
-
586
-
587
- </div>
588
- </div>
589
- <div class="tags">
590
-
591
- <p class="tag_title">Returns:</p>
592
- <ul class="return">
593
-
594
- <li>
595
-
596
-
597
- <span class='type'>(<tt><span class='object_link'>ZendeskAPI::Association</span></tt>)</span>
598
-
599
-
600
-
601
- &mdash;
602
- <div class='inline'>
603
- <p>The association</p>
604
- </div>
605
-
606
- </li>
607
-
608
- </ul>
609
-
610
- </div>
611
- </div>
612
-
613
-
614
- <span id=""></span>
615
- <div class="method_details ">
616
- <h3 class="signature " id="attributes-instance_method">
617
-
618
- - (<tt>Hash</tt>) <strong>attributes</strong> <span class="extras">(readonly)</span>
619
-
620
-
621
-
622
- <span class="aliases">Also known as:
623
- <span class="names"><span id='to_param-instance_method'>to_param</span></span>
624
- </span>
625
-
626
-
627
-
628
- <span class="not_defined_here">
629
- Originally defined in class
630
- <span class='object_link'><a href="Data.html#attributes-instance_method" title="ZendeskAPI::Data#attributes (method)">Data</a></span>
631
- </span>
632
-
633
- </h3><div class="docstring">
634
- <div class="discussion">
635
-
636
- <p>The resource's attributes</p>
637
-
638
-
639
- </div>
640
- </div>
641
- <div class="tags">
642
-
643
- <p class="tag_title">Returns:</p>
644
- <ul class="return">
645
-
646
- <li>
647
-
648
-
649
- <span class='type'>(<tt>Hash</tt>)</span>
650
-
651
-
652
-
653
- &mdash;
654
- <div class='inline'>
655
- <p>The resource's attributes</p>
656
- </div>
657
-
658
- </li>
659
-
660
- </ul>
661
-
662
- </div>
663
- </div>
664
-
665
-
666
- <span id="errors=-instance_method"></span>
667
- <div class="method_details ">
668
- <h3 class="signature " id="errors-instance_method">
669
-
670
- - (<tt>Array</tt>) <strong>errors</strong>
671
-
672
-
673
-
674
-
675
-
676
- <span class="not_defined_here">
677
- Originally defined in class
678
- <span class='object_link'><a href="Data.html#errors-instance_method" title="ZendeskAPI::Data#errors (method)">Data</a></span>
679
- </span>
680
-
681
- </h3><div class="docstring">
682
- <div class="discussion">
683
-
684
- <p>The last received errors</p>
685
-
686
-
687
- </div>
688
- </div>
689
- <div class="tags">
690
-
691
- <p class="tag_title">Returns:</p>
692
- <ul class="return">
693
-
694
- <li>
695
-
696
-
697
- <span class='type'>(<tt>Array</tt>)</span>
698
-
699
-
700
-
701
- &mdash;
702
- <div class='inline'>
703
- <p>The last received errors</p>
704
- </div>
705
-
706
- </li>
707
-
708
- </ul>
709
-
710
- </div>
711
- </div>
712
-
713
-
714
- <span id="response=-instance_method"></span>
715
- <div class="method_details ">
716
- <h3 class="signature " id="response-instance_method">
717
-
718
- - (<tt>Object</tt>) <strong>response</strong>
719
-
720
-
721
-
722
-
723
-
724
- <span class="not_defined_here">
725
- Originally defined in class
726
- <span class='object_link'><a href="Data.html#response-instance_method" title="ZendeskAPI::Data#response (method)">Data</a></span>
727
- </span>
728
-
729
- </h3><div class="docstring">
730
- <div class="discussion">
731
-
732
- <p>Place to dump the last response</p>
733
-
734
-
735
- </div>
736
- </div>
737
- <div class="tags">
738
-
739
-
740
- </div>
741
- </div>
742
-
743
- </div>
744
-
745
-
746
- <div id="instance_method_details" class="method_details_list">
747
- <h2>Instance Method Details</h2>
748
-
749
-
750
- <div class="method_details first">
751
- <h3 class="signature first" id="attachments-instance_method">
752
-
753
- - (<tt><span class='object_link'><a href="Attachment.html" title="ZendeskAPI::Attachment (class)">ZendeskAPI::Attachment</a></span></tt>) <strong>attachments</strong>(options = {})
754
-
755
-
756
-
757
-
758
-
759
- </h3><div class="docstring">
760
- <div class="discussion">
761
-
762
- <p>The associated object</p>
763
-
764
-
765
- </div>
766
- </div>
767
- <div class="tags">
768
- <p class="tag_title">Parameters:</p>
769
- <ul class="param">
770
-
771
- <li>
772
-
773
- <span class='name'>options</span>
774
-
775
-
776
- <span class='type'>(<tt>Hash</tt>)</span>
777
-
778
-
779
- <em class="default">(defaults to: <tt>{}</tt>)</em>
780
-
781
-
782
- &mdash;
783
- <div class='inline'>
784
- <p>Options to pass to the collection object</p>
785
- </div>
786
-
787
- </li>
788
-
789
- </ul>
790
-
791
- <p class="tag_title">Returns:</p>
792
- <ul class="return">
793
-
794
- <li>
795
-
796
-
797
- <span class='type'>(<tt><span class='object_link'><a href="Attachment.html" title="ZendeskAPI::Attachment (class)">ZendeskAPI::Attachment</a></span></tt>)</span>
798
-
799
-
800
-
801
- &mdash;
802
- <div class='inline'>
803
- <p>The associated object</p>
804
- </div>
805
-
806
- </li>
807
-
808
- </ul>
809
-
810
- </div><table class="source_code">
811
- <tr>
812
- <td>
813
- <pre class="lines">
814
-
815
-
816
- 57</pre>
817
- </td>
818
- <td>
819
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 57</span>
820
-
821
- <span class='id identifier rubyid_has_many'>has_many</span> <span class='const'>Attachment</span></pre>
822
- </td>
823
- </tr>
824
- </table>
825
- </div>
826
-
827
- <div class="method_details ">
828
- <h3 class="signature " id="attachments=-instance_method">
829
-
830
- - (<tt><span class='object_link'><a href="Attachment.html" title="ZendeskAPI::Attachment (class)">ZendeskAPI::Attachment</a></span></tt>) <strong>attachments=</strong>(value)
831
-
832
-
833
-
834
-
835
-
836
- </h3><div class="docstring">
837
- <div class="discussion">
838
-
839
- <p>The associated object</p>
840
-
841
-
842
- </div>
843
- </div>
844
- <div class="tags">
845
- <p class="tag_title">Parameters:</p>
846
- <ul class="param">
847
-
848
- <li>
849
-
850
- <span class='name'>value</span>
851
-
852
-
853
- <span class='type'>(<tt>Hash or <span class='object_link'><a href="Attachment.html" title="ZendeskAPI::Attachment (class)">ZendeskAPI::Attachment</a></span></tt>)</span>
854
-
855
-
856
-
857
- &mdash;
858
- <div class='inline'>
859
- <p>The associated object or its attributes</p>
860
- </div>
861
-
862
- </li>
863
-
864
- </ul>
865
-
866
- <p class="tag_title">Returns:</p>
867
- <ul class="return">
868
-
869
- <li>
870
-
871
-
872
- <span class='type'>(<tt><span class='object_link'><a href="Attachment.html" title="ZendeskAPI::Attachment (class)">ZendeskAPI::Attachment</a></span></tt>)</span>
873
-
874
-
875
-
876
- &mdash;
877
- <div class='inline'>
878
- <p>The associated object</p>
879
- </div>
880
-
881
- </li>
882
-
883
- </ul>
884
-
885
- </div><table class="source_code">
886
- <tr>
887
- <td>
888
- <pre class="lines">
889
-
890
-
891
- 57</pre>
892
- </td>
893
- <td>
894
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 57</span>
895
-
896
- <span class='id identifier rubyid_has_many'>has_many</span> <span class='const'>Attachment</span></pre>
897
- </td>
898
- </tr>
899
- </table>
900
- </div>
901
-
902
- <div class="method_details ">
903
- <h3 class="signature " id="clear_associations-instance_method">
904
-
905
- - (<tt>Object</tt>) <strong>clear_associations</strong>
906
-
907
-
908
-
909
-
910
-
911
- <span class="not_defined_here">
912
- Originally defined in module
913
- <span class='object_link'><a href="Save.html#clear_associations-instance_method" title="ZendeskAPI::Save#clear_associations (method)">Save</a></span>
914
- </span>
915
-
916
- </h3><div class="docstring">
917
- <div class="discussion">
918
-
919
- <p>Removes all cached associations</p>
920
-
921
-
922
- </div>
923
- </div>
924
- <div class="tags">
925
-
926
-
927
- </div>
928
- </div>
929
-
930
- <div class="method_details ">
931
- <h3 class="signature " id="destroy-instance_method">
932
-
933
- - (<tt>Object</tt>) <strong>destroy</strong>
934
-
935
-
936
-
937
-
938
-
939
- <span class="not_defined_here">
940
- Originally defined in module
941
- <span class='object_link'><a href="Destroy.html#destroy-instance_method" title="ZendeskAPI::Destroy#destroy (method)">Destroy</a></span>
942
- </span>
943
-
944
- </h3>
945
- </div>
946
-
947
- <div class="method_details ">
948
- <h3 class="signature " id="destroy!-instance_method">
949
-
950
- - (<tt>Boolean</tt>) <strong>destroy!</strong>
951
-
952
-
953
-
954
-
955
-
956
- <span class="not_defined_here">
957
- Originally defined in module
958
- <span class='object_link'><a href="Destroy.html#destroy%21-instance_method" title="ZendeskAPI::Destroy#destroy! (method)">Destroy</a></span>
959
- </span>
960
-
961
- </h3><div class="docstring">
962
- <div class="discussion">
963
-
964
- <p>If this resource hasn't already been deleted, then do so.</p>
965
-
966
-
967
- </div>
968
- </div>
969
- <div class="tags">
970
-
971
- <p class="tag_title">Returns:</p>
972
- <ul class="return">
973
-
974
- <li>
975
-
976
-
977
- <span class='type'>(<tt>Boolean</tt>)</span>
978
-
979
-
980
-
981
- &mdash;
982
- <div class='inline'>
983
- <p>Successful?</p>
984
- </div>
985
-
986
- </li>
987
-
988
- </ul>
989
-
990
- </div>
991
- </div>
992
-
993
- <div class="method_details ">
994
- <h3 class="signature " id="destroyed?-instance_method">
995
-
996
- - (<tt>Boolean</tt>) <strong>destroyed?</strong>
997
-
998
-
999
-
1000
-
1001
-
1002
- <span class="not_defined_here">
1003
- Originally defined in module
1004
- <span class='object_link'><a href="Destroy.html#destroyed%3F-instance_method" title="ZendeskAPI::Destroy#destroyed? (method)">Destroy</a></span>
1005
- </span>
1006
-
1007
- </h3><div class="docstring">
1008
- <div class="discussion">
1009
-
1010
- <p>Has this object been deleted?</p>
1011
-
1012
-
1013
- </div>
1014
- </div>
1015
- <div class="tags">
1016
-
1017
- <p class="tag_title">Returns:</p>
1018
- <ul class="return">
1019
-
1020
- <li>
1021
-
1022
-
1023
- <span class='type'>(<tt>Boolean</tt>)</span>
1024
-
1025
-
1026
-
1027
- </li>
1028
-
1029
- </ul>
1030
-
1031
- </div>
1032
- </div>
1033
-
1034
- <div class="method_details ">
1035
- <h3 class="signature " id="id-instance_method">
1036
-
1037
- - (<tt>Object</tt>) <strong>id</strong>
1038
-
1039
-
1040
-
1041
-
1042
-
1043
- </h3><table class="source_code">
1044
- <tr>
1045
- <td>
1046
- <pre class="lines">
1047
-
1048
-
1049
- 53</pre>
1050
- </td>
1051
- <td>
1052
- <pre class="code"><span class="info file"># File 'lib/zendesk_api/resources.rb', line 53</span>
1053
-
1054
- <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span><span class='semicolon'>;</span> <span class='id identifier rubyid_token'>token</span><span class='semicolon'>;</span> <span class='kw'>end</span></pre>
1055
- </td>
1056
- </tr>
1057
- </table>
1058
- </div>
1059
-
1060
- <div class="method_details ">
1061
- <h3 class="signature " id="save-instance_method">
1062
-
1063
- - (<tt>Object</tt>) <strong>save</strong>(options = {})
1064
-
1065
-
1066
-
1067
-
1068
-
1069
- <span class="not_defined_here">
1070
- Originally defined in module
1071
- <span class='object_link'><a href="Save.html#save-instance_method" title="ZendeskAPI::Save#save (method)">Save</a></span>
1072
- </span>
1073
-
1074
- </h3><div class="docstring">
1075
- <div class="discussion">
1076
-
1077
- <p>Saves, returning false if it fails and attaching the errors</p>
1078
-
1079
-
1080
- </div>
1081
- </div>
1082
- <div class="tags">
1083
-
1084
-
1085
- </div>
1086
- </div>
1087
-
1088
- <div class="method_details ">
1089
- <h3 class="signature " id="save!-instance_method">
1090
-
1091
- - (<tt>Boolean</tt>) <strong>save!</strong>(options = {})
1092
-
1093
-
1094
-
1095
-
1096
-
1097
- <span class="not_defined_here">
1098
- Originally defined in module
1099
- <span class='object_link'><a href="Save.html#save%21-instance_method" title="ZendeskAPI::Save#save! (method)">Save</a></span>
1100
- </span>
1101
-
1102
- </h3><div class="docstring">
1103
- <div class="discussion">
1104
-
1105
- <p>If this resource hasn't been deleted, then create or save it. Executes a
1106
- 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
1107
- attributes on success.</p>
1108
-
1109
-
1110
- </div>
1111
- </div>
1112
- <div class="tags">
1113
-
1114
- <p class="tag_title">Returns:</p>
1115
- <ul class="return">
1116
-
1117
- <li>
1118
-
1119
-
1120
- <span class='type'>(<tt>Boolean</tt>)</span>
1121
-
1122
-
1123
-
1124
- &mdash;
1125
- <div class='inline'>
1126
- <p>Success?</p>
1127
- </div>
1128
-
1129
- </li>
1130
-
1131
- </ul>
1132
-
1133
- </div>
1134
- </div>
1135
-
1136
- <div class="method_details ">
1137
- <h3 class="signature " id="save_associations-instance_method">
1138
-
1139
- - (<tt>Object</tt>) <strong>save_associations</strong>
1140
-
1141
-
1142
-
1143
-
1144
-
1145
- <span class="not_defined_here">
1146
- Originally defined in module
1147
- <span class='object_link'><a href="Save.html#save_associations-instance_method" title="ZendeskAPI::Save#save_associations (method)">Save</a></span>
1148
- </span>
1149
-
1150
- </h3><div class="docstring">
1151
- <div class="discussion">
1152
-
1153
- <p>Saves associations Takes into account inlining, collections, and id setting
1154
- on the parent resource.</p>
1155
-
1156
-
1157
- </div>
1158
- </div>
1159
- <div class="tags">
1160
-
1161
-
1162
- </div>
1163
- </div>
1164
-
1165
- </div>
1166
-
1167
- </div>
1168
-
1169
- <div id="footer">
1170
- Generated on Wed May 15 18:59:32 2013 by
1171
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1172
- 0.8.5.2 (ruby-1.9.3).
1173
- </div>
1174
-
1175
- </body>
1176
- </html>