box-api 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.md +2 -0
- data/box-api.gemspec +1 -1
- data/doc/Box.html +1 -1
- data/doc/Box/Account.html +225 -25
- data/doc/Box/Api.html +374 -8
- data/doc/Box/Api/AccountExceeded.html +1 -1
- data/doc/Box/Api/EmailInvalid.html +1 -1
- data/doc/Box/Api/EmailTaken.html +1 -1
- data/doc/Box/Api/ErrorStatus.html +1 -1
- data/doc/Box/Api/Exception.html +2 -2
- data/doc/Box/Api/Generic.html +1 -1
- data/doc/Box/Api/InvalidFolder.html +1 -1
- data/doc/Box/Api/InvalidInput.html +1 -1
- data/doc/Box/Api/InvalidName.html +1 -1
- data/doc/Box/Api/NameTaken.html +1 -1
- data/doc/Box/Api/NoAccess.html +1 -1
- data/doc/Box/Api/NoParent.html +1 -1
- data/doc/Box/Api/NotAuthorized.html +1 -1
- data/doc/Box/Api/NotShared.html +141 -0
- data/doc/Box/Api/Restricted.html +1 -1
- data/doc/Box/Api/SizeExceeded.html +1 -1
- data/doc/Box/Api/Unknown.html +1 -1
- data/doc/Box/Api/UnknownResponse.html +1 -1
- data/doc/Box/Api/UploadFailed.html +1 -1
- data/doc/Box/Comment.html +1 -1
- data/doc/Box/File.html +24 -6
- data/doc/Box/Folder.html +2 -2
- data/doc/Box/Item.html +275 -1
- data/doc/_index.html +8 -1
- data/doc/class_list.html +1 -1
- data/doc/file.README.html +1 -1
- data/doc/index.html +1 -1
- data/doc/method_list.html +116 -52
- data/doc/top-level-namespace.html +1 -1
- data/lib/box/account.rb +33 -1
- data/lib/box/api.rb +30 -0
- data/lib/box/api/exceptions.rb +12 -0
- data/lib/box/file.rb +7 -1
- data/lib/box/item.rb +30 -2
- metadata +13 -12
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -132,7 +132,7 @@
|
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div id="footer">
|
135
|
-
Generated on
|
135
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
136
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
137
|
0.7.3 (ruby-1.9.3).
|
138
138
|
</div>
|
data/doc/Box/Api/EmailTaken.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
data/doc/Box/Api/Exception.html
CHANGED
@@ -96,7 +96,7 @@
|
|
96
96
|
|
97
97
|
<div id="subclasses">
|
98
98
|
<h2>Direct Known Subclasses</h2>
|
99
|
-
<p class="children"><span class='object_link'><a href="AccountExceeded.html" title="Box::Api::AccountExceeded (class)">AccountExceeded</a></span>, <span class='object_link'><a href="EmailInvalid.html" title="Box::Api::EmailInvalid (class)">EmailInvalid</a></span>, <span class='object_link'><a href="EmailTaken.html" title="Box::Api::EmailTaken (class)">EmailTaken</a></span>, <span class='object_link'><a href="ErrorStatus.html" title="Box::Api::ErrorStatus (class)">ErrorStatus</a></span>, <span class='object_link'><a href="Generic.html" title="Box::Api::Generic (class)">Generic</a></span>, <span class='object_link'><a href="InvalidFolder.html" title="Box::Api::InvalidFolder (class)">InvalidFolder</a></span>, <span class='object_link'><a href="InvalidInput.html" title="Box::Api::InvalidInput (class)">InvalidInput</a></span>, <span class='object_link'><a href="InvalidName.html" title="Box::Api::InvalidName (class)">InvalidName</a></span>, <span class='object_link'><a href="NameTaken.html" title="Box::Api::NameTaken (class)">NameTaken</a></span>, <span class='object_link'><a href="NoAccess.html" title="Box::Api::NoAccess (class)">NoAccess</a></span>, <span class='object_link'><a href="NoParent.html" title="Box::Api::NoParent (class)">NoParent</a></span>, <span class='object_link'><a href="NotAuthorized.html" title="Box::Api::NotAuthorized (class)">NotAuthorized</a></span>, <span class='object_link'><a href="Restricted.html" title="Box::Api::Restricted (class)">Restricted</a></span>, <span class='object_link'><a href="SizeExceeded.html" title="Box::Api::SizeExceeded (class)">SizeExceeded</a></span>, <span class='object_link'><a href="Unknown.html" title="Box::Api::Unknown (class)">Unknown</a></span>, <span class='object_link'><a href="UnknownResponse.html" title="Box::Api::UnknownResponse (class)">UnknownResponse</a></span>, <span class='object_link'><a href="UploadFailed.html" title="Box::Api::UploadFailed (class)">UploadFailed</a></span></p>
|
99
|
+
<p class="children"><span class='object_link'><a href="AccountExceeded.html" title="Box::Api::AccountExceeded (class)">AccountExceeded</a></span>, <span class='object_link'><a href="EmailInvalid.html" title="Box::Api::EmailInvalid (class)">EmailInvalid</a></span>, <span class='object_link'><a href="EmailTaken.html" title="Box::Api::EmailTaken (class)">EmailTaken</a></span>, <span class='object_link'><a href="ErrorStatus.html" title="Box::Api::ErrorStatus (class)">ErrorStatus</a></span>, <span class='object_link'><a href="Generic.html" title="Box::Api::Generic (class)">Generic</a></span>, <span class='object_link'><a href="InvalidFolder.html" title="Box::Api::InvalidFolder (class)">InvalidFolder</a></span>, <span class='object_link'><a href="InvalidInput.html" title="Box::Api::InvalidInput (class)">InvalidInput</a></span>, <span class='object_link'><a href="InvalidName.html" title="Box::Api::InvalidName (class)">InvalidName</a></span>, <span class='object_link'><a href="NameTaken.html" title="Box::Api::NameTaken (class)">NameTaken</a></span>, <span class='object_link'><a href="NoAccess.html" title="Box::Api::NoAccess (class)">NoAccess</a></span>, <span class='object_link'><a href="NoParent.html" title="Box::Api::NoParent (class)">NoParent</a></span>, <span class='object_link'><a href="NotAuthorized.html" title="Box::Api::NotAuthorized (class)">NotAuthorized</a></span>, <span class='object_link'><a href="NotShared.html" title="Box::Api::NotShared (class)">NotShared</a></span>, <span class='object_link'><a href="Restricted.html" title="Box::Api::Restricted (class)">Restricted</a></span>, <span class='object_link'><a href="SizeExceeded.html" title="Box::Api::SizeExceeded (class)">SizeExceeded</a></span>, <span class='object_link'><a href="Unknown.html" title="Box::Api::Unknown (class)">Unknown</a></span>, <span class='object_link'><a href="UnknownResponse.html" title="Box::Api::UnknownResponse (class)">UnknownResponse</a></span>, <span class='object_link'><a href="UploadFailed.html" title="Box::Api::UploadFailed (class)">UploadFailed</a></span></p>
|
100
100
|
</div>
|
101
101
|
|
102
102
|
|
@@ -111,7 +111,7 @@
|
|
111
111
|
</div>
|
112
112
|
|
113
113
|
<div id="footer">
|
114
|
-
Generated on
|
114
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
115
115
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
116
116
|
0.7.3 (ruby-1.9.3).
|
117
117
|
</div>
|
data/doc/Box/Api/Generic.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -132,7 +132,7 @@
|
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div id="footer">
|
135
|
-
Generated on
|
135
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
136
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
137
|
0.7.3 (ruby-1.9.3).
|
138
138
|
</div>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
data/doc/Box/Api/NameTaken.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
data/doc/Box/Api/NoAccess.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
data/doc/Box/Api/NoParent.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -0,0 +1,141 @@
|
|
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
|
+
Exception: Box::Api::NotShared
|
8
|
+
|
9
|
+
— Documentation by YARD 0.7.3
|
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
|
+
relpath = '../..';
|
19
|
+
if (relpath != '') relpath += '/';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
25
|
+
|
26
|
+
|
27
|
+
</head>
|
28
|
+
<body>
|
29
|
+
<script type="text/javascript" charset="utf-8">
|
30
|
+
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
+
</script>
|
32
|
+
|
33
|
+
<div id="header">
|
34
|
+
<div id="menu">
|
35
|
+
|
36
|
+
<a href="../../_index.html">Index (N)</a> »
|
37
|
+
<span class='title'><span class='object_link'><a href="../../Box.html" title="Box (module)">Box</a></span></span> » <span class='title'><span class='object_link'><a href="../Api.html" title="Box::Api (class)">Api</a></span></span>
|
38
|
+
»
|
39
|
+
<span class="title">NotShared</span>
|
40
|
+
|
41
|
+
|
42
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
|
+
</div>
|
44
|
+
|
45
|
+
<div id="search">
|
46
|
+
|
47
|
+
<a id="class_list_link" href="#">Class List</a>
|
48
|
+
|
49
|
+
<a id="method_list_link" href="#">Method List</a>
|
50
|
+
|
51
|
+
<a id="file_list_link" href="#">File List</a>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
<div class="clear"></div>
|
55
|
+
</div>
|
56
|
+
|
57
|
+
<iframe id="search_frame"></iframe>
|
58
|
+
|
59
|
+
<div id="content"><h1>Exception: Box::Api::NotShared
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
</h1>
|
64
|
+
|
65
|
+
<dl class="box">
|
66
|
+
|
67
|
+
<dt class="r1">Inherits:</dt>
|
68
|
+
<dd class="r1">
|
69
|
+
<span class="inheritName"><span class='object_link'><a href="Exception.html" title="Box::Api::Exception (class)">Exception</a></span></span>
|
70
|
+
|
71
|
+
<ul class="fullTree">
|
72
|
+
<li>Object</li>
|
73
|
+
|
74
|
+
<li class="next">StandardError</li>
|
75
|
+
|
76
|
+
<li class="next"><span class='object_link'><a href="Exception.html" title="Box::Api::Exception (class)">Exception</a></span></li>
|
77
|
+
|
78
|
+
<li class="next">Box::Api::NotShared</li>
|
79
|
+
|
80
|
+
</ul>
|
81
|
+
<a href="#" class="inheritanceTree">show all</a>
|
82
|
+
|
83
|
+
</dd>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
<dt class="r2 last">Defined in:</dt>
|
94
|
+
<dd class="r2 last">lib/box/api/exceptions.rb</dd>
|
95
|
+
|
96
|
+
</dl>
|
97
|
+
<div class="clear"></div>
|
98
|
+
|
99
|
+
<h2>Overview</h2><div class="docstring">
|
100
|
+
<div class="discussion">
|
101
|
+
|
102
|
+
<p>Sharing specific responses</p>
|
103
|
+
|
104
|
+
|
105
|
+
</div>
|
106
|
+
</div>
|
107
|
+
<div class="tags">
|
108
|
+
|
109
|
+
|
110
|
+
</div>
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div id="footer">
|
135
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
136
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
|
+
0.7.3 (ruby-1.9.3).
|
138
|
+
</div>
|
139
|
+
|
140
|
+
</body>
|
141
|
+
</html>
|
data/doc/Box/Api/Restricted.html
CHANGED
@@ -132,7 +132,7 @@
|
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div id="footer">
|
135
|
-
Generated on
|
135
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
136
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
137
|
0.7.3 (ruby-1.9.3).
|
138
138
|
</div>
|
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
data/doc/Box/Api/Unknown.html
CHANGED
@@ -121,7 +121,7 @@
|
|
121
121
|
</div>
|
122
122
|
|
123
123
|
<div id="footer">
|
124
|
-
Generated on
|
124
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
125
125
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
126
126
|
0.7.3 (ruby-1.9.3).
|
127
127
|
</div>
|
@@ -132,7 +132,7 @@
|
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div id="footer">
|
135
|
-
Generated on
|
135
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
136
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
137
|
0.7.3 (ruby-1.9.3).
|
138
138
|
</div>
|
@@ -132,7 +132,7 @@
|
|
132
132
|
</div>
|
133
133
|
|
134
134
|
<div id="footer">
|
135
|
-
Generated on
|
135
|
+
Generated on Wed Nov 9 12:40:37 2011 by
|
136
136
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
137
137
|
0.7.3 (ruby-1.9.3).
|
138
138
|
</div>
|
data/doc/Box/Comment.html
CHANGED
@@ -551,7 +551,7 @@
|
|
551
551
|
</div>
|
552
552
|
|
553
553
|
<div id="footer">
|
554
|
-
Generated on
|
554
|
+
Generated on Wed Nov 9 12:40:36 2011 by
|
555
555
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
556
556
|
0.7.3 (ruby-1.9.3).
|
557
557
|
</div>
|
data/doc/Box/File.html
CHANGED
@@ -313,7 +313,7 @@ file can be accessed through this class.</p>
|
|
313
313
|
|
314
314
|
|
315
315
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Item.html" title="Box::Item (class)">Item</a></span></h3>
|
316
|
-
<p class="inherited"><span class='object_link'><a href="Item.html#copy-instance_method" title="Box::Item#copy (method)">#copy</a></span>, <span class='object_link'><a href="Item.html#delete-instance_method" title="Box::Item#delete (method)">#delete</a></span>, <span class='object_link'><a href="Item.html#force_cached_info-instance_method" title="Box::Item#force_cached_info (method)">#force_cached_info</a></span>, <span class='object_link'><a href="Item.html#id-instance_method" title="Box::Item#id (method)">#id</a></span>, <span class='object_link'><a href="Item.html#info-instance_method" title="Box::Item#info (method)">#info</a></span>, <span class='object_link'><a href="Item.html#initialize-instance_method" title="Box::Item#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Item.html#method_missing-instance_method" title="Box::Item#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Item.html#move-instance_method" title="Box::Item#move (method)">#move</a></span>, <span class='object_link'><a href="Item.html#path-instance_method" title="Box::Item#path (method)">#path</a></span>, <span class='object_link'><a href="Item.html#rename-instance_method" title="Box::Item#rename (method)">#rename</a></span>, <span class='object_link'><a href="Item.html#respond_to%3F-instance_method" title="Box::Item#respond_to? (method)">#respond_to?</a></span>, <span class='object_link'><a href="Item.html#set_description-instance_method" title="Box::Item#set_description (method)">#set_description</a></span>, <span class='object_link'><a href="Item.html#type-instance_method" title="Box::Item#type (method)">#type</a></span>, <span class='object_link'><a href="Item.html#types-class_method" title="Box::Item.types (method)">types</a></span>, <span class='object_link'><a href="Item.html#
|
316
|
+
<p class="inherited"><span class='object_link'><a href="Item.html#copy-instance_method" title="Box::Item#copy (method)">#copy</a></span>, <span class='object_link'><a href="Item.html#delete-instance_method" title="Box::Item#delete (method)">#delete</a></span>, <span class='object_link'><a href="Item.html#force_cached_info-instance_method" title="Box::Item#force_cached_info (method)">#force_cached_info</a></span>, <span class='object_link'><a href="Item.html#id-instance_method" title="Box::Item#id (method)">#id</a></span>, <span class='object_link'><a href="Item.html#info-instance_method" title="Box::Item#info (method)">#info</a></span>, <span class='object_link'><a href="Item.html#initialize-instance_method" title="Box::Item#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Item.html#method_missing-instance_method" title="Box::Item#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Item.html#move-instance_method" title="Box::Item#move (method)">#move</a></span>, <span class='object_link'><a href="Item.html#path-instance_method" title="Box::Item#path (method)">#path</a></span>, <span class='object_link'><a href="Item.html#rename-instance_method" title="Box::Item#rename (method)">#rename</a></span>, <span class='object_link'><a href="Item.html#respond_to%3F-instance_method" title="Box::Item#respond_to? (method)">#respond_to?</a></span>, <span class='object_link'><a href="Item.html#set_description-instance_method" title="Box::Item#set_description (method)">#set_description</a></span>, <span class='object_link'><a href="Item.html#share_private-instance_method" title="Box::Item#share_private (method)">#share_private</a></span>, <span class='object_link'><a href="Item.html#share_public-instance_method" title="Box::Item#share_public (method)">#share_public</a></span>, <span class='object_link'><a href="Item.html#type-instance_method" title="Box::Item#type (method)">#type</a></span>, <span class='object_link'><a href="Item.html#types-instance_method" title="Box::Item#types (method)">#types</a></span>, <span class='object_link'><a href="Item.html#types-class_method" title="Box::Item.types (method)">types</a></span>, <span class='object_link'><a href="Item.html#unshare-instance_method" title="Box::Item#unshare (method)">#unshare</a></span></p>
|
317
317
|
<div id="constructor_details" class="method_details_list">
|
318
318
|
<h2>Constructor Details</h2>
|
319
319
|
|
@@ -525,6 +525,14 @@ file can be accessed through this class.</p>
|
|
525
525
|
</p><div class="docstring">
|
526
526
|
<div class="discussion">
|
527
527
|
|
528
|
+
<div class="note notetag">
|
529
|
+
<strong>Note:</strong>
|
530
|
+
<div class='inline'>
|
531
|
+
<p>This function will share the file if it is not already shared.</p>
|
532
|
+
</div>
|
533
|
+
</div>
|
534
|
+
|
535
|
+
|
528
536
|
<p>Request the HTML embed code for this file.</p>
|
529
537
|
|
530
538
|
|
@@ -580,15 +588,25 @@ file can be accessed through this class.</p>
|
|
580
588
|
<pre class="lines">
|
581
589
|
|
582
590
|
|
583
|
-
70
|
584
591
|
71
|
585
|
-
72
|
592
|
+
72
|
593
|
+
73
|
594
|
+
74
|
595
|
+
75
|
596
|
+
76
|
597
|
+
77
|
598
|
+
78</pre>
|
586
599
|
</td>
|
587
600
|
<td>
|
588
|
-
<pre class="code"><span class="info file"># File 'lib/box/file.rb', line
|
601
|
+
<pre class="code"><span class="info file"># File 'lib/box/file.rb', line 71</span>
|
589
602
|
|
590
603
|
<span class='kw'>def</span> <span class='id embed_code'>embed_code</span><span class='lparen'>(</span><span class='id options'>options</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id new'>new</span><span class='rparen'>)</span>
|
591
|
-
<span class='
|
604
|
+
<span class='kw'>begin</span>
|
605
|
+
<span class='ivar'>@api</span><span class='period'>.</span><span class='id file_embed'>file_embed</span><span class='lparen'>(</span><span class='id id'>id</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>file_embed_html</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
606
|
+
<span class='kw'>rescue</span> <span class='const'>Api</span><span class='op'>::</span><span class='const'>NotShared</span>
|
607
|
+
<span class='id share_public'>share_public</span>
|
608
|
+
<span class='kw'>retry</span>
|
609
|
+
<span class='kw'>end</span>
|
592
610
|
<span class='kw'>end</span></pre>
|
593
611
|
</td>
|
594
612
|
</tr>
|
@@ -836,7 +854,7 @@ each additional copy.</p>
|
|
836
854
|
</div>
|
837
855
|
|
838
856
|
<div id="footer">
|
839
|
-
Generated on
|
857
|
+
Generated on Wed Nov 9 12:40:36 2011 by
|
840
858
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
841
859
|
0.7.3 (ruby-1.9.3).
|
842
860
|
</div>
|
data/doc/Box/Folder.html
CHANGED
@@ -359,7 +359,7 @@ Box folder can be accessed through this class.</p>
|
|
359
359
|
|
360
360
|
|
361
361
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="Item.html" title="Box::Item (class)">Item</a></span></h3>
|
362
|
-
<p class="inherited"><span class='object_link'><a href="Item.html#copy-instance_method" title="Box::Item#copy (method)">#copy</a></span>, <span class='object_link'><a href="Item.html#delete-instance_method" title="Box::Item#delete (method)">#delete</a></span>, <span class='object_link'><a href="Item.html#id-instance_method" title="Box::Item#id (method)">#id</a></span>, <span class='object_link'><a href="Item.html#initialize-instance_method" title="Box::Item#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Item.html#method_missing-instance_method" title="Box::Item#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Item.html#move-instance_method" title="Box::Item#move (method)">#move</a></span>, <span class='object_link'><a href="Item.html#path-instance_method" title="Box::Item#path (method)">#path</a></span>, <span class='object_link'><a href="Item.html#rename-instance_method" title="Box::Item#rename (method)">#rename</a></span>, <span class='object_link'><a href="Item.html#respond_to%3F-instance_method" title="Box::Item#respond_to? (method)">#respond_to?</a></span>, <span class='object_link'><a href="Item.html#set_description-instance_method" title="Box::Item#set_description (method)">#set_description</a></span>, <span class='object_link'><a href="Item.html#type-instance_method" title="Box::Item#type (method)">#type</a></span>, <span class='object_link'><a href="Item.html#types-instance_method" title="Box::Item#types (method)">#types</a></span>, <span class='object_link'><a href="Item.html#types-class_method" title="Box::Item.types (method)">types</a></span></p>
|
362
|
+
<p class="inherited"><span class='object_link'><a href="Item.html#copy-instance_method" title="Box::Item#copy (method)">#copy</a></span>, <span class='object_link'><a href="Item.html#delete-instance_method" title="Box::Item#delete (method)">#delete</a></span>, <span class='object_link'><a href="Item.html#id-instance_method" title="Box::Item#id (method)">#id</a></span>, <span class='object_link'><a href="Item.html#initialize-instance_method" title="Box::Item#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="Item.html#method_missing-instance_method" title="Box::Item#method_missing (method)">#method_missing</a></span>, <span class='object_link'><a href="Item.html#move-instance_method" title="Box::Item#move (method)">#move</a></span>, <span class='object_link'><a href="Item.html#path-instance_method" title="Box::Item#path (method)">#path</a></span>, <span class='object_link'><a href="Item.html#rename-instance_method" title="Box::Item#rename (method)">#rename</a></span>, <span class='object_link'><a href="Item.html#respond_to%3F-instance_method" title="Box::Item#respond_to? (method)">#respond_to?</a></span>, <span class='object_link'><a href="Item.html#set_description-instance_method" title="Box::Item#set_description (method)">#set_description</a></span>, <span class='object_link'><a href="Item.html#share_private-instance_method" title="Box::Item#share_private (method)">#share_private</a></span>, <span class='object_link'><a href="Item.html#share_public-instance_method" title="Box::Item#share_public (method)">#share_public</a></span>, <span class='object_link'><a href="Item.html#type-instance_method" title="Box::Item#type (method)">#type</a></span>, <span class='object_link'><a href="Item.html#types-instance_method" title="Box::Item#types (method)">#types</a></span>, <span class='object_link'><a href="Item.html#types-class_method" title="Box::Item.types (method)">types</a></span>, <span class='object_link'><a href="Item.html#unshare-instance_method" title="Box::Item#unshare (method)">#unshare</a></span></p>
|
363
363
|
<div id="constructor_details" class="method_details_list">
|
364
364
|
<h2>Constructor Details</h2>
|
365
365
|
|
@@ -1231,7 +1231,7 @@ fetched from the api.</p>
|
|
1231
1231
|
</div>
|
1232
1232
|
|
1233
1233
|
<div id="footer">
|
1234
|
-
Generated on
|
1234
|
+
Generated on Wed Nov 9 12:40:36 2011 by
|
1235
1235
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1236
1236
|
0.7.3 (ruby-1.9.3).
|
1237
1237
|
</div>
|
data/doc/Box/Item.html
CHANGED
@@ -536,6 +536,52 @@ instanciated directly.</p>
|
|
536
536
|
<p>Set the description of this item.</p>
|
537
537
|
</div></span>
|
538
538
|
|
539
|
+
</li>
|
540
|
+
|
541
|
+
|
542
|
+
<li class="public ">
|
543
|
+
<span class="summary_signature">
|
544
|
+
|
545
|
+
<a href="#share_private-instance_method" title="#share_private (instance method)">- (Object) <strong>share_private</strong>(emails, options = Hash.new) </a>
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
</span>
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
|
558
|
+
<span class="summary_desc"><div class='inline'>
|
559
|
+
<p>Shares this item privately with the given email addresses.</p>
|
560
|
+
</div></span>
|
561
|
+
|
562
|
+
</li>
|
563
|
+
|
564
|
+
|
565
|
+
<li class="public ">
|
566
|
+
<span class="summary_signature">
|
567
|
+
|
568
|
+
<a href="#share_public-instance_method" title="#share_public (instance method)">- (Object) <strong>share_public</strong>(options = Hash.new) </a>
|
569
|
+
|
570
|
+
|
571
|
+
|
572
|
+
</span>
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
|
580
|
+
|
581
|
+
<span class="summary_desc"><div class='inline'>
|
582
|
+
<p>Generates a share link for this item.</p>
|
583
|
+
</div></span>
|
584
|
+
|
539
585
|
</li>
|
540
586
|
|
541
587
|
|
@@ -582,6 +628,29 @@ instanciated directly.</p>
|
|
582
628
|
<p>The plural string representation of this item.</p>
|
583
629
|
</div></span>
|
584
630
|
|
631
|
+
</li>
|
632
|
+
|
633
|
+
|
634
|
+
<li class="public ">
|
635
|
+
<span class="summary_signature">
|
636
|
+
|
637
|
+
<a href="#unshare-instance_method" title="#unshare (instance method)">- (Object) <strong>unshare</strong> </a>
|
638
|
+
|
639
|
+
|
640
|
+
|
641
|
+
</span>
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
|
650
|
+
<span class="summary_desc"><div class='inline'>
|
651
|
+
<p>Unshares this item.</p>
|
652
|
+
</div></span>
|
653
|
+
|
585
654
|
</li>
|
586
655
|
|
587
656
|
|
@@ -1812,6 +1881,172 @@ fetched from the api.</p>
|
|
1812
1881
|
</td>
|
1813
1882
|
</tr>
|
1814
1883
|
</table>
|
1884
|
+
</div>
|
1885
|
+
|
1886
|
+
<div class="method_details ">
|
1887
|
+
<p class="signature " id="share_private-instance_method">
|
1888
|
+
|
1889
|
+
- (<tt>Object</tt>) <strong>share_private</strong>(emails, options = Hash.new)
|
1890
|
+
|
1891
|
+
|
1892
|
+
|
1893
|
+
</p><div class="docstring">
|
1894
|
+
<div class="discussion">
|
1895
|
+
|
1896
|
+
<p>Shares this item privately with the given email addresses.</p>
|
1897
|
+
|
1898
|
+
|
1899
|
+
</div>
|
1900
|
+
</div>
|
1901
|
+
<div class="tags">
|
1902
|
+
<h3>Parameters:</h3>
|
1903
|
+
<ul class="param">
|
1904
|
+
|
1905
|
+
<li>
|
1906
|
+
|
1907
|
+
<span class='name'>emails</span>
|
1908
|
+
|
1909
|
+
|
1910
|
+
<span class='type'>(<tt>Array</tt>)</span>
|
1911
|
+
|
1912
|
+
|
1913
|
+
|
1914
|
+
—
|
1915
|
+
<div class='inline'>
|
1916
|
+
<p>The Box users to share this item with.</p>
|
1917
|
+
</div>
|
1918
|
+
|
1919
|
+
</li>
|
1920
|
+
|
1921
|
+
<li>
|
1922
|
+
|
1923
|
+
<span class='name'>options</span>
|
1924
|
+
|
1925
|
+
|
1926
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1927
|
+
|
1928
|
+
|
1929
|
+
<em class="default">(defaults to: <tt>Hash.new</tt>)</em>
|
1930
|
+
|
1931
|
+
|
1932
|
+
—
|
1933
|
+
<div class='inline'>
|
1934
|
+
<p>Special options related to notification. See the developer wiki for details
|
1935
|
+
instructions.</p>
|
1936
|
+
</div>
|
1937
|
+
|
1938
|
+
</li>
|
1939
|
+
|
1940
|
+
</ul>
|
1941
|
+
|
1942
|
+
|
1943
|
+
</div><table class="source_code">
|
1944
|
+
<tr>
|
1945
|
+
<td>
|
1946
|
+
<pre class="lines">
|
1947
|
+
|
1948
|
+
|
1949
|
+
195
|
1950
|
+
196
|
1951
|
+
197
|
1952
|
+
198
|
1953
|
+
199</pre>
|
1954
|
+
</td>
|
1955
|
+
<td>
|
1956
|
+
<pre class="code"><span class="info file"># File 'lib/box/item.rb', line 195</span>
|
1957
|
+
|
1958
|
+
<span class='kw'>def</span> <span class='id share_private'>share_private</span><span class='lparen'>(</span><span class='id emails'>emails</span><span class='comma'>,</span> <span class='id options'>options</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id new'>new</span><span class='rparen'>)</span>
|
1959
|
+
<span class='ivar'>@api</span><span class='period'>.</span><span class='id share_private'>share_private</span><span class='lparen'>(</span><span class='id type'>type</span><span class='comma'>,</span> <span class='id id'>id</span><span class='comma'>,</span> <span class='id emails'>emails</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span>
|
1960
|
+
|
1961
|
+
<span class='kw'>true</span>
|
1962
|
+
<span class='kw'>end</span></pre>
|
1963
|
+
</td>
|
1964
|
+
</tr>
|
1965
|
+
</table>
|
1966
|
+
</div>
|
1967
|
+
|
1968
|
+
<div class="method_details ">
|
1969
|
+
<p class="signature " id="share_public-instance_method">
|
1970
|
+
|
1971
|
+
- (<tt>Object</tt>) <strong>share_public</strong>(options = Hash.new)
|
1972
|
+
|
1973
|
+
|
1974
|
+
|
1975
|
+
</p><div class="docstring">
|
1976
|
+
<div class="discussion">
|
1977
|
+
|
1978
|
+
<p>Generates a share link for this item.</p>
|
1979
|
+
|
1980
|
+
<p>TODO: Document the options.</p>
|
1981
|
+
|
1982
|
+
|
1983
|
+
</div>
|
1984
|
+
</div>
|
1985
|
+
<div class="tags">
|
1986
|
+
<h3>Parameters:</h3>
|
1987
|
+
<ul class="param">
|
1988
|
+
|
1989
|
+
<li>
|
1990
|
+
|
1991
|
+
<span class='name'>options</span>
|
1992
|
+
|
1993
|
+
|
1994
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1995
|
+
|
1996
|
+
|
1997
|
+
<em class="default">(defaults to: <tt>Hash.new</tt>)</em>
|
1998
|
+
|
1999
|
+
|
2000
|
+
—
|
2001
|
+
<div class='inline'>
|
2002
|
+
<p>Special options related to notification. See the developer wiki for details
|
2003
|
+
instructions.</p>
|
2004
|
+
</div>
|
2005
|
+
|
2006
|
+
</li>
|
2007
|
+
|
2008
|
+
</ul>
|
2009
|
+
|
2010
|
+
<h3>Returns:</h3>
|
2011
|
+
<ul class="return">
|
2012
|
+
|
2013
|
+
<li>
|
2014
|
+
|
2015
|
+
|
2016
|
+
<span class='type'></span>
|
2017
|
+
|
2018
|
+
|
2019
|
+
|
2020
|
+
|
2021
|
+
<div class='inline'>
|
2022
|
+
<p>The public name of the item. In order to access this item on the web,
|
2023
|
+
prefix this value with '<a
|
2024
|
+
href="http://www.box.net/shared">www.box.net/shared</a>/'.</p>
|
2025
|
+
</div>
|
2026
|
+
|
2027
|
+
</li>
|
2028
|
+
|
2029
|
+
</ul>
|
2030
|
+
|
2031
|
+
</div><table class="source_code">
|
2032
|
+
<tr>
|
2033
|
+
<td>
|
2034
|
+
<pre class="lines">
|
2035
|
+
|
2036
|
+
|
2037
|
+
186
|
2038
|
+
187
|
2039
|
+
188</pre>
|
2040
|
+
</td>
|
2041
|
+
<td>
|
2042
|
+
<pre class="code"><span class="info file"># File 'lib/box/item.rb', line 186</span>
|
2043
|
+
|
2044
|
+
<span class='kw'>def</span> <span class='id share_public'>share_public</span><span class='lparen'>(</span><span class='id options'>options</span> <span class='op'>=</span> <span class='const'>Hash</span><span class='period'>.</span><span class='id new'>new</span><span class='rparen'>)</span>
|
2045
|
+
<span class='ivar'>@api</span><span class='period'>.</span><span class='id share_public'>share_public</span><span class='lparen'>(</span><span class='id type'>type</span><span class='comma'>,</span> <span class='id id'>id</span><span class='comma'>,</span> <span class='id options'>options</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>public_name</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
2046
|
+
<span class='kw'>end</span></pre>
|
2047
|
+
</td>
|
2048
|
+
</tr>
|
2049
|
+
</table>
|
1815
2050
|
</div>
|
1816
2051
|
|
1817
2052
|
<div class="method_details ">
|
@@ -1918,6 +2153,45 @@ fetched from the api.</p>
|
|
1918
2153
|
</td>
|
1919
2154
|
</tr>
|
1920
2155
|
</table>
|
2156
|
+
</div>
|
2157
|
+
|
2158
|
+
<div class="method_details ">
|
2159
|
+
<p class="signature " id="unshare-instance_method">
|
2160
|
+
|
2161
|
+
- (<tt>Object</tt>) <strong>unshare</strong>
|
2162
|
+
|
2163
|
+
|
2164
|
+
|
2165
|
+
</p><div class="docstring">
|
2166
|
+
<div class="discussion">
|
2167
|
+
|
2168
|
+
<p>Unshares this item.</p>
|
2169
|
+
|
2170
|
+
|
2171
|
+
</div>
|
2172
|
+
</div>
|
2173
|
+
<div class="tags">
|
2174
|
+
|
2175
|
+
|
2176
|
+
</div><table class="source_code">
|
2177
|
+
<tr>
|
2178
|
+
<td>
|
2179
|
+
<pre class="lines">
|
2180
|
+
|
2181
|
+
|
2182
|
+
202
|
2183
|
+
203
|
2184
|
+
204</pre>
|
2185
|
+
</td>
|
2186
|
+
<td>
|
2187
|
+
<pre class="code"><span class="info file"># File 'lib/box/item.rb', line 202</span>
|
2188
|
+
|
2189
|
+
<span class='kw'>def</span> <span class='id unshare'>unshare</span>
|
2190
|
+
<span class='ivar'>@api</span><span class='period'>.</span><span class='id unshare'>unshare</span><span class='lparen'>(</span><span class='id type'>type</span><span class='comma'>,</span> <span class='id id'>id</span><span class='rparen'>)</span>
|
2191
|
+
<span class='kw'>end</span></pre>
|
2192
|
+
</td>
|
2193
|
+
</tr>
|
2194
|
+
</table>
|
1921
2195
|
</div>
|
1922
2196
|
|
1923
2197
|
</div>
|
@@ -1925,7 +2199,7 @@ fetched from the api.</p>
|
|
1925
2199
|
</div>
|
1926
2200
|
|
1927
2201
|
<div id="footer">
|
1928
|
-
Generated on
|
2202
|
+
Generated on Wed Nov 9 12:40:36 2011 by
|
1929
2203
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1930
2204
|
0.7.3 (ruby-1.9.3).
|
1931
2205
|
</div>
|