flickr.rb 1.1.2 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- 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
data/rdoc/Flickr/User.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::User - 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>
|
32
|
+
|
38
33
|
|
39
|
-
|
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
|
|
@@ -100,24 +100,57 @@
|
|
100
100
|
<li ><a href="#method-i-username">#username</a>
|
101
101
|
|
102
102
|
</ul>
|
103
|
-
</
|
103
|
+
</nav>
|
104
104
|
|
105
105
|
</div>
|
106
|
+
|
107
|
+
<div id="project-metadata">
|
108
|
+
<nav id="fileindex-section" class="section project-section">
|
109
|
+
<h3 class="section-header">Pages</h3>
|
110
|
+
|
111
|
+
<ul>
|
112
|
+
|
113
|
+
<li class="file"><a href="../README_md.html">README</a>
|
114
|
+
|
115
|
+
</ul>
|
106
116
|
</nav>
|
107
117
|
|
108
|
-
<
|
109
|
-
<
|
110
|
-
class Flickr::User
|
111
|
-
</h1>
|
118
|
+
<nav id="classindex-section" class="section project-section">
|
119
|
+
<h3 class="section-header">Class and Module Index</h3>
|
112
120
|
|
113
|
-
<
|
121
|
+
<ul class="link-list">
|
122
|
+
|
123
|
+
<li><a href="../Flickr.html">Flickr</a>
|
124
|
+
|
125
|
+
<li><a href="../Flickr/Config.html">Flickr::Config</a>
|
126
|
+
|
127
|
+
<li><a href="../Flickr/Group.html">Flickr::Group</a>
|
128
|
+
|
129
|
+
<li><a href="../Flickr/Photo.html">Flickr::Photo</a>
|
130
|
+
|
131
|
+
<li><a href="../Flickr/PhotoCollection.html">Flickr::PhotoCollection</a>
|
132
|
+
|
133
|
+
<li><a href="../Flickr/Photoset.html">Flickr::Photoset</a>
|
134
|
+
|
135
|
+
<li><a href="../Flickr/User.html">Flickr::User</a>
|
136
|
+
|
137
|
+
</ul>
|
138
|
+
</nav>
|
139
|
+
|
140
|
+
</div>
|
141
|
+
</nav>
|
142
|
+
|
143
|
+
<div id="documentation">
|
144
|
+
<h1 class="class">class Flickr::User</h1>
|
145
|
+
|
146
|
+
<div id="description" class="description">
|
114
147
|
|
115
148
|
<p>Todo: logged_in? if logged in: flickr.blogs.getList flickr.favorites.add
|
116
149
|
flickr.favorites.remove flickr.groups.browse flickr.photos.getCounts
|
117
150
|
flickr.photos.getNotInSet flickr.photos.getUntagged flickr.photosets.create
|
118
151
|
flickr.photosets.orderSets flickr.test.login uploading</p>
|
119
152
|
|
120
|
-
</
|
153
|
+
</div><!-- description -->
|
121
154
|
|
122
155
|
|
123
156
|
|
@@ -130,10 +163,9 @@ flickr.photosets.orderSets flickr.test.login uploading</p>
|
|
130
163
|
|
131
164
|
|
132
165
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
</header>
|
166
|
+
<!-- Attributes -->
|
167
|
+
<section id="attribute-method-details" class="method-section section">
|
168
|
+
<h3 class="section-header">Attributes</h3>
|
137
169
|
|
138
170
|
|
139
171
|
<div id="attribute-i-client" class="method-detail">
|
@@ -253,14 +285,13 @@ flickr.photosets.orderSets flickr.test.login uploading</p>
|
|
253
285
|
</div>
|
254
286
|
</div>
|
255
287
|
|
256
|
-
</section
|
288
|
+
</section><!-- attribute-method-details -->
|
257
289
|
|
258
290
|
|
291
|
+
<!-- Methods -->
|
259
292
|
|
260
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
261
|
-
|
262
|
-
<h3>Public Class Methods</h3>
|
263
|
-
</header>
|
293
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
294
|
+
<h3 class="section-header">Public Class Methods</h3>
|
264
295
|
|
265
296
|
|
266
297
|
<div id="method-c-new" class="method-detail ">
|
@@ -293,7 +324,7 @@ are initlialized as the result of a method called on the flickr client
|
|
293
324
|
|
294
325
|
|
295
326
|
<div class="method-source-code" id="new-source">
|
296
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
327
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 310</span>
|
297
328
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id_or_params_hash</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">username</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">email</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">password</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">api_key</span>={})
|
298
329
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">id_or_params_hash</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
299
330
|
<span class="ruby-identifier">id_or_params_hash</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">"@#{k}"</span>, <span class="ruby-identifier">v</span>) } <span class="ruby-comment"># convert extra_params into instance variables</span>
|
@@ -306,22 +337,20 @@ are initlialized as the result of a method called on the flickr client
|
|
306
337
|
<span class="ruby-keyword">end</span>
|
307
338
|
<span class="ruby-ivar">@client</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Flickr</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:api_key</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@api_key</span>, <span class="ruby-value">:shared_secret</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@shared_secret</span>, <span class="ruby-value">:auth_token</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@auth_token</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@api_key</span>
|
308
339
|
<span class="ruby-keyword">end</span></pre>
|
309
|
-
</div
|
340
|
+
</div><!-- new-source -->
|
310
341
|
|
311
342
|
</div>
|
312
343
|
|
313
344
|
|
314
345
|
|
315
346
|
|
316
|
-
</div
|
347
|
+
</div><!-- new-method -->
|
317
348
|
|
318
349
|
|
319
|
-
</section
|
350
|
+
</section><!-- public-class-method-details -->
|
320
351
|
|
321
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
322
|
-
|
323
|
-
<h3>Public Instance Methods</h3>
|
324
|
-
</header>
|
352
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
353
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
325
354
|
|
326
355
|
|
327
356
|
<div id="method-i-contacts" class="method-detail ">
|
@@ -343,19 +372,19 @@ are initlialized as the result of a method called on the flickr client
|
|
343
372
|
|
344
373
|
|
345
374
|
<div class="method-source-code" id="contacts-source">
|
346
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
375
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 382</span>
|
347
376
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contacts</span>
|
348
377
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">contacts_getPublicList</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'contacts'</span>][<span class="ruby-string">'contact'</span>].<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">contact</span><span class="ruby-operator">|</span> <span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">contact</span>[<span class="ruby-string">'nsid'</span>], <span class="ruby-identifier">contact</span>[<span class="ruby-string">'username'</span>], <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-ivar">@api_key</span>) }
|
349
378
|
<span class="ruby-comment">#or</span>
|
350
379
|
<span class="ruby-keyword">end</span></pre>
|
351
|
-
</div
|
380
|
+
</div><!-- contacts-source -->
|
352
381
|
|
353
382
|
</div>
|
354
383
|
|
355
384
|
|
356
385
|
|
357
386
|
|
358
|
-
</div
|
387
|
+
</div><!-- contacts-method -->
|
359
388
|
|
360
389
|
|
361
390
|
<div id="method-i-contactsPhotos" class="method-detail ">
|
@@ -378,18 +407,18 @@ flickr.photos.getContactsPhotos</p>
|
|
378
407
|
|
379
408
|
|
380
409
|
<div class="method-source-code" id="contactsPhotos-source">
|
381
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
410
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 408</span>
|
382
411
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">contactsPhotos</span>
|
383
412
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_request</span>(<span class="ruby-string">'photos.getContactsPublicPhotos'</span>, <span class="ruby-string">'user_id'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@id</span>)
|
384
413
|
<span class="ruby-keyword">end</span></pre>
|
385
|
-
</div
|
414
|
+
</div><!-- contactsPhotos-source -->
|
386
415
|
|
387
416
|
</div>
|
388
417
|
|
389
418
|
|
390
419
|
|
391
420
|
|
392
|
-
</div
|
421
|
+
</div><!-- contactsPhotos-method -->
|
393
422
|
|
394
423
|
|
395
424
|
<div id="method-i-favorites" class="method-detail ">
|
@@ -411,18 +440,18 @@ flickr.photos.getContactsPhotos</p>
|
|
411
440
|
|
412
441
|
|
413
442
|
<div class="method-source-code" id="favorites-source">
|
414
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
443
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 388</span>
|
415
444
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">favorites</span>
|
416
445
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_request</span>(<span class="ruby-string">'favorites.getPublicList'</span>, <span class="ruby-string">'user_id'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@id</span>)
|
417
446
|
<span class="ruby-keyword">end</span></pre>
|
418
|
-
</div
|
447
|
+
</div><!-- favorites-source -->
|
419
448
|
|
420
449
|
</div>
|
421
450
|
|
422
451
|
|
423
452
|
|
424
453
|
|
425
|
-
</div
|
454
|
+
</div><!-- favorites-method -->
|
426
455
|
|
427
456
|
|
428
457
|
<div id="method-i-groups" class="method-detail ">
|
@@ -444,7 +473,7 @@ flickr.photos.getContactsPhotos</p>
|
|
444
473
|
|
445
474
|
|
446
475
|
<div class="method-source-code" id="groups-source">
|
447
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
476
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 359</span>
|
448
477
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">groups</span>
|
449
478
|
<span class="ruby-identifier">collection</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">people_getPublicGroups</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'groups'</span>][<span class="ruby-string">'group'</span>]
|
450
479
|
<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>
|
@@ -453,14 +482,14 @@ flickr.photos.getContactsPhotos</p>
|
|
453
482
|
<span class="ruby-string">"eighteenplus"</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">group</span>[<span class="ruby-string">'eighteenplus'</span>],
|
454
483
|
<span class="ruby-string">"client"</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@client</span>) }
|
455
484
|
<span class="ruby-keyword">end</span></pre>
|
456
|
-
</div
|
485
|
+
</div><!-- groups-source -->
|
457
486
|
|
458
487
|
</div>
|
459
488
|
|
460
489
|
|
461
490
|
|
462
491
|
|
463
|
-
</div
|
492
|
+
</div><!-- groups-method -->
|
464
493
|
|
465
494
|
|
466
495
|
<div id="method-i-photos" class="method-detail ">
|
@@ -485,19 +514,19 @@ user.photos('per_page' => '25', 'extras' =>
|
|
485
514
|
|
486
515
|
|
487
516
|
<div class="method-source-code" id="photos-source">
|
488
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
517
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 371</span>
|
489
518
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">photos</span>(<span class="ruby-identifier">options</span>={})
|
490
519
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_request</span>(<span class="ruby-string">'people.getPublicPhotos'</span>, {<span class="ruby-string">'user_id'</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@id</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options</span>))
|
491
520
|
<span class="ruby-comment"># what about non-public photos?</span>
|
492
521
|
<span class="ruby-keyword">end</span></pre>
|
493
|
-
</div
|
522
|
+
</div><!-- photos-source -->
|
494
523
|
|
495
524
|
</div>
|
496
525
|
|
497
526
|
|
498
527
|
|
499
528
|
|
500
|
-
</div
|
529
|
+
</div><!-- photos-method -->
|
501
530
|
|
502
531
|
|
503
532
|
<div id="method-i-photosets" class="method-detail ">
|
@@ -519,18 +548,18 @@ user.photos('per_page' => '25', 'extras' =>
|
|
519
548
|
|
520
549
|
|
521
550
|
<div class="method-source-code" id="photosets-source">
|
522
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
551
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 393</span>
|
523
552
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">photosets</span>
|
524
553
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photosets_getList</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'photosets'</span>][<span class="ruby-string">'photoset'</span>].<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">photoset</span><span class="ruby-operator">|</span> <span class="ruby-constant">Photoset</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">photoset</span>[<span class="ruby-string">'id'</span>], <span class="ruby-ivar">@api_key</span>) }
|
525
554
|
<span class="ruby-keyword">end</span></pre>
|
526
|
-
</div
|
555
|
+
</div><!-- photosets-source -->
|
527
556
|
|
528
557
|
</div>
|
529
558
|
|
530
559
|
|
531
560
|
|
532
561
|
|
533
|
-
</div
|
562
|
+
</div><!-- photosets-method -->
|
534
563
|
|
535
564
|
|
536
565
|
<div id="method-i-popular_tags" class="method-detail ">
|
@@ -552,18 +581,18 @@ user.photos('per_page' => '25', 'extras' =>
|
|
552
581
|
|
553
582
|
|
554
583
|
<div class="method-source-code" id="popular_tags-source">
|
555
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
584
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 403</span>
|
556
585
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">popular_tags</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">10</span>)
|
557
586
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">tags_getListUserPopular</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>, <span class="ruby-string">'count'</span>=<span class="ruby-operator">></span> <span class="ruby-identifier">count</span>)[<span class="ruby-string">'who'</span>][<span class="ruby-string">'tags'</span>][<span class="ruby-string">'tag'</span>].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">tag_score</span><span class="ruby-operator">|</span> <span class="ruby-identifier">tag_score</span>[<span class="ruby-string">"tag"</span>] = <span class="ruby-identifier">tag_score</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">"content"</span>) }
|
558
587
|
<span class="ruby-keyword">end</span></pre>
|
559
|
-
</div
|
588
|
+
</div><!-- popular_tags-source -->
|
560
589
|
|
561
590
|
</div>
|
562
591
|
|
563
592
|
|
564
593
|
|
565
594
|
|
566
|
-
</div
|
595
|
+
</div><!-- popular_tags-method -->
|
567
596
|
|
568
597
|
|
569
598
|
<div id="method-i-pretty_url" class="method-detail ">
|
@@ -585,18 +614,18 @@ user.photos('per_page' => '25', 'extras' =>
|
|
585
614
|
|
586
615
|
|
587
616
|
<div class="method-source-code" id="pretty_url-source">
|
588
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
617
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 354</span>
|
589
618
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pretty_url</span>
|
590
619
|
<span class="ruby-ivar">@pretty_url</span> <span class="ruby-operator">||=</span> <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">urls_getUserProfile</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'user'</span>][<span class="ruby-string">'url'</span>]
|
591
620
|
<span class="ruby-keyword">end</span></pre>
|
592
|
-
</div
|
621
|
+
</div><!-- pretty_url-source -->
|
593
622
|
|
594
623
|
</div>
|
595
624
|
|
596
625
|
|
597
626
|
|
598
627
|
|
599
|
-
</div
|
628
|
+
</div><!-- pretty_url-method -->
|
600
629
|
|
601
630
|
|
602
631
|
<div id="method-i-tag" class="method-detail ">
|
@@ -618,18 +647,18 @@ user.photos('per_page' => '25', 'extras' =>
|
|
618
647
|
|
619
648
|
|
620
649
|
<div class="method-source-code" id="tag-source">
|
621
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
650
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 377</span>
|
622
651
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag</span>)
|
623
652
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>, <span class="ruby-string">'tags'</span>=<span class="ruby-operator">></span><span class="ruby-identifier">tag</span>)
|
624
653
|
<span class="ruby-keyword">end</span></pre>
|
625
|
-
</div
|
654
|
+
</div><!-- tag-source -->
|
626
655
|
|
627
656
|
</div>
|
628
657
|
|
629
658
|
|
630
659
|
|
631
660
|
|
632
|
-
</div
|
661
|
+
</div><!-- tag-method -->
|
633
662
|
|
634
663
|
|
635
664
|
<div id="method-i-tags" class="method-detail ">
|
@@ -651,18 +680,18 @@ user.photos('per_page' => '25', 'extras' =>
|
|
651
680
|
|
652
681
|
|
653
682
|
<div class="method-source-code" id="tags-source">
|
654
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
683
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 398</span>
|
655
684
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tags</span>
|
656
685
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">tags_getListUser</span>(<span class="ruby-string">'user_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'who'</span>][<span class="ruby-string">'tags'</span>][<span class="ruby-string">'tag'</span>].<span class="ruby-identifier">collect</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">tag</span><span class="ruby-operator">|</span> <span class="ruby-identifier">tag</span> }
|
657
686
|
<span class="ruby-keyword">end</span></pre>
|
658
|
-
</div
|
687
|
+
</div><!-- tags-source -->
|
659
688
|
|
660
689
|
</div>
|
661
690
|
|
662
691
|
|
663
692
|
|
664
693
|
|
665
|
-
</div
|
694
|
+
</div><!-- tags-method -->
|
666
695
|
|
667
696
|
|
668
697
|
<div id="method-i-to_s" class="method-detail ">
|
@@ -684,18 +713,18 @@ user.photos('per_page' => '25', 'extras' =>
|
|
684
713
|
|
685
714
|
|
686
715
|
<div class="method-source-code" id="to_s-source">
|
687
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
716
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 412</span>
|
688
717
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
689
718
|
<span class="ruby-ivar">@name</span>
|
690
719
|
<span class="ruby-keyword">end</span></pre>
|
691
|
-
</div
|
720
|
+
</div><!-- to_s-source -->
|
692
721
|
|
693
722
|
</div>
|
694
723
|
|
695
724
|
|
696
725
|
|
697
726
|
|
698
|
-
</div
|
727
|
+
</div><!-- to_s-method -->
|
699
728
|
|
700
729
|
|
701
730
|
<div id="method-i-username" class="method-detail ">
|
@@ -717,29 +746,30 @@ user.photos('per_page' => '25', 'extras' =>
|
|
717
746
|
|
718
747
|
|
719
748
|
<div class="method-source-code" id="username-source">
|
720
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
749
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 323</span>
|
721
750
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">username</span>
|
722
751
|
<span class="ruby-ivar">@username</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>.<span class="ruby-identifier">username</span> <span class="ruby-operator">:</span> <span class="ruby-ivar">@username</span>
|
723
752
|
<span class="ruby-keyword">end</span></pre>
|
724
|
-
</div
|
753
|
+
</div><!-- username-source -->
|
725
754
|
|
726
755
|
</div>
|
727
756
|
|
728
757
|
|
729
758
|
|
730
759
|
|
731
|
-
</div
|
760
|
+
</div><!-- username-method -->
|
732
761
|
|
733
762
|
|
734
|
-
</section
|
763
|
+
</section><!-- public-instance-method-details -->
|
735
764
|
|
736
|
-
</section
|
737
|
-
|
765
|
+
</section><!-- 5Buntitled-5D -->
|
766
|
+
|
767
|
+
</div><!-- documentation -->
|
738
768
|
|
739
769
|
|
740
|
-
<footer id="validator-badges"
|
741
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
742
|
-
<p>Generated by <a href="
|
743
|
-
<p>
|
770
|
+
<footer id="validator-badges">
|
771
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
772
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
773
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
744
774
|
</footer>
|
745
775
|
|