flickr.rb 1.1.2 → 1.2.0
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.
- checksums.yaml +4 -4
- data/Changelog.txt +8 -0
- data/Gemfile.lock +2 -2
- data/README.md +115 -0
- data/Rakefile +1 -1
- data/flickr.gemspec +2 -2
- data/lib/flickr.rb +20 -7
- data/rdoc/Flickr.html +182 -141
- data/rdoc/Flickr/Config.html +103 -70
- data/rdoc/Flickr/Group.html +104 -74
- data/rdoc/Flickr/Photo.html +205 -174
- data/rdoc/Flickr/PhotoCollection.html +98 -66
- data/rdoc/Flickr/Photoset.html +107 -77
- data/rdoc/Flickr/User.html +137 -107
- data/rdoc/{README_txt.html → README_md.html} +141 -88
- data/rdoc/created.rid +3 -3
- data/rdoc/index.html +36 -48
- data/rdoc/js/darkfish.js +15 -0
- data/rdoc/js/search.js +5 -20
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/rdoc.css +241 -226
- data/rdoc/table_of_contents.html +194 -426
- data/test/flickr_test.rb +16 -1
- metadata +4 -11
- data/README.txt +0 -92
- data/rdoc/fonts.css +0 -167
- data/rdoc/fonts/Lato-Light.ttf +0 -0
- data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
- data/rdoc/fonts/Lato-Regular.ttf +0 -0
- data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
@@ -2,98 +2,131 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta charset=
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
6
|
|
7
7
|
<title>class Flickr::PhotoCollection - Flickr</title>
|
8
8
|
|
9
|
-
<link href="../
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
11
10
|
|
12
11
|
<script type="text/javascript">
|
13
12
|
var rdoc_rel_prefix = "../";
|
14
13
|
</script>
|
15
14
|
|
16
|
-
<script src="../js/jquery.js"></script>
|
17
|
-
<script src="../js/navigation.js"></script>
|
18
|
-
<script src="../js/search_index.js"></script>
|
19
|
-
<script src="../js/search.js"></script>
|
20
|
-
<script src="../js/searcher.js"></script>
|
21
|
-
<script src="../js/darkfish.js"></script>
|
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>
|
22
21
|
|
23
22
|
|
24
|
-
<body id="top"
|
25
|
-
<nav
|
26
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
<a href="../index.html" rel="home">Home</a>
|
30
|
-
</h2>
|
31
|
-
|
32
|
-
<div id="table-of-contents-navigation">
|
33
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
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>
|
34
28
|
<a href="../table_of_contents.html#classes">Classes</a>
|
35
29
|
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
-
</
|
37
|
-
</
|
30
|
+
</h3>
|
31
|
+
</nav>
|
38
32
|
|
39
|
-
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
40
35
|
<form action="#" method="get" accept-charset="utf-8">
|
41
|
-
<
|
42
|
-
<input
|
43
|
-
aria-autocomplete="list" aria-controls="search-results"
|
44
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
45
38
|
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
-
</
|
47
|
-
|
48
|
-
<ul id="search-results" aria-label="Search Results"
|
49
|
-
aria-busy="false" aria-expanded="false"
|
50
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
39
|
+
</h3>
|
51
40
|
</form>
|
52
|
-
</div>
|
53
41
|
|
54
|
-
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
55
45
|
|
56
46
|
|
57
47
|
|
58
|
-
<div id="
|
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
|
+
|
59
56
|
|
60
|
-
|
61
|
-
<h3>Parent</h3>
|
57
|
+
</div>
|
62
58
|
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
63
|
|
64
64
|
<p class="link">Array
|
65
65
|
|
66
|
-
</
|
66
|
+
</nav>
|
67
67
|
|
68
68
|
|
69
69
|
|
70
70
|
<!-- Method Quickref -->
|
71
|
-
<
|
72
|
-
<h3>Methods</h3>
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
73
|
|
74
|
-
<ul class="link-list"
|
74
|
+
<ul class="link-list">
|
75
75
|
|
76
76
|
<li ><a href="#method-c-new">::new</a>
|
77
77
|
|
78
78
|
</ul>
|
79
|
-
</
|
79
|
+
</nav>
|
80
80
|
|
81
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>
|
82
92
|
</nav>
|
83
93
|
|
84
|
-
<
|
85
|
-
<
|
86
|
-
class Flickr::PhotoCollection
|
87
|
-
</h1>
|
94
|
+
<nav id="classindex-section" class="section project-section">
|
95
|
+
<h3 class="section-header">Class and Module Index</h3>
|
88
96
|
|
89
|
-
<
|
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">
|
90
123
|
|
91
124
|
<p>A collection of photos is returned as a <a
|
92
125
|
href="PhotoCollection.html">PhotoCollection</a>, a subclass of Array. This
|
93
126
|
allows us to retain the pagination info returned by <a
|
94
127
|
href="../Flickr.html">Flickr</a> and make it accessible in a friendly way</p>
|
95
128
|
|
96
|
-
</
|
129
|
+
</div><!-- description -->
|
97
130
|
|
98
131
|
|
99
132
|
|
@@ -106,10 +139,9 @@ href="../Flickr.html">Flickr</a> and make it accessible in a friendly way</p>
|
|
106
139
|
|
107
140
|
|
108
141
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
</header>
|
142
|
+
<!-- Attributes -->
|
143
|
+
<section id="attribute-method-details" class="method-section section">
|
144
|
+
<h3 class="section-header">Attributes</h3>
|
113
145
|
|
114
146
|
|
115
147
|
<div id="attribute-i-page" class="method-detail">
|
@@ -164,14 +196,13 @@ href="../Flickr.html">Flickr</a> and make it accessible in a friendly way</p>
|
|
164
196
|
</div>
|
165
197
|
</div>
|
166
198
|
|
167
|
-
</section
|
199
|
+
</section><!-- attribute-method-details -->
|
168
200
|
|
169
201
|
|
202
|
+
<!-- Methods -->
|
170
203
|
|
171
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
172
|
-
|
173
|
-
<h3>Public Class Methods</h3>
|
174
|
-
</header>
|
204
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
205
|
+
<h3 class="section-header">Public Class Methods</h3>
|
175
206
|
|
176
207
|
|
177
208
|
<div id="method-c-new" class="method-detail ">
|
@@ -197,7 +228,7 @@ are related to (e.g 'photos', 'photoset', etc)</p>
|
|
197
228
|
|
198
229
|
|
199
230
|
<div class="method-source-code" id="new-source">
|
200
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
231
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 238</span>
|
201
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>)
|
202
233
|
<span class="ruby-identifier">photos</span> = <span class="ruby-identifier">photos_api_response</span>[<span class="ruby-identifier">list_node</span>]
|
203
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>])}
|
@@ -205,25 +236,26 @@ are related to (e.g 'photos', 'photoset', etc)</p>
|
|
205
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>
|
206
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>) }
|
207
238
|
<span class="ruby-keyword">end</span></pre>
|
208
|
-
</div
|
239
|
+
</div><!-- new-source -->
|
209
240
|
|
210
241
|
</div>
|
211
242
|
|
212
243
|
|
213
244
|
|
214
245
|
|
215
|
-
</div
|
246
|
+
</div><!-- new-method -->
|
216
247
|
|
217
248
|
|
218
|
-
</section
|
249
|
+
</section><!-- public-class-method-details -->
|
219
250
|
|
220
|
-
</section
|
221
|
-
|
251
|
+
</section><!-- 5Buntitled-5D -->
|
252
|
+
|
253
|
+
</div><!-- documentation -->
|
222
254
|
|
223
255
|
|
224
|
-
<footer id="validator-badges"
|
225
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
226
|
-
<p>Generated by <a href="
|
227
|
-
<p>
|
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.
|
228
260
|
</footer>
|
229
261
|
|
data/rdoc/Flickr/Photoset.html
CHANGED
@@ -2,76 +2,76 @@
|
|
2
2
|
|
3
3
|
<html>
|
4
4
|
<head>
|
5
|
-
<meta charset=
|
5
|
+
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
|
6
6
|
|
7
7
|
<title>class Flickr::Photoset - Flickr</title>
|
8
8
|
|
9
|
-
<link href="../
|
10
|
-
<link href="../rdoc.css" rel="stylesheet">
|
9
|
+
<link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
|
11
10
|
|
12
11
|
<script type="text/javascript">
|
13
12
|
var rdoc_rel_prefix = "../";
|
14
13
|
</script>
|
15
14
|
|
16
|
-
<script src="../js/jquery.js"></script>
|
17
|
-
<script src="../js/navigation.js"></script>
|
18
|
-
<script src="../js/search_index.js"></script>
|
19
|
-
<script src="../js/search.js"></script>
|
20
|
-
<script src="../js/searcher.js"></script>
|
21
|
-
<script src="../js/darkfish.js"></script>
|
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>
|
22
21
|
|
23
22
|
|
24
|
-
<body id="top"
|
25
|
-
<nav
|
26
|
-
<
|
27
|
-
|
28
|
-
|
29
|
-
<a href="../index.html" rel="home">Home</a>
|
30
|
-
</h2>
|
31
|
-
|
32
|
-
<div id="table-of-contents-navigation">
|
33
|
-
<a href="../table_of_contents.html#pages">Pages</a>
|
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>
|
34
28
|
<a href="../table_of_contents.html#classes">Classes</a>
|
35
29
|
<a href="../table_of_contents.html#methods">Methods</a>
|
36
|
-
</
|
37
|
-
</
|
30
|
+
</h3>
|
31
|
+
</nav>
|
38
32
|
|
39
|
-
|
33
|
+
|
34
|
+
<nav id="search-section" class="section project-section" class="initially-hidden">
|
40
35
|
<form action="#" method="get" accept-charset="utf-8">
|
41
|
-
<
|
42
|
-
<input
|
43
|
-
aria-autocomplete="list" aria-controls="search-results"
|
44
|
-
type="text" name="search" placeholder="Search" spellcheck="false"
|
36
|
+
<h3 class="section-header">
|
37
|
+
<input type="text" name="search" placeholder="Search" id="search-field"
|
45
38
|
title="Type to search, Up and Down to navigate, Enter to load">
|
46
|
-
</
|
47
|
-
|
48
|
-
<ul id="search-results" aria-label="Search Results"
|
49
|
-
aria-busy="false" aria-expanded="false"
|
50
|
-
aria-atomic="false" class="initially-hidden"></ul>
|
39
|
+
</h3>
|
51
40
|
</form>
|
52
|
-
</div>
|
53
41
|
|
54
|
-
|
42
|
+
<ul id="search-results" class="initially-hidden"></ul>
|
43
|
+
</nav>
|
44
|
+
|
55
45
|
|
56
46
|
|
57
47
|
|
58
|
-
<div id="
|
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
|
+
|
59
56
|
|
60
|
-
|
61
|
-
<h3>Parent</h3>
|
57
|
+
</div>
|
62
58
|
|
59
|
+
<div id="class-metadata">
|
60
|
+
|
61
|
+
<nav id="parent-class-section" class="section">
|
62
|
+
<h3 class="section-header">Parent</h3>
|
63
63
|
|
64
64
|
<p class="link">Object
|
65
65
|
|
66
|
-
</
|
66
|
+
</nav>
|
67
67
|
|
68
68
|
|
69
69
|
|
70
70
|
<!-- Method Quickref -->
|
71
|
-
<
|
72
|
-
<h3>Methods</h3>
|
71
|
+
<nav id="method-list-section" class="section">
|
72
|
+
<h3 class="section-header">Methods</h3>
|
73
73
|
|
74
|
-
<ul class="link-list"
|
74
|
+
<ul class="link-list">
|
75
75
|
|
76
76
|
<li ><a href="#method-c-new">::new</a>
|
77
77
|
|
@@ -80,23 +80,56 @@
|
|
80
80
|
<li ><a href="#method-i-getPhotos">#getPhotos</a>
|
81
81
|
|
82
82
|
</ul>
|
83
|
-
</
|
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>
|
84
119
|
|
85
120
|
</div>
|
86
121
|
</nav>
|
87
122
|
|
88
|
-
<
|
89
|
-
<h1
|
90
|
-
class Flickr::Photoset
|
91
|
-
</h1>
|
123
|
+
<div id="documentation">
|
124
|
+
<h1 class="class">class Flickr::Photoset</h1>
|
92
125
|
|
93
|
-
<
|
126
|
+
<div id="description" class="description">
|
94
127
|
|
95
128
|
<p>Todo: flickr.photosets.delete flickr.photosets.editMeta
|
96
129
|
flickr.photosets.editPhotos flickr.photosets.getContext
|
97
130
|
flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
98
131
|
|
99
|
-
</
|
132
|
+
</div><!-- description -->
|
100
133
|
|
101
134
|
|
102
135
|
|
@@ -109,10 +142,9 @@ flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
|
109
142
|
|
110
143
|
|
111
144
|
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
</header>
|
145
|
+
<!-- Attributes -->
|
146
|
+
<section id="attribute-method-details" class="method-section section">
|
147
|
+
<h3 class="section-header">Attributes</h3>
|
116
148
|
|
117
149
|
|
118
150
|
<div id="attribute-i-client" class="method-detail">
|
@@ -219,14 +251,13 @@ flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
|
219
251
|
</div>
|
220
252
|
</div>
|
221
253
|
|
222
|
-
</section
|
254
|
+
</section><!-- attribute-method-details -->
|
223
255
|
|
224
256
|
|
257
|
+
<!-- Methods -->
|
225
258
|
|
226
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
227
|
-
|
228
|
-
<h3>Public Class Methods</h3>
|
229
|
-
</header>
|
259
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
260
|
+
<h3 class="section-header">Public Class Methods</h3>
|
230
261
|
|
231
262
|
|
232
263
|
<div id="method-c-new" class="method-detail ">
|
@@ -248,28 +279,26 @@ flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
|
248
279
|
|
249
280
|
|
250
281
|
<div class="method-source-code" id="new-source">
|
251
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
282
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 722</span>
|
252
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>={})
|
253
284
|
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
254
285
|
<span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
|
255
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>
|
256
287
|
<span class="ruby-keyword">end</span></pre>
|
257
|
-
</div
|
288
|
+
</div><!-- new-source -->
|
258
289
|
|
259
290
|
</div>
|
260
291
|
|
261
292
|
|
262
293
|
|
263
294
|
|
264
|
-
</div
|
295
|
+
</div><!-- new-method -->
|
265
296
|
|
266
297
|
|
267
|
-
</section
|
298
|
+
</section><!-- public-class-method-details -->
|
268
299
|
|
269
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
270
|
-
|
271
|
-
<h3>Public Instance Methods</h3>
|
272
|
-
</header>
|
300
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
301
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
273
302
|
|
274
303
|
|
275
304
|
<div id="method-i-getInfo" class="method-detail ">
|
@@ -291,7 +320,7 @@ flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
|
291
320
|
|
292
321
|
|
293
322
|
<div class="method-source-code" id="getInfo-source">
|
294
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
323
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 730</span>
|
295
324
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getInfo</span>
|
296
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>]
|
297
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>)
|
@@ -302,14 +331,14 @@ flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
|
302
331
|
<span class="ruby-ivar">@url</span> = <span class="ruby-node">"http://www.flickr.com/photos/#{@owner.getInfo.username}/sets/#{@id}/"</span>
|
303
332
|
<span class="ruby-keyword">self</span>
|
304
333
|
<span class="ruby-keyword">end</span></pre>
|
305
|
-
</div
|
334
|
+
</div><!-- getInfo-source -->
|
306
335
|
|
307
336
|
</div>
|
308
337
|
|
309
338
|
|
310
339
|
|
311
340
|
|
312
|
-
</div
|
341
|
+
</div><!-- getInfo-method -->
|
313
342
|
|
314
343
|
|
315
344
|
<div id="method-i-getPhotos" class="method-detail ">
|
@@ -331,29 +360,30 @@ flickr.photosets.getInfo flickr.photosets.getPhotos</p>
|
|
331
360
|
|
332
361
|
|
333
362
|
<div class="method-source-code" id="getPhotos-source">
|
334
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
363
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 741</span>
|
335
364
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">getPhotos</span>
|
336
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>)
|
337
366
|
<span class="ruby-keyword">end</span></pre>
|
338
|
-
</div
|
367
|
+
</div><!-- getPhotos-source -->
|
339
368
|
|
340
369
|
</div>
|
341
370
|
|
342
371
|
|
343
372
|
|
344
373
|
|
345
|
-
</div
|
374
|
+
</div><!-- getPhotos-method -->
|
346
375
|
|
347
376
|
|
348
|
-
</section
|
377
|
+
</section><!-- public-instance-method-details -->
|
349
378
|
|
350
|
-
</section
|
351
|
-
|
379
|
+
</section><!-- 5Buntitled-5D -->
|
380
|
+
|
381
|
+
</div><!-- documentation -->
|
352
382
|
|
353
383
|
|
354
|
-
<footer id="validator-badges"
|
355
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
356
|
-
<p>Generated by <a href="
|
357
|
-
<p>
|
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.
|
358
388
|
</footer>
|
359
389
|
|