flickr.rb 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.txt +7 -4
- data/Gemfile.lock +3 -3
- data/README.md +5 -1
- data/Rakefile +6 -7
- data/doc/Flickr.html +1813 -0
- data/doc/Flickr/Config.html +468 -0
- data/doc/Flickr/Group.html +974 -0
- data/doc/Flickr/Photo.html +2467 -0
- data/doc/Flickr/PhotoCollection.html +529 -0
- data/doc/Flickr/Photoset.html +942 -0
- data/doc/Flickr/User.html +1672 -0
- data/doc/_index.html +190 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.Changelog.html +73 -0
- data/doc/file.LICENSE.html +94 -0
- data/{rdoc/README_md.html → doc/file.README.html} +85 -121
- data/doc/file_list.html +62 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +216 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +725 -0
- data/doc/top-level-namespace.html +112 -0
- data/flickr.gemspec +3 -3
- data/lib/flickr.rb +1 -1
- metadata +27 -46
- data/rdoc/Flickr.html +0 -1044
- data/rdoc/Flickr/Config.html +0 -300
- data/rdoc/Flickr/Group.html +0 -373
- data/rdoc/Flickr/Photo.html +0 -1427
- data/rdoc/Flickr/PhotoCollection.html +0 -261
- data/rdoc/Flickr/Photoset.html +0 -389
- data/rdoc/Flickr/User.html +0 -775
- data/rdoc/created.rid +0 -3
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -92
- data/rdoc/js/darkfish.js +0 -155
- data/rdoc/js/jquery.js +0 -18
- data/rdoc/js/navigation.js +0 -142
- data/rdoc/js/search.js +0 -94
- data/rdoc/js/search_index.js +0 -1
- data/rdoc/js/searcher.js +0 -228
- data/rdoc/rdoc.css +0 -595
- data/rdoc/table_of_contents.html +0 -241
@@ -1,261 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>class Flickr::PhotoCollection - Flickr</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "../";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="../index.html">Home</a>
|
28
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>lib/flickr.rb
|
53
|
-
</ul>
|
54
|
-
</nav>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div id="class-metadata">
|
60
|
-
|
61
|
-
<nav id="parent-class-section" class="section">
|
62
|
-
<h3 class="section-header">Parent</h3>
|
63
|
-
|
64
|
-
<p class="link">Array
|
65
|
-
|
66
|
-
</nav>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<!-- Method Quickref -->
|
71
|
-
<nav id="method-list-section" class="section">
|
72
|
-
<h3 class="section-header">Methods</h3>
|
73
|
-
|
74
|
-
<ul class="link-list">
|
75
|
-
|
76
|
-
<li ><a href="#method-c-new">::new</a>
|
77
|
-
|
78
|
-
</ul>
|
79
|
-
</nav>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
<div id="project-metadata">
|
84
|
-
<nav id="fileindex-section" class="section project-section">
|
85
|
-
<h3 class="section-header">Pages</h3>
|
86
|
-
|
87
|
-
<ul>
|
88
|
-
|
89
|
-
<li class="file"><a href="../README_md.html">README</a>
|
90
|
-
|
91
|
-
</ul>
|
92
|
-
</nav>
|
93
|
-
|
94
|
-
<nav id="classindex-section" class="section project-section">
|
95
|
-
<h3 class="section-header">Class and Module Index</h3>
|
96
|
-
|
97
|
-
<ul class="link-list">
|
98
|
-
|
99
|
-
<li><a href="../Flickr.html">Flickr</a>
|
100
|
-
|
101
|
-
<li><a href="../Flickr/Config.html">Flickr::Config</a>
|
102
|
-
|
103
|
-
<li><a href="../Flickr/Group.html">Flickr::Group</a>
|
104
|
-
|
105
|
-
<li><a href="../Flickr/Photo.html">Flickr::Photo</a>
|
106
|
-
|
107
|
-
<li><a href="../Flickr/PhotoCollection.html">Flickr::PhotoCollection</a>
|
108
|
-
|
109
|
-
<li><a href="../Flickr/Photoset.html">Flickr::Photoset</a>
|
110
|
-
|
111
|
-
<li><a href="../Flickr/User.html">Flickr::User</a>
|
112
|
-
|
113
|
-
</ul>
|
114
|
-
</nav>
|
115
|
-
|
116
|
-
</div>
|
117
|
-
</nav>
|
118
|
-
|
119
|
-
<div id="documentation">
|
120
|
-
<h1 class="class">class Flickr::PhotoCollection</h1>
|
121
|
-
|
122
|
-
<div id="description" class="description">
|
123
|
-
|
124
|
-
<p>A collection of photos is returned as a <a
|
125
|
-
href="PhotoCollection.html">PhotoCollection</a>, a subclass of Array. This
|
126
|
-
allows us to retain the pagination info returned by <a
|
127
|
-
href="../Flickr.html">Flickr</a> and make it accessible in a friendly way</p>
|
128
|
-
|
129
|
-
</div><!-- description -->
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
<!-- Attributes -->
|
143
|
-
<section id="attribute-method-details" class="method-section section">
|
144
|
-
<h3 class="section-header">Attributes</h3>
|
145
|
-
|
146
|
-
|
147
|
-
<div id="attribute-i-page" class="method-detail">
|
148
|
-
<div class="method-heading attribute-method-heading">
|
149
|
-
<span class="method-name">page</span><span
|
150
|
-
class="attribute-access-type">[R]</span>
|
151
|
-
</div>
|
152
|
-
|
153
|
-
<div class="method-description">
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
</div>
|
158
|
-
</div>
|
159
|
-
|
160
|
-
<div id="attribute-i-pages" class="method-detail">
|
161
|
-
<div class="method-heading attribute-method-heading">
|
162
|
-
<span class="method-name">pages</span><span
|
163
|
-
class="attribute-access-type">[R]</span>
|
164
|
-
</div>
|
165
|
-
|
166
|
-
<div class="method-description">
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
</div>
|
171
|
-
</div>
|
172
|
-
|
173
|
-
<div id="attribute-i-perpage" class="method-detail">
|
174
|
-
<div class="method-heading attribute-method-heading">
|
175
|
-
<span class="method-name">perpage</span><span
|
176
|
-
class="attribute-access-type">[R]</span>
|
177
|
-
</div>
|
178
|
-
|
179
|
-
<div class="method-description">
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
|
186
|
-
<div id="attribute-i-total" class="method-detail">
|
187
|
-
<div class="method-heading attribute-method-heading">
|
188
|
-
<span class="method-name">total</span><span
|
189
|
-
class="attribute-access-type">[R]</span>
|
190
|
-
</div>
|
191
|
-
|
192
|
-
<div class="method-description">
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
|
199
|
-
</section><!-- attribute-method-details -->
|
200
|
-
|
201
|
-
|
202
|
-
<!-- Methods -->
|
203
|
-
|
204
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
205
|
-
<h3 class="section-header">Public Class Methods</h3>
|
206
|
-
|
207
|
-
|
208
|
-
<div id="method-c-new" class="method-detail ">
|
209
|
-
|
210
|
-
<div class="method-heading">
|
211
|
-
<span class="method-name">new</span><span
|
212
|
-
class="method-args">(photos_api_response={}, api_key={}, list_node="photos")</span>
|
213
|
-
|
214
|
-
<span class="method-click-advice">click to toggle source</span>
|
215
|
-
|
216
|
-
</div>
|
217
|
-
|
218
|
-
|
219
|
-
<div class="method-description">
|
220
|
-
|
221
|
-
<p>builds a <a href="PhotoCollection.html">PhotoCollection</a> from given
|
222
|
-
params, such as those returned from photos.search API call. Note all the
|
223
|
-
info is contained in the value of the first (and only) key-value pair of
|
224
|
-
the response. The key will vary depending on the original object the photos
|
225
|
-
are related to (e.g 'photos', 'photoset', etc)</p>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
<div class="method-source-code" id="new-source">
|
231
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 238</span>
|
232
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">photos_api_response</span>={}, <span class="ruby-identifier">api_key</span>={}, <span class="ruby-identifier">list_node</span>=<span class="ruby-string">"photos"</span>)
|
233
|
-
<span class="ruby-identifier">photos</span> = <span class="ruby-identifier">photos_api_response</span>[<span class="ruby-identifier">list_node</span>]
|
234
|
-
[ <span class="ruby-string">"page"</span>, <span class="ruby-string">"pages"</span>, <span class="ruby-string">"perpage"</span>, <span class="ruby-string">"total"</span> ].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span> <span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">"@#{i}"</span>, <span class="ruby-identifier">photos</span>[<span class="ruby-identifier">i</span>])}
|
235
|
-
<span class="ruby-identifier">collection</span> = <span class="ruby-identifier">photos</span>[<span class="ruby-string">'photo'</span>] <span class="ruby-operator">||</span> []
|
236
|
-
<span class="ruby-identifier">collection</span> = [<span class="ruby-identifier">collection</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">collection</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Hash</span>
|
237
|
-
<span class="ruby-identifier">collection</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">photo</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Photo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">photo</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'id'</span>), <span class="ruby-identifier">api_key</span>, <span class="ruby-identifier">photo</span>) }
|
238
|
-
<span class="ruby-keyword">end</span></pre>
|
239
|
-
</div><!-- new-source -->
|
240
|
-
|
241
|
-
</div>
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
</div><!-- new-method -->
|
247
|
-
|
248
|
-
|
249
|
-
</section><!-- public-class-method-details -->
|
250
|
-
|
251
|
-
</section><!-- 5Buntitled-5D -->
|
252
|
-
|
253
|
-
</div><!-- documentation -->
|
254
|
-
|
255
|
-
|
256
|
-
<footer id="validator-badges">
|
257
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
258
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
259
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
260
|
-
</footer>
|
261
|
-
|
data/rdoc/Flickr/Photoset.html
DELETED
@@ -1,389 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
|
3
|
-
<html>
|
4
|
-
<head>
|
5
|
-
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
|
-
|
7
|
-
<title>class Flickr::Photoset - Flickr</title>
|
8
|
-
|
9
|
-
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
10
|
-
|
11
|
-
<script type="text/javascript">
|
12
|
-
var rdoc_rel_prefix = "../";
|
13
|
-
</script>
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
16
|
-
<script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
|
17
|
-
<script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
|
18
|
-
<script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
|
19
|
-
<script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
|
20
|
-
<script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
|
21
|
-
|
22
|
-
|
23
|
-
<body id="top" class="class">
|
24
|
-
<nav id="metadata">
|
25
|
-
<nav id="home-section" class="section">
|
26
|
-
<h3 class="section-header">
|
27
|
-
<a href="../index.html">Home</a>
|
28
|
-
<a href="../table_of_contents.html#classes">Classes</a>
|
29
|
-
<a href="../table_of_contents.html#methods">Methods</a>
|
30
|
-
</h3>
|
31
|
-
</nav>
|
32
|
-
|
33
|
-
|
34
|
-
<nav id="search-section" class="section project-section" class="initially-hidden">
|
35
|
-
<form action="#" method="get" accept-charset="utf-8">
|
36
|
-
<h3 class="section-header">
|
37
|
-
<input type="text" name="search" placeholder="Search" id="search-field"
|
38
|
-
title="Type to search, Up and Down to navigate, Enter to load">
|
39
|
-
</h3>
|
40
|
-
</form>
|
41
|
-
|
42
|
-
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
-
</nav>
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>lib/flickr.rb
|
53
|
-
</ul>
|
54
|
-
</nav>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div id="class-metadata">
|
60
|
-
|
61
|
-
<nav id="parent-class-section" class="section">
|
62
|
-
<h3 class="section-header">Parent</h3>
|
63
|
-
|
64
|
-
<p class="link">Object
|
65
|
-
|
66
|
-
</nav>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<!-- Method Quickref -->
|
71
|
-
<nav id="method-list-section" class="section">
|
72
|
-
<h3 class="section-header">Methods</h3>
|
73
|
-
|
74
|
-
<ul class="link-list">
|
75
|
-
|
76
|
-
<li ><a href="#method-c-new">::new</a>
|
77
|
-
|
78
|
-
<li ><a href="#method-i-getInfo">#getInfo</a>
|
79
|
-
|
80
|
-
<li ><a href="#method-i-getPhotos">#getPhotos</a>
|
81
|
-
|
82
|
-
</ul>
|
83
|
-
</nav>
|
84
|
-
|
85
|
-
</div>
|
86
|
-
|
87
|
-
<div id="project-metadata">
|
88
|
-
<nav id="fileindex-section" class="section project-section">
|
89
|
-
<h3 class="section-header">Pages</h3>
|
90
|
-
|
91
|
-
<ul>
|
92
|
-
|
93
|
-
<li class="file"><a href="../README_md.html">README</a>
|
94
|
-
|
95
|
-
</ul>
|
96
|
-
</nav>
|
97
|
-
|
98
|
-
<nav id="classindex-section" class="section project-section">
|
99
|
-
<h3 class="section-header">Class and Module Index</h3>
|
100
|
-
|
101
|
-
<ul class="link-list">
|
102
|
-
|
103
|
-
<li><a href="../Flickr.html">Flickr</a>
|
104
|
-
|
105
|
-
<li><a href="../Flickr/Config.html">Flickr::Config</a>
|
106
|
-
|
107
|
-
<li><a href="../Flickr/Group.html">Flickr::Group</a>
|
108
|
-
|
109
|
-
<li><a href="../Flickr/Photo.html">Flickr::Photo</a>
|
110
|
-
|
111
|
-
<li><a href="../Flickr/PhotoCollection.html">Flickr::PhotoCollection</a>
|
112
|
-
|
113
|
-
<li><a href="../Flickr/Photoset.html">Flickr::Photoset</a>
|
114
|
-
|
115
|
-
<li><a href="../Flickr/User.html">Flickr::User</a>
|
116
|
-
|
117
|
-
</ul>
|
118
|
-
</nav>
|
119
|
-
|
120
|
-
</div>
|
121
|
-
</nav>
|
122
|
-
|
123
|
-
<div id="documentation">
|
124
|
-
<h1 class="class">class Flickr::Photoset</h1>
|
125
|
-
|
126
|
-
<div id="description" class="description">
|
127
|
-
|
128
|
-
<p>Todo: flickr.photosets.delete flickr.photosets.editMeta
|
129
|
-
flickr.photosets.editPhotos flickr.photosets.getContext
|
130
|
-
flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
131
|
-
|
132
|
-
</div><!-- description -->
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
<!-- Attributes -->
|
146
|
-
<section id="attribute-method-details" class="method-section section">
|
147
|
-
<h3 class="section-header">Attributes</h3>
|
148
|
-
|
149
|
-
|
150
|
-
<div id="attribute-i-client" class="method-detail">
|
151
|
-
<div class="method-heading attribute-method-heading">
|
152
|
-
<span class="method-name">client</span><span
|
153
|
-
class="attribute-access-type">[R]</span>
|
154
|
-
</div>
|
155
|
-
|
156
|
-
<div class="method-description">
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
</div>
|
161
|
-
</div>
|
162
|
-
|
163
|
-
<div id="attribute-i-description" class="method-detail">
|
164
|
-
<div class="method-heading attribute-method-heading">
|
165
|
-
<span class="method-name">description</span><span
|
166
|
-
class="attribute-access-type">[R]</span>
|
167
|
-
</div>
|
168
|
-
|
169
|
-
<div class="method-description">
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div id="attribute-i-id" class="method-detail">
|
177
|
-
<div class="method-heading attribute-method-heading">
|
178
|
-
<span class="method-name">id</span><span
|
179
|
-
class="attribute-access-type">[R]</span>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div class="method-description">
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
|
189
|
-
<div id="attribute-i-owner" class="method-detail">
|
190
|
-
<div class="method-heading attribute-method-heading">
|
191
|
-
<span class="method-name">owner</span><span
|
192
|
-
class="attribute-access-type">[R]</span>
|
193
|
-
</div>
|
194
|
-
|
195
|
-
<div class="method-description">
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div id="attribute-i-photos" class="method-detail">
|
203
|
-
<div class="method-heading attribute-method-heading">
|
204
|
-
<span class="method-name">photos</span><span
|
205
|
-
class="attribute-access-type">[R]</span>
|
206
|
-
</div>
|
207
|
-
|
208
|
-
<div class="method-description">
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
</div>
|
213
|
-
</div>
|
214
|
-
|
215
|
-
<div id="attribute-i-primary" class="method-detail">
|
216
|
-
<div class="method-heading attribute-method-heading">
|
217
|
-
<span class="method-name">primary</span><span
|
218
|
-
class="attribute-access-type">[R]</span>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div class="method-description">
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
</div>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
<div id="attribute-i-title" class="method-detail">
|
229
|
-
<div class="method-heading attribute-method-heading">
|
230
|
-
<span class="method-name">title</span><span
|
231
|
-
class="attribute-access-type">[R]</span>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
<div class="method-description">
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
</div>
|
239
|
-
</div>
|
240
|
-
|
241
|
-
<div id="attribute-i-url" class="method-detail">
|
242
|
-
<div class="method-heading attribute-method-heading">
|
243
|
-
<span class="method-name">url</span><span
|
244
|
-
class="attribute-access-type">[R]</span>
|
245
|
-
</div>
|
246
|
-
|
247
|
-
<div class="method-description">
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
</div>
|
252
|
-
</div>
|
253
|
-
|
254
|
-
</section><!-- attribute-method-details -->
|
255
|
-
|
256
|
-
|
257
|
-
<!-- Methods -->
|
258
|
-
|
259
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
260
|
-
<h3 class="section-header">Public Class Methods</h3>
|
261
|
-
|
262
|
-
|
263
|
-
<div id="method-c-new" class="method-detail ">
|
264
|
-
|
265
|
-
<div class="method-heading">
|
266
|
-
<span class="method-name">new</span><span
|
267
|
-
class="method-args">(id=nil, api_key={})</span>
|
268
|
-
|
269
|
-
<span class="method-click-advice">click to toggle source</span>
|
270
|
-
|
271
|
-
</div>
|
272
|
-
|
273
|
-
|
274
|
-
<div class="method-description">
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
<div class="method-source-code" id="new-source">
|
282
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 722</span>
|
283
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">api_key</span>={})
|
284
|
-
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
285
|
-
<span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
|
286
|
-
<span class="ruby-ivar">@client</span> = <span class="ruby-constant">Flickr</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@api_key</span>
|
287
|
-
<span class="ruby-keyword">end</span></pre>
|
288
|
-
</div><!-- new-source -->
|
289
|
-
|
290
|
-
</div>
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
</div><!-- new-method -->
|
296
|
-
|
297
|
-
|
298
|
-
</section><!-- public-class-method-details -->
|
299
|
-
|
300
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
301
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
302
|
-
|
303
|
-
|
304
|
-
<div id="method-i-getInfo" class="method-detail ">
|
305
|
-
|
306
|
-
<div class="method-heading">
|
307
|
-
<span class="method-name">getInfo</span><span
|
308
|
-
class="method-args">()</span>
|
309
|
-
|
310
|
-
<span class="method-click-advice">click to toggle source</span>
|
311
|
-
|
312
|
-
</div>
|
313
|
-
|
314
|
-
|
315
|
-
<div class="method-description">
|
316
|
-
|
317
|
-
<p>Implements flickr.photosets.getInfo private, once we can call it as needed</p>
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
<div class="method-source-code" id="getInfo-source">
|
323
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 730</span>
|
324
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getInfo</span>
|
325
|
-
<span class="ruby-identifier">info</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photosets_getInfo</span>(<span class="ruby-string">'photoset_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'photoset'</span>]
|
326
|
-
<span class="ruby-ivar">@owner</span> = <span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>[<span class="ruby-string">'owner'</span>], <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-ivar">@api_key</span>)
|
327
|
-
<span class="ruby-ivar">@primary</span> = <span class="ruby-identifier">info</span>[<span class="ruby-string">'primary'</span>]
|
328
|
-
<span class="ruby-ivar">@photos</span> = <span class="ruby-identifier">info</span>[<span class="ruby-string">'photos'</span>]
|
329
|
-
<span class="ruby-ivar">@title</span> = <span class="ruby-identifier">info</span>[<span class="ruby-string">'title'</span>]
|
330
|
-
<span class="ruby-ivar">@description</span> = <span class="ruby-identifier">info</span>[<span class="ruby-string">'description'</span>]
|
331
|
-
<span class="ruby-ivar">@url</span> = <span class="ruby-node">"http://www.flickr.com/photos/#{@owner.getInfo.username}/sets/#{@id}/"</span>
|
332
|
-
<span class="ruby-keyword">self</span>
|
333
|
-
<span class="ruby-keyword">end</span></pre>
|
334
|
-
</div><!-- getInfo-source -->
|
335
|
-
|
336
|
-
</div>
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
</div><!-- getInfo-method -->
|
342
|
-
|
343
|
-
|
344
|
-
<div id="method-i-getPhotos" class="method-detail ">
|
345
|
-
|
346
|
-
<div class="method-heading">
|
347
|
-
<span class="method-name">getPhotos</span><span
|
348
|
-
class="method-args">()</span>
|
349
|
-
|
350
|
-
<span class="method-click-advice">click to toggle source</span>
|
351
|
-
|
352
|
-
</div>
|
353
|
-
|
354
|
-
|
355
|
-
<div class="method-description">
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
361
|
-
|
362
|
-
<div class="method-source-code" id="getPhotos-source">
|
363
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 741</span>
|
364
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getPhotos</span>
|
365
|
-
<span class="ruby-identifier">photosetPhotos</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_request</span>(<span class="ruby-string">'photosets.getPhotos'</span>, {<span class="ruby-string">'photoset_id'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@id</span>}, <span class="ruby-string">"photoset"</span>)
|
366
|
-
<span class="ruby-keyword">end</span></pre>
|
367
|
-
</div><!-- getPhotos-source -->
|
368
|
-
|
369
|
-
</div>
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
</div><!-- getPhotos-method -->
|
375
|
-
|
376
|
-
|
377
|
-
</section><!-- public-instance-method-details -->
|
378
|
-
|
379
|
-
</section><!-- 5Buntitled-5D -->
|
380
|
-
|
381
|
-
</div><!-- documentation -->
|
382
|
-
|
383
|
-
|
384
|
-
<footer id="validator-badges">
|
385
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
386
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
387
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
388
|
-
</footer>
|
389
|
-
|