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.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/.yardopts +0 -2
- data/Gemfile +4 -30
- data/Gemfile.lock +38 -80
- data/Rakefile +0 -5
- data/lib/zendesk_api/actions.rb +3 -2
- data/lib/zendesk_api/client.rb +4 -1
- data/lib/zendesk_api/collection.rb +4 -0
- data/lib/zendesk_api/configuration.rb +2 -0
- data/lib/zendesk_api/middleware/request/upload.rb +1 -1
- data/lib/zendesk_api/middleware/request/url_based_access_token.rb +26 -0
- data/lib/zendesk_api/resources.rb +25 -1
- data/lib/zendesk_api/version.rb +1 -1
- data/spec/core/client_spec.rb +1 -0
- data/spec/core/middleware/request/upload_spec.rb +26 -27
- data/spec/core/spec_helper.rb +27 -1
- data/spec/live/user_spec.rb +4 -2
- data/spec/live/user_view_spec.rb +16 -0
- data/spec/live/voice/phone_number_spec.rb +2 -0
- data/zendesk_api.gemspec +1 -4
- metadata +9 -191
- data/Procfile +0 -1
- data/bin/zendesk +0 -27
- data/config.ru +0 -6
- data/config/mongoid.yml +0 -81
- data/config/newrelic.yml +0 -255
- data/lib/zendesk_api/console/base.rb +0 -12
- data/lib/zendesk_api/console/console.rb +0 -144
- data/lib/zendesk_api/console/extensions.rb +0 -202
- data/lib/zendesk_api/console/options.rb +0 -41
- data/lib/zendesk_api/server/base.rb +0 -123
- data/lib/zendesk_api/server/docs/account_settings.md +0 -191
- data/lib/zendesk_api/server/docs/activity_stream.md +0 -121
- data/lib/zendesk_api/server/docs/attachments.md +0 -142
- data/lib/zendesk_api/server/docs/autocomplete.md +0 -29
- data/lib/zendesk_api/server/docs/automations.md +0 -256
- data/lib/zendesk_api/server/docs/categories.md +0 -193
- data/lib/zendesk_api/server/docs/changes_roadmap.md +0 -286
- data/lib/zendesk_api/server/docs/custom_roles.md +0 -88
- data/lib/zendesk_api/server/docs/forum_subscriptions.md +0 -139
- data/lib/zendesk_api/server/docs/forums.md +0 -229
- data/lib/zendesk_api/server/docs/group_memberships.md +0 -229
- data/lib/zendesk_api/server/docs/groups.md +0 -212
- data/lib/zendesk_api/server/docs/introduction.md +0 -165
- data/lib/zendesk_api/server/docs/job_statuses.md +0 -86
- data/lib/zendesk_api/server/docs/locales.md +0 -124
- data/lib/zendesk_api/server/docs/macros.md +0 -289
- data/lib/zendesk_api/server/docs/organizations.md +0 -271
- data/lib/zendesk_api/server/docs/problems.md +0 -117
- data/lib/zendesk_api/server/docs/requests.md +0 -274
- data/lib/zendesk_api/server/docs/satisfaction_ratings.md +0 -172
- data/lib/zendesk_api/server/docs/search.md +0 -106
- data/lib/zendesk_api/server/docs/sharing_agreements.md +0 -57
- data/lib/zendesk_api/server/docs/side_loading.md +0 -125
- data/lib/zendesk_api/server/docs/suspended_tickets.md +0 -184
- data/lib/zendesk_api/server/docs/tags.md +0 -145
- data/lib/zendesk_api/server/docs/ticket_audits.md +0 -688
- data/lib/zendesk_api/server/docs/ticket_export.md +0 -121
- data/lib/zendesk_api/server/docs/ticket_fields.md +0 -277
- data/lib/zendesk_api/server/docs/ticket_import.md +0 -65
- data/lib/zendesk_api/server/docs/ticket_metrics.md +0 -125
- data/lib/zendesk_api/server/docs/tickets.md +0 -696
- data/lib/zendesk_api/server/docs/topic_comments.md +0 -221
- data/lib/zendesk_api/server/docs/topic_subscriptions.md +0 -140
- data/lib/zendesk_api/server/docs/topic_votes.md +0 -153
- data/lib/zendesk_api/server/docs/topics.md +0 -335
- data/lib/zendesk_api/server/docs/triggers.md +0 -264
- data/lib/zendesk_api/server/docs/user_identities.md +0 -279
- data/lib/zendesk_api/server/docs/users.md +0 -455
- data/lib/zendesk_api/server/docs/views.md +0 -644
- data/lib/zendesk_api/server/helper.rb +0 -110
- data/lib/zendesk_api/server/html_renderer.rb +0 -98
- data/lib/zendesk_api/server/models/user_request.rb +0 -16
- data/lib/zendesk_api/server/models/zlib_json.rb +0 -13
- data/lib/zendesk_api/server/public/config.rb +0 -26
- data/lib/zendesk_api/server/public/doc/ZendeskAPI.html +0 -131
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ability.html +0 -592
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Activity.html +0 -979
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Attachment.html +0 -658
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Automation.html +0 -805
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Bookmark.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMData.html +0 -592
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CRMDataStatus.html +0 -592
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Category.html +0 -825
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Client.html +0 -1226
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Collection.html +0 -2606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Configuration.html +0 -1302
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create.html +0 -392
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Create/ClassMethods.html +0 -283
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CreateResource.html +0 -878
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/CustomRole.html +0 -592
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Data.html +0 -1406
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DataResource.html +0 -823
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/DeleteResource.html +0 -815
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy.html +0 -357
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Destroy/ClassMethod.html +0 -295
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error.html +0 -115
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/ClientError.html +0 -127
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/NetworkError.html +0 -127
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordInvalid.html +0 -371
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Error/RecordNotFound.html +0 -127
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Forum.html +0 -1559
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ForumSubscription.html +0 -979
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Group.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/GroupMembership.html +0 -979
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/JobStatus.html +0 -598
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Locale.html +0 -598
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Macro.html +0 -805
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/MobileDevice.html +0 -724
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthClient.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OAuthToken.html +0 -810
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Organization.html +0 -1379
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/OrganizationField.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Read.html +0 -341
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ReadResource.html +0 -797
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request.html +0 -1189
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Request/Comment.html +0 -993
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Resource.html +0 -1263
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Role.html +0 -592
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Rule.html +0 -610
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/RuleExecution.html +0 -679
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SatisfactionRating.html +0 -1327
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Save.html +0 -494
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search.html +0 -411
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Search/Result.html +0 -462
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Setting.html +0 -742
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SharingAgreement.html +0 -598
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SingularResource.html +0 -610
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/SuspendedTicket.html +0 -911
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket.html +0 -3094
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Audit.html +0 -787
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Comment.html +0 -1039
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Ticket/Tag.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketField.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TicketMetric.html +0 -782
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic.html +0 -1449
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicComment.html +0 -1122
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Topic/TopicVote.html +0 -983
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicComment.html +0 -1039
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/TopicSubscription.html +0 -979
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Trigger.html +0 -805
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update.html +0 -392
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Update/ClassMethod.html +0 -287
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UpdateResource.html +0 -878
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Upload.html +0 -1176
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User.html +0 -3974
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/Identity.html +0 -926
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/User/TopicComment.html +0 -656
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/UserField.html +0 -606
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/Verbs.html +0 -332
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/View.html +0 -1650
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewCount.html +0 -592
- data/lib/zendesk_api/server/public/doc/ZendeskAPI/ViewRow.html +0 -1744
- data/lib/zendesk_api/server/public/doc/_index.html +0 -799
- data/lib/zendesk_api/server/public/doc/class_list.html +0 -53
- data/lib/zendesk_api/server/public/doc/css/common.css +0 -1
- data/lib/zendesk_api/server/public/doc/css/full_list.css +0 -57
- data/lib/zendesk_api/server/public/doc/css/style.css +0 -338
- data/lib/zendesk_api/server/public/doc/file.Readme.html +0 -137
- data/lib/zendesk_api/server/public/doc/file_list.html +0 -55
- data/lib/zendesk_api/server/public/doc/frames.html +0 -28
- data/lib/zendesk_api/server/public/doc/index.html +0 -137
- data/lib/zendesk_api/server/public/doc/js/app.js +0 -214
- data/lib/zendesk_api/server/public/doc/js/full_list.js +0 -173
- data/lib/zendesk_api/server/public/doc/js/jquery.js +0 -4
- data/lib/zendesk_api/server/public/doc/method_list.html +0 -2332
- data/lib/zendesk_api/server/public/doc/top-level-namespace.html +0 -112
- data/lib/zendesk_api/server/public/favicon.ico +0 -0
- data/lib/zendesk_api/server/public/images/glyphicons-halflings-white.png +0 -0
- data/lib/zendesk_api/server/public/images/glyphicons-halflings.png +0 -0
- data/lib/zendesk_api/server/public/images/spinner.gif +0 -0
- data/lib/zendesk_api/server/public/images/zendesk_developers_bg.png +0 -0
- data/lib/zendesk_api/server/public/images/zendesk_developers_header.png +0 -0
- data/lib/zendesk_api/server/public/javascripts/application.js +0 -186
- data/lib/zendesk_api/server/public/javascripts/bootstrap-alert.js +0 -90
- data/lib/zendesk_api/server/public/javascripts/bootstrap-button.js +0 -96
- data/lib/zendesk_api/server/public/javascripts/bootstrap-carousel.js +0 -169
- data/lib/zendesk_api/server/public/javascripts/bootstrap-collapse.js +0 -157
- data/lib/zendesk_api/server/public/javascripts/bootstrap-dropdown.js +0 -100
- data/lib/zendesk_api/server/public/javascripts/bootstrap-modal.js +0 -218
- data/lib/zendesk_api/server/public/javascripts/bootstrap-popover.js +0 -98
- data/lib/zendesk_api/server/public/javascripts/bootstrap-scrollspy.js +0 -151
- data/lib/zendesk_api/server/public/javascripts/bootstrap-tab.js +0 -135
- data/lib/zendesk_api/server/public/javascripts/bootstrap-tooltip.js +0 -275
- data/lib/zendesk_api/server/public/javascripts/bootstrap-transition.js +0 -61
- data/lib/zendesk_api/server/public/javascripts/bootstrap-typeahead.js +0 -285
- data/lib/zendesk_api/server/public/sass/screen.scss +0 -102
- data/lib/zendesk_api/server/public/sass/styles.scss +0 -5
- data/lib/zendesk_api/server/public/stylesheets/developer.screen.css +0 -836
- data/lib/zendesk_api/server/public/stylesheets/screen.css +0 -129
- data/lib/zendesk_api/server/public/stylesheets/styles.css +0 -6208
- data/lib/zendesk_api/server/templates/footer.haml +0 -13
- data/lib/zendesk_api/server/templates/header.haml +0 -20
- data/lib/zendesk_api/server/templates/index.haml +0 -68
- data/lib/zendesk_api/server/templates/layout.haml +0 -44
- data/lib/zendesk_api/server/templates/param.haml +0 -4
- data/lib/zendesk_api/server/templates/search.haml +0 -23
- data/lib/zendesk_api/server/templates/sidebar.haml +0 -7
- data/spec/server/app_spec.rb +0 -140
- data/spec/server/helper_spec.rb +0 -97
- data/spec/server/html_renderer_spec.rb +0 -130
- data/spec/server/spec_helper.rb +0 -43
@@ -1,1263 +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::Resource
|
8
|
-
|
9
|
-
— 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 (R)</a> »
|
35
|
-
<span class='title'><span class='object_link'><a href="../ZendeskAPI.html" title="ZendeskAPI (module)">ZendeskAPI</a></span></span>
|
36
|
-
»
|
37
|
-
<span class="title">Resource</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::Resource
|
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="DataResource.html" title="ZendeskAPI::DataResource (class)">DataResource</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"><span class='object_link'><a href="DataResource.html" title="ZendeskAPI::DataResource (class)">DataResource</a></span></li>
|
84
|
-
|
85
|
-
<li class="next">ZendeskAPI::Resource</li>
|
86
|
-
|
87
|
-
</ul>
|
88
|
-
<a href="#" class="inheritanceTree">show all</a>
|
89
|
-
|
90
|
-
</dd>
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<dt class="r2">Extended by:</dt>
|
96
|
-
<dd class="r2"><span class='object_link'><a href="Read.html" title="ZendeskAPI::Read (module)">Read</a></span></dd>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
<dt class="r1">Includes:</dt>
|
102
|
-
<dd class="r1"><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>, <span class='object_link'><a href="Update.html" title="ZendeskAPI::Update (module)">Update</a></span></dd>
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<dt class="r2 last">Defined in:</dt>
|
109
|
-
<dd class="r2 last">lib/zendesk_api/resource.rb</dd>
|
110
|
-
|
111
|
-
</dl>
|
112
|
-
<div class="clear"></div>
|
113
|
-
|
114
|
-
<h2>Overview</h2><div class="docstring">
|
115
|
-
<div class="discussion">
|
116
|
-
|
117
|
-
<p>Represents a resource that can CRUD (create, read, update, delete).</p>
|
118
|
-
|
119
|
-
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
<div class="tags">
|
123
|
-
|
124
|
-
|
125
|
-
</div><div id="subclasses">
|
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="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
|
-
</div>
|
129
|
-
|
130
|
-
|
131
|
-
|
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
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
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
|
-
|
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
|
-
|
363
|
-
|
364
|
-
|
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>
|
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
|
-
|
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
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
|
393
|
-
|
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>
|
404
|
-
|
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
|
-
|
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
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
<span class="summary_desc"><div class='inline'>
|
435
|
-
<p>Removes all cached associations.</p>
|
436
|
-
</div></span>
|
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>
|
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>
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
464
|
-
|
465
|
-
</li>
|
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
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
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>
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
<span class="summary_desc"><div class='inline'>
|
520
|
-
<p>Has this object been deleted?.</p>
|
521
|
-
</div></span>
|
522
|
-
|
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
|
-
|
531
|
-
|
532
|
-
|
533
|
-
</span>
|
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>
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
|
545
|
-
|
546
|
-
|
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>
|
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>
|
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>
|
568
|
-
|
569
|
-
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
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>
|
580
|
-
|
581
|
-
</li>
|
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
|
-
|
599
|
-
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
|
604
|
-
|
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>
|
610
|
-
|
611
|
-
</li>
|
612
|
-
|
613
|
-
|
614
|
-
</ul>
|
615
|
-
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
|
628
|
-
|
629
|
-
|
630
|
-
|
631
|
-
|
632
|
-
|
633
|
-
|
634
|
-
|
635
|
-
<div id="constructor_details" class="method_details_list">
|
636
|
-
<h2>Constructor Details</h2>
|
637
|
-
|
638
|
-
<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>
|
639
|
-
|
640
|
-
</div>
|
641
|
-
<div id="method_missing_details" class="method_details_list">
|
642
|
-
<h2>Dynamic Method Handling</h2>
|
643
|
-
<p class="notice super">
|
644
|
-
This class handles dynamic methods through the <tt>method_missing</tt> method
|
645
|
-
|
646
|
-
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>
|
647
|
-
|
648
|
-
</p>
|
649
|
-
|
650
|
-
</div>
|
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
|
-
—
|
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
|
-
—
|
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
|
-
—
|
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
|
-
—
|
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
|
-
—
|
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
|
-
—
|
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
|
-
—
|
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>
|
1253
|
-
|
1254
|
-
</div>
|
1255
|
-
|
1256
|
-
<div id="footer">
|
1257
|
-
Generated on Wed May 15 18:59:29 2013 by
|
1258
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1259
|
-
0.8.5.2 (ruby-1.9.3).
|
1260
|
-
</div>
|
1261
|
-
|
1262
|
-
</body>
|
1263
|
-
</html>
|