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/Photo.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::Photo - 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
|
|
@@ -142,19 +142,52 @@
|
|
142
142
|
<li ><a href="#method-i-url">#url</a>
|
143
143
|
|
144
144
|
</ul>
|
145
|
-
</
|
145
|
+
</nav>
|
146
146
|
|
147
147
|
</div>
|
148
|
+
|
149
|
+
<div id="project-metadata">
|
150
|
+
<nav id="fileindex-section" class="section project-section">
|
151
|
+
<h3 class="section-header">Pages</h3>
|
152
|
+
|
153
|
+
<ul>
|
154
|
+
|
155
|
+
<li class="file"><a href="../README_md.html">README</a>
|
156
|
+
|
157
|
+
</ul>
|
148
158
|
</nav>
|
149
159
|
|
150
|
-
<
|
151
|
-
<
|
152
|
-
class Flickr::Photo
|
153
|
-
</h1>
|
160
|
+
<nav id="classindex-section" class="section project-section">
|
161
|
+
<h3 class="section-header">Class and Module Index</h3>
|
154
162
|
|
155
|
-
<
|
163
|
+
<ul class="link-list">
|
164
|
+
|
165
|
+
<li><a href="../Flickr.html">Flickr</a>
|
166
|
+
|
167
|
+
<li><a href="../Flickr/Config.html">Flickr::Config</a>
|
168
|
+
|
169
|
+
<li><a href="../Flickr/Group.html">Flickr::Group</a>
|
170
|
+
|
171
|
+
<li><a href="../Flickr/Photo.html">Flickr::Photo</a>
|
172
|
+
|
173
|
+
<li><a href="../Flickr/PhotoCollection.html">Flickr::PhotoCollection</a>
|
174
|
+
|
175
|
+
<li><a href="../Flickr/Photoset.html">Flickr::Photoset</a>
|
176
|
+
|
177
|
+
<li><a href="../Flickr/User.html">Flickr::User</a>
|
178
|
+
|
179
|
+
</ul>
|
180
|
+
</nav>
|
181
|
+
|
182
|
+
</div>
|
183
|
+
</nav>
|
184
|
+
|
185
|
+
<div id="documentation">
|
186
|
+
<h1 class="class">class Flickr::Photo</h1>
|
187
|
+
|
188
|
+
<div id="description" class="description">
|
156
189
|
|
157
|
-
</
|
190
|
+
</div><!-- description -->
|
158
191
|
|
159
192
|
|
160
193
|
|
@@ -167,10 +200,9 @@
|
|
167
200
|
|
168
201
|
|
169
202
|
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
</header>
|
203
|
+
<!-- Attributes -->
|
204
|
+
<section id="attribute-method-details" class="method-section section">
|
205
|
+
<h3 class="section-header">Attributes</h3>
|
174
206
|
|
175
207
|
|
176
208
|
<div id="attribute-i-client" class="method-detail">
|
@@ -212,14 +244,13 @@
|
|
212
244
|
</div>
|
213
245
|
</div>
|
214
246
|
|
215
|
-
</section
|
247
|
+
</section><!-- attribute-method-details -->
|
216
248
|
|
217
249
|
|
250
|
+
<!-- Methods -->
|
218
251
|
|
219
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
220
|
-
|
221
|
-
<h3>Public Class Methods</h3>
|
222
|
-
</header>
|
252
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
253
|
+
<h3 class="section-header">Public Class Methods</h3>
|
223
254
|
|
224
255
|
|
225
256
|
<div id="method-c-new" class="method-detail ">
|
@@ -241,29 +272,27 @@
|
|
241
272
|
|
242
273
|
|
243
274
|
<div class="method-source-code" id="new-source">
|
244
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
275
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 436</span>
|
245
276
|
<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>={}, <span class="ruby-identifier">extra_params</span>={})
|
246
277
|
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
247
278
|
<span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
|
248
279
|
<span class="ruby-identifier">extra_params</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>
|
249
280
|
<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>
|
250
281
|
<span class="ruby-keyword">end</span></pre>
|
251
|
-
</div
|
282
|
+
</div><!-- new-source -->
|
252
283
|
|
253
284
|
</div>
|
254
285
|
|
255
286
|
|
256
287
|
|
257
288
|
|
258
|
-
</div
|
289
|
+
</div><!-- new-method -->
|
259
290
|
|
260
291
|
|
261
|
-
</section
|
292
|
+
</section><!-- public-class-method-details -->
|
262
293
|
|
263
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
264
|
-
|
265
|
-
<h3>Public Instance Methods</h3>
|
266
|
-
</header>
|
294
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
295
|
+
<h3 class="section-header">Public Instance Methods</h3>
|
267
296
|
|
268
297
|
|
269
298
|
<div id="method-i-5B-5D" class="method-detail ">
|
@@ -280,27 +309,28 @@
|
|
280
309
|
<div class="method-description">
|
281
310
|
|
282
311
|
<p>Allows access to all photos instance variables through hash like interface,
|
283
|
-
e.g. <a href=""datetaken"">photo</a> returns @datetaken instance
|
284
|
-
Useful for accessing any weird and wonderful parameter that may
|
285
|
-
returned by <a href="../Flickr.html">Flickr</a> when finding the
|
286
|
-
e.g. those returned by the extras argument in
|
312
|
+
e.g. <a href="http://"datetaken"">photo</a> returns @datetaken instance
|
313
|
+
variable. Useful for accessing any weird and wonderful parameter that may
|
314
|
+
have been returned by <a href="../Flickr.html">Flickr</a> when finding the
|
315
|
+
photo, e.g. those returned by the extras argument in
|
316
|
+
flickr.people.getPublicPhotos</p>
|
287
317
|
|
288
318
|
|
289
319
|
|
290
320
|
|
291
321
|
<div class="method-source-code" id="5B-5D-source">
|
292
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
322
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 449</span>
|
293
323
|
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">param_name</span>)
|
294
324
|
<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">"@#{param_name}"</span>)
|
295
325
|
<span class="ruby-keyword">end</span></pre>
|
296
|
-
</div
|
326
|
+
</div><!-- 5B-5D-source -->
|
297
327
|
|
298
328
|
</div>
|
299
329
|
|
300
330
|
|
301
331
|
|
302
332
|
|
303
|
-
</div
|
333
|
+
</div><!-- 5B-5D-method -->
|
304
334
|
|
305
335
|
|
306
336
|
<div id="method-i-add_note" class="method-detail ">
|
@@ -322,17 +352,17 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
322
352
|
|
323
353
|
|
324
354
|
<div class="method-source-code" id="add_note-source">
|
325
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
355
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 577</span>
|
326
356
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_note</span>(<span class="ruby-identifier">note</span>)
|
327
357
|
<span class="ruby-keyword">end</span></pre>
|
328
|
-
</div
|
358
|
+
</div><!-- add_note-source -->
|
329
359
|
|
330
360
|
</div>
|
331
361
|
|
332
362
|
|
333
363
|
|
334
364
|
|
335
|
-
</div
|
365
|
+
</div><!-- add_note-method -->
|
336
366
|
|
337
367
|
|
338
368
|
<div id="method-i-add_tag" class="method-detail ">
|
@@ -354,17 +384,17 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
354
384
|
|
355
385
|
|
356
386
|
<div class="method-source-code" id="add_tag-source">
|
357
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
387
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 599</span>
|
358
388
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag</span>)
|
359
389
|
<span class="ruby-keyword">end</span></pre>
|
360
|
-
</div
|
390
|
+
</div><!-- add_tag-source -->
|
361
391
|
|
362
392
|
</div>
|
363
393
|
|
364
394
|
|
365
395
|
|
366
396
|
|
367
|
-
</div
|
397
|
+
</div><!-- add_tag-method -->
|
368
398
|
|
369
399
|
|
370
400
|
<div id="method-i-context" class="method-detail ">
|
@@ -386,21 +416,21 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
386
416
|
|
387
417
|
|
388
418
|
<div class="method-source-code" id="context-source">
|
389
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
419
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 546</span>
|
390
420
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">context</span>
|
391
421
|
<span class="ruby-identifier">context</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getContext</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)
|
392
422
|
<span class="ruby-ivar">@previousPhoto</span> = <span class="ruby-constant">Photo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">context</span>[<span class="ruby-string">'prevphoto'</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">'id'</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-string">'prevphoto'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-string">'prevphoto'</span>][<span class="ruby-string">'id'</span>]<span class="ruby-operator">!=</span><span class="ruby-string">'0'</span>
|
393
423
|
<span class="ruby-ivar">@nextPhoto</span> = <span class="ruby-constant">Photo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">context</span>[<span class="ruby-string">'nextphoto'</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">'id'</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-string">'nextphoto'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-string">'nextphoto'</span>][<span class="ruby-string">'id'</span>]<span class="ruby-operator">!=</span><span class="ruby-string">'0'</span>
|
394
424
|
<span class="ruby-keyword">return</span> [<span class="ruby-ivar">@previousPhoto</span>, <span class="ruby-ivar">@nextPhoto</span>]
|
395
425
|
<span class="ruby-keyword">end</span></pre>
|
396
|
-
</div
|
426
|
+
</div><!-- context-source -->
|
397
427
|
|
398
428
|
</div>
|
399
429
|
|
400
430
|
|
401
431
|
|
402
432
|
|
403
|
-
</div
|
433
|
+
</div><!-- context-method -->
|
404
434
|
|
405
435
|
|
406
436
|
<div id="method-i-dates-3D" class="method-detail ">
|
@@ -422,17 +452,17 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
422
452
|
|
423
453
|
|
424
454
|
<div class="method-source-code" id="dates-3D-source">
|
425
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
455
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 581</span>
|
426
456
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">dates=</span>(<span class="ruby-identifier">dates</span>)
|
427
457
|
<span class="ruby-keyword">end</span></pre>
|
428
|
-
</div
|
458
|
+
</div><!-- dates-3D-source -->
|
429
459
|
|
430
460
|
</div>
|
431
461
|
|
432
462
|
|
433
463
|
|
434
464
|
|
435
|
-
</div
|
465
|
+
</div><!-- dates-3D-method -->
|
436
466
|
|
437
467
|
|
438
468
|
<div id="method-i-deleteNote" class="method-detail ">
|
@@ -454,17 +484,17 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
454
484
|
|
455
485
|
|
456
486
|
<div class="method-source-code" id="deleteNote-source">
|
457
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
487
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 616</span>
|
458
488
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">deleteNote</span>(<span class="ruby-identifier">note_id</span>)
|
459
489
|
<span class="ruby-keyword">end</span></pre>
|
460
|
-
</div
|
490
|
+
</div><!-- deleteNote-source -->
|
461
491
|
|
462
492
|
</div>
|
463
493
|
|
464
494
|
|
465
495
|
|
466
496
|
|
467
|
-
</div
|
497
|
+
</div><!-- deleteNote-method -->
|
468
498
|
|
469
499
|
|
470
500
|
<div id="method-i-description" class="method-detail ">
|
@@ -486,18 +516,18 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
486
516
|
|
487
517
|
|
488
518
|
<div class="method-source-code" id="description-source">
|
489
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
519
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 488</span>
|
490
520
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">description</span>
|
491
521
|
<span class="ruby-ivar">@description</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"description"</span>)
|
492
522
|
<span class="ruby-keyword">end</span></pre>
|
493
|
-
</div
|
523
|
+
</div><!-- description-source -->
|
494
524
|
|
495
525
|
</div>
|
496
526
|
|
497
527
|
|
498
528
|
|
499
529
|
|
500
|
-
</div
|
530
|
+
</div><!-- description-method -->
|
501
531
|
|
502
532
|
|
503
533
|
<div id="method-i-description-3D" class="method-detail ">
|
@@ -519,17 +549,17 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
519
549
|
|
520
550
|
|
521
551
|
<div class="method-source-code" id="description-3D-source">
|
522
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
552
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 595</span>
|
523
553
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">description=</span>(<span class="ruby-identifier">title</span>)
|
524
554
|
<span class="ruby-keyword">end</span></pre>
|
525
|
-
</div
|
555
|
+
</div><!-- description-3D-source -->
|
526
556
|
|
527
557
|
</div>
|
528
558
|
|
529
559
|
|
530
560
|
|
531
561
|
|
532
|
-
</div
|
562
|
+
</div><!-- description-3D-method -->
|
533
563
|
|
534
564
|
|
535
565
|
<div id="method-i-editNote" class="method-detail ">
|
@@ -551,17 +581,17 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
551
581
|
|
552
582
|
|
553
583
|
<div class="method-source-code" id="editNote-source">
|
554
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
584
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 620</span>
|
555
585
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">editNote</span>(<span class="ruby-identifier">note_id</span>)
|
556
586
|
<span class="ruby-keyword">end</span></pre>
|
557
|
-
</div
|
587
|
+
</div><!-- editNote-source -->
|
558
588
|
|
559
589
|
</div>
|
560
590
|
|
561
591
|
|
562
592
|
|
563
593
|
|
564
|
-
</div
|
594
|
+
</div><!-- editNote-method -->
|
565
595
|
|
566
596
|
|
567
597
|
<div id="method-i-exif" class="method-detail ">
|
@@ -583,18 +613,18 @@ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
|
|
583
613
|
|
584
614
|
|
585
615
|
<div class="method-source-code" id="exif-source">
|
586
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
616
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 554</span>
|
587
617
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exif</span>
|
588
618
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getExif</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'photo'</span>]
|
589
619
|
<span class="ruby-keyword">end</span></pre>
|
590
|
-
</div
|
620
|
+
</div><!-- exif-source -->
|
591
621
|
|
592
622
|
</div>
|
593
623
|
|
594
624
|
|
595
625
|
|
596
626
|
|
597
|
-
</div
|
627
|
+
</div><!-- exif-method -->
|
598
628
|
|
599
629
|
|
600
630
|
<div id="method-i-file" class="method-detail ">
|
@@ -617,18 +647,18 @@ File.open(photo.title, 'w') { |f| f.puts photo.file }</p>
|
|
617
647
|
|
618
648
|
|
619
649
|
<div class="method-source-code" id="file-source">
|
620
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
650
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 536</span>
|
621
651
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">'Medium'</span>)
|
622
652
|
<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>(<span class="ruby-identifier">size</span>))).<span class="ruby-identifier">body</span>
|
623
653
|
<span class="ruby-keyword">end</span></pre>
|
624
|
-
</div
|
654
|
+
</div><!-- file-source -->
|
625
655
|
|
626
656
|
</div>
|
627
657
|
|
628
658
|
|
629
659
|
|
630
660
|
|
631
|
-
</div
|
661
|
+
</div><!-- file-method -->
|
632
662
|
|
633
663
|
|
634
664
|
<div id="method-i-filename" class="method-detail ">
|
@@ -651,18 +681,18 @@ href="../Flickr.html">Flickr</a> NSID</p>
|
|
651
681
|
|
652
682
|
|
653
683
|
<div class="method-source-code" id="filename-source">
|
654
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
684
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 541</span>
|
655
685
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">filename</span>
|
656
686
|
<span class="ruby-node">"#{@id}.jpg"</span>
|
657
687
|
<span class="ruby-keyword">end</span></pre>
|
658
|
-
</div
|
688
|
+
</div><!-- filename-source -->
|
659
689
|
|
660
690
|
</div>
|
661
691
|
|
662
692
|
|
663
693
|
|
664
694
|
|
665
|
-
</div
|
695
|
+
</div><!-- filename-method -->
|
666
696
|
|
667
697
|
|
668
698
|
<div id="method-i-isfavorite" class="method-detail ">
|
@@ -684,18 +714,18 @@ href="../Flickr.html">Flickr</a> NSID</p>
|
|
684
714
|
|
685
715
|
|
686
716
|
<div class="method-source-code" id="isfavorite-source">
|
687
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
717
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 476</span>
|
688
718
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">isfavorite</span>
|
689
719
|
<span class="ruby-ivar">@isfavorite</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"isfavorite"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@isfavorite</span>
|
690
720
|
<span class="ruby-keyword">end</span></pre>
|
691
|
-
</div
|
721
|
+
</div><!-- isfavorite-source -->
|
692
722
|
|
693
723
|
</div>
|
694
724
|
|
695
725
|
|
696
726
|
|
697
727
|
|
698
|
-
</div
|
728
|
+
</div><!-- isfavorite-method -->
|
699
729
|
|
700
730
|
|
701
731
|
<div id="method-i-license" class="method-detail ">
|
@@ -717,18 +747,18 @@ href="../Flickr.html">Flickr</a> NSID</p>
|
|
717
747
|
|
718
748
|
|
719
749
|
<div class="method-source-code" id="license-source">
|
720
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
750
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 480</span>
|
721
751
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">license</span>
|
722
752
|
<span class="ruby-ivar">@license</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"license"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@license</span>
|
723
753
|
<span class="ruby-keyword">end</span></pre>
|
724
|
-
</div
|
754
|
+
</div><!-- license-source -->
|
725
755
|
|
726
756
|
</div>
|
727
757
|
|
728
758
|
|
729
759
|
|
730
760
|
|
731
|
-
</div
|
761
|
+
</div><!-- license-method -->
|
732
762
|
|
733
763
|
|
734
764
|
<div id="method-i-normalize_size" class="method-detail ">
|
@@ -750,18 +780,18 @@ href="../Flickr.html">Flickr</a> NSID</p>
|
|
750
780
|
|
751
781
|
|
752
782
|
<div class="method-source-code" id="normalize_size-source">
|
753
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
783
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 504</span>
|
754
784
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
|
755
785
|
<span class="ruby-identifier">size</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">size</span>
|
756
786
|
<span class="ruby-keyword">end</span></pre>
|
757
|
-
</div
|
787
|
+
</div><!-- normalize_size-source -->
|
758
788
|
|
759
789
|
</div>
|
760
790
|
|
761
791
|
|
762
792
|
|
763
793
|
|
764
|
-
</div
|
794
|
+
</div><!-- normalize_size-method -->
|
765
795
|
|
766
796
|
|
767
797
|
<div id="method-i-notes" class="method-detail ">
|
@@ -783,18 +813,18 @@ href="../Flickr.html">Flickr</a> NSID</p>
|
|
783
813
|
|
784
814
|
|
785
815
|
<div class="method-source-code" id="notes-source">
|
786
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
816
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 492</span>
|
787
817
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">notes</span>
|
788
818
|
<span class="ruby-ivar">@notes</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"notes"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@notes</span>
|
789
819
|
<span class="ruby-keyword">end</span></pre>
|
790
|
-
</div
|
820
|
+
</div><!-- notes-source -->
|
791
821
|
|
792
822
|
</div>
|
793
823
|
|
794
824
|
|
795
825
|
|
796
826
|
|
797
|
-
</div
|
827
|
+
</div><!-- notes-method -->
|
798
828
|
|
799
829
|
|
800
830
|
<div id="method-i-owner" class="method-detail ">
|
@@ -819,7 +849,7 @@ we cache the result so we don't need to check again</p>
|
|
819
849
|
|
820
850
|
|
821
851
|
<div class="method-source-code" id="owner-source">
|
822
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
852
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 461</span>
|
823
853
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">owner</span>
|
824
854
|
<span class="ruby-keyword">case</span> <span class="ruby-ivar">@owner</span>
|
825
855
|
<span class="ruby-keyword">when</span> <span class="ruby-constant">Flickr</span><span class="ruby-operator">::</span><span class="ruby-constant">User</span>
|
@@ -830,14 +860,14 @@ we cache the result so we don't need to check again</p>
|
|
830
860
|
<span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"owner"</span>)
|
831
861
|
<span class="ruby-keyword">end</span>
|
832
862
|
<span class="ruby-keyword">end</span></pre>
|
833
|
-
</div
|
863
|
+
</div><!-- owner-source -->
|
834
864
|
|
835
865
|
</div>
|
836
866
|
|
837
867
|
|
838
868
|
|
839
869
|
|
840
|
-
</div
|
870
|
+
</div><!-- owner-method -->
|
841
871
|
|
842
872
|
|
843
873
|
<div id="method-i-permissions" class="method-detail ">
|
@@ -859,18 +889,18 @@ we cache the result so we don't need to check again</p>
|
|
859
889
|
|
860
890
|
|
861
891
|
<div class="method-source-code" id="permissions-source">
|
862
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
892
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 559</span>
|
863
893
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">permissions</span>
|
864
894
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getPerms</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'perms'</span>]
|
865
895
|
<span class="ruby-keyword">end</span></pre>
|
866
|
-
</div
|
896
|
+
</div><!-- permissions-source -->
|
867
897
|
|
868
898
|
</div>
|
869
899
|
|
870
900
|
|
871
901
|
|
872
902
|
|
873
|
-
</div
|
903
|
+
</div><!-- permissions-method -->
|
874
904
|
|
875
905
|
|
876
906
|
<div id="method-i-perms-3D" class="method-detail ">
|
@@ -892,17 +922,17 @@ we cache the result so we don't need to check again</p>
|
|
892
922
|
|
893
923
|
|
894
924
|
<div class="method-source-code" id="perms-3D-source">
|
895
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
925
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 585</span>
|
896
926
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">perms=</span>(<span class="ruby-identifier">perms</span>)
|
897
927
|
<span class="ruby-keyword">end</span></pre>
|
898
|
-
</div
|
928
|
+
</div><!-- perms-3D-source -->
|
899
929
|
|
900
930
|
</div>
|
901
931
|
|
902
932
|
|
903
933
|
|
904
934
|
|
905
|
-
</div
|
935
|
+
</div><!-- perms-3D-method -->
|
906
936
|
|
907
937
|
|
908
938
|
<div id="method-i-postToBlog" class="method-detail ">
|
@@ -924,18 +954,18 @@ we cache the result so we don't need to check again</p>
|
|
924
954
|
|
925
955
|
|
926
956
|
<div class="method-source-code" id="postToBlog-source">
|
927
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
957
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 611</span>
|
928
958
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">postToBlog</span>(<span class="ruby-identifier">blog_id</span>, <span class="ruby-identifier">title</span>=<span class="ruby-string">''</span>, <span class="ruby-identifier">description</span>=<span class="ruby-string">''</span>)
|
929
959
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">blogs_postPhoto</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>, <span class="ruby-string">'title'</span>=<span class="ruby-operator">></span><span class="ruby-identifier">title</span>, <span class="ruby-string">'description'</span>=<span class="ruby-operator">></span><span class="ruby-identifier">description</span>)
|
930
960
|
<span class="ruby-keyword">end</span></pre>
|
931
|
-
</div
|
961
|
+
</div><!-- postToBlog-source -->
|
932
962
|
|
933
963
|
</div>
|
934
964
|
|
935
965
|
|
936
966
|
|
937
967
|
|
938
|
-
</div
|
968
|
+
</div><!-- postToBlog-method -->
|
939
969
|
|
940
970
|
|
941
971
|
<div id="method-i-pretty_url" class="method-detail ">
|
@@ -962,18 +992,18 @@ instead of</p>
|
|
962
992
|
|
963
993
|
|
964
994
|
<div class="method-source-code" id="pretty_url-source">
|
965
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
995
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 526</span>
|
966
996
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pretty_url</span>
|
967
997
|
<span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"pretty_url"</span>)
|
968
998
|
<span class="ruby-keyword">end</span></pre>
|
969
|
-
</div
|
999
|
+
</div><!-- pretty_url-source -->
|
970
1000
|
|
971
1001
|
</div>
|
972
1002
|
|
973
1003
|
|
974
1004
|
|
975
1005
|
|
976
|
-
</div
|
1006
|
+
</div><!-- pretty_url-method -->
|
977
1007
|
|
978
1008
|
|
979
1009
|
<div id="method-i-remove_tag" class="method-detail ">
|
@@ -995,17 +1025,17 @@ instead of</p>
|
|
995
1025
|
|
996
1026
|
|
997
1027
|
<div class="method-source-code" id="remove_tag-source">
|
998
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1028
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 603</span>
|
999
1029
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remove_tag</span>(<span class="ruby-identifier">tag</span>)
|
1000
1030
|
<span class="ruby-keyword">end</span></pre>
|
1001
|
-
</div
|
1031
|
+
</div><!-- remove_tag-source -->
|
1002
1032
|
|
1003
1033
|
</div>
|
1004
1034
|
|
1005
1035
|
|
1006
1036
|
|
1007
1037
|
|
1008
|
-
</div
|
1038
|
+
</div><!-- remove_tag-method -->
|
1009
1039
|
|
1010
1040
|
|
1011
1041
|
<div id="method-i-rotate" class="method-detail ">
|
@@ -1027,17 +1057,17 @@ instead of</p>
|
|
1027
1057
|
|
1028
1058
|
|
1029
1059
|
<div class="method-source-code" id="rotate-source">
|
1030
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1060
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 607</span>
|
1031
1061
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rotate</span>
|
1032
1062
|
<span class="ruby-keyword">end</span></pre>
|
1033
|
-
</div
|
1063
|
+
</div><!-- rotate-source -->
|
1034
1064
|
|
1035
1065
|
</div>
|
1036
1066
|
|
1037
1067
|
|
1038
1068
|
|
1039
1069
|
|
1040
|
-
</div
|
1070
|
+
</div><!-- rotate-method -->
|
1041
1071
|
|
1042
1072
|
|
1043
1073
|
<div id="method-i-rotation" class="method-detail ">
|
@@ -1059,18 +1089,18 @@ instead of</p>
|
|
1059
1089
|
|
1060
1090
|
|
1061
1091
|
<div class="method-source-code" id="rotation-source">
|
1062
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1092
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 484</span>
|
1063
1093
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rotation</span>
|
1064
1094
|
<span class="ruby-ivar">@rotation</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"rotation"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@rotation</span>
|
1065
1095
|
<span class="ruby-keyword">end</span></pre>
|
1066
|
-
</div
|
1096
|
+
</div><!-- rotation-source -->
|
1067
1097
|
|
1068
1098
|
</div>
|
1069
1099
|
|
1070
1100
|
|
1071
1101
|
|
1072
1102
|
|
1073
|
-
</div
|
1103
|
+
</div><!-- rotation-method -->
|
1074
1104
|
|
1075
1105
|
|
1076
1106
|
<div id="method-i-server" class="method-detail ">
|
@@ -1092,18 +1122,18 @@ instead of</p>
|
|
1092
1122
|
|
1093
1123
|
|
1094
1124
|
<div class="method-source-code" id="server-source">
|
1095
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1125
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 472</span>
|
1096
1126
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">server</span>
|
1097
1127
|
<span class="ruby-ivar">@server</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"server"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@server</span>
|
1098
1128
|
<span class="ruby-keyword">end</span></pre>
|
1099
|
-
</div
|
1129
|
+
</div><!-- server-source -->
|
1100
1130
|
|
1101
1131
|
</div>
|
1102
1132
|
|
1103
1133
|
|
1104
1134
|
|
1105
1135
|
|
1106
|
-
</div
|
1136
|
+
</div><!-- server-method -->
|
1107
1137
|
|
1108
1138
|
|
1109
1139
|
<div id="method-i-size_url" class="method-detail ">
|
@@ -1126,18 +1156,18 @@ valid sizes are in the VALID_SIZES hash</p>
|
|
1126
1156
|
|
1127
1157
|
|
1128
1158
|
<div class="method-source-code" id="size_url-source">
|
1129
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1159
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 499</span>
|
1130
1160
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">'Medium'</span>)
|
1131
1161
|
<span class="ruby-identifier">uri_for_photo_from_self</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>)[<span class="ruby-string">'url'</span>]
|
1132
1162
|
<span class="ruby-keyword">end</span></pre>
|
1133
|
-
</div
|
1163
|
+
</div><!-- size_url-source -->
|
1134
1164
|
|
1135
1165
|
</div>
|
1136
1166
|
|
1137
1167
|
|
1138
1168
|
|
1139
1169
|
|
1140
|
-
</div
|
1170
|
+
</div><!-- size_url-method -->
|
1141
1171
|
|
1142
1172
|
|
1143
1173
|
<div id="method-i-sizes" class="method-detail ">
|
@@ -1159,21 +1189,21 @@ valid sizes are in the VALID_SIZES hash</p>
|
|
1159
1189
|
|
1160
1190
|
|
1161
1191
|
<div class="method-source-code" id="sizes-source">
|
1162
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1192
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 564</span>
|
1163
1193
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>=<span class="ruby-keyword">nil</span>)
|
1164
1194
|
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
|
1165
1195
|
<span class="ruby-identifier">sizes</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getSizes</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'sizes'</span>][<span class="ruby-string">'size'</span>]
|
1166
1196
|
<span class="ruby-identifier">sizes</span> = <span class="ruby-identifier">sizes</span>.<span class="ruby-identifier">find</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">asize</span><span class="ruby-operator">|</span> <span class="ruby-identifier">asize</span>[<span class="ruby-string">'label'</span>]<span class="ruby-operator">==</span><span class="ruby-identifier">size</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">size</span>
|
1167
1197
|
<span class="ruby-keyword">return</span> <span class="ruby-identifier">sizes</span>
|
1168
1198
|
<span class="ruby-keyword">end</span></pre>
|
1169
|
-
</div
|
1199
|
+
</div><!-- sizes-source -->
|
1170
1200
|
|
1171
1201
|
</div>
|
1172
1202
|
|
1173
1203
|
|
1174
1204
|
|
1175
1205
|
|
1176
|
-
</div
|
1206
|
+
</div><!-- sizes-method -->
|
1177
1207
|
|
1178
1208
|
|
1179
1209
|
<div id="method-i-source" class="method-detail ">
|
@@ -1195,18 +1225,18 @@ valid sizes are in the VALID_SIZES hash</p>
|
|
1195
1225
|
|
1196
1226
|
|
1197
1227
|
<div class="method-source-code" id="source-source">
|
1198
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1228
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 531</span>
|
1199
1229
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">source</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">'Medium'</span>)
|
1200
1230
|
<span class="ruby-identifier">image_source_uri_from_self</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>)[<span class="ruby-string">'source'</span>]
|
1201
1231
|
<span class="ruby-keyword">end</span></pre>
|
1202
|
-
</div
|
1232
|
+
</div><!-- source-source -->
|
1203
1233
|
|
1204
1234
|
</div>
|
1205
1235
|
|
1206
1236
|
|
1207
1237
|
|
1208
1238
|
|
1209
|
-
</div
|
1239
|
+
</div><!-- source-method -->
|
1210
1240
|
|
1211
1241
|
|
1212
1242
|
<div id="method-i-tags" class="method-detail ">
|
@@ -1228,18 +1258,18 @@ valid sizes are in the VALID_SIZES hash</p>
|
|
1228
1258
|
|
1229
1259
|
|
1230
1260
|
<div class="method-source-code" id="tags-source">
|
1231
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1261
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 572</span>
|
1232
1262
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tags</span>
|
1233
1263
|
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">tags_getListPhoto</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'photo'</span>][<span class="ruby-string">'tags'</span>]
|
1234
1264
|
<span class="ruby-keyword">end</span></pre>
|
1235
|
-
</div
|
1265
|
+
</div><!-- tags-source -->
|
1236
1266
|
|
1237
1267
|
</div>
|
1238
1268
|
|
1239
1269
|
|
1240
1270
|
|
1241
1271
|
|
1242
|
-
</div
|
1272
|
+
</div><!-- tags-method -->
|
1243
1273
|
|
1244
1274
|
|
1245
1275
|
<div id="method-i-tags-3D" class="method-detail ">
|
@@ -1261,17 +1291,17 @@ valid sizes are in the VALID_SIZES hash</p>
|
|
1261
1291
|
|
1262
1292
|
|
1263
1293
|
<div class="method-source-code" id="tags-3D-source">
|
1264
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1294
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 589</span>
|
1265
1295
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tags=</span>(<span class="ruby-identifier">tags</span>)
|
1266
1296
|
<span class="ruby-keyword">end</span></pre>
|
1267
|
-
</div
|
1297
|
+
</div><!-- tags-3D-source -->
|
1268
1298
|
|
1269
1299
|
</div>
|
1270
1300
|
|
1271
1301
|
|
1272
1302
|
|
1273
1303
|
|
1274
|
-
</div
|
1304
|
+
</div><!-- tags-3D-method -->
|
1275
1305
|
|
1276
1306
|
|
1277
1307
|
<div id="method-i-title-3D" class="method-detail ">
|
@@ -1293,17 +1323,17 @@ valid sizes are in the VALID_SIZES hash</p>
|
|
1293
1323
|
|
1294
1324
|
|
1295
1325
|
<div class="method-source-code" id="title-3D-source">
|
1296
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1326
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 593</span>
|
1297
1327
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">title=</span>(<span class="ruby-identifier">title</span>)
|
1298
1328
|
<span class="ruby-keyword">end</span></pre>
|
1299
|
-
</div
|
1329
|
+
</div><!-- title-3D-source -->
|
1300
1330
|
|
1301
1331
|
</div>
|
1302
1332
|
|
1303
1333
|
|
1304
1334
|
|
1305
1335
|
|
1306
|
-
</div
|
1336
|
+
</div><!-- title-3D-method -->
|
1307
1337
|
|
1308
1338
|
|
1309
1339
|
<div id="method-i-to_s" class="method-detail ">
|
@@ -1326,18 +1356,18 @@ title</p>
|
|
1326
1356
|
|
1327
1357
|
|
1328
1358
|
<div class="method-source-code" id="to_s-source">
|
1329
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1359
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 624</span>
|
1330
1360
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
1331
1361
|
<span class="ruby-identifier">title</span>
|
1332
1362
|
<span class="ruby-keyword">end</span></pre>
|
1333
|
-
</div
|
1363
|
+
</div><!-- to_s-source -->
|
1334
1364
|
|
1335
1365
|
</div>
|
1336
1366
|
|
1337
1367
|
|
1338
1368
|
|
1339
1369
|
|
1340
|
-
</div
|
1370
|
+
</div><!-- to_s-method -->
|
1341
1371
|
|
1342
1372
|
|
1343
1373
|
<div id="method-i-url" class="method-detail ">
|
@@ -1364,7 +1394,7 @@ href="Photo.html#method-i-size_url">#size_url</a> instead</p>
|
|
1364
1394
|
|
1365
1395
|
|
1366
1396
|
<div class="method-source-code" id="url-source">
|
1367
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line
|
1397
|
+
<pre><span class="ruby-comment"># File lib/flickr.rb, line 514</span>
|
1368
1398
|
<span class="ruby-keyword">def</span> <span class="ruby-identifier">url</span>(<span class="ruby-identifier">size</span> = <span class="ruby-keyword">nil</span>)
|
1369
1399
|
<span class="ruby-keyword">if</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">!=</span> <span class="ruby-string">'Medium'</span>
|
1370
1400
|
<span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>)
|
@@ -1372,25 +1402,26 @@ href="Photo.html#method-i-size_url">#size_url</a> instead</p>
|
|
1372
1402
|
<span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">uri_for_photo_from_self</span>
|
1373
1403
|
<span class="ruby-keyword">end</span>
|
1374
1404
|
<span class="ruby-keyword">end</span></pre>
|
1375
|
-
</div
|
1405
|
+
</div><!-- url-source -->
|
1376
1406
|
|
1377
1407
|
</div>
|
1378
1408
|
|
1379
1409
|
|
1380
1410
|
|
1381
1411
|
|
1382
|
-
</div
|
1412
|
+
</div><!-- url-method -->
|
1383
1413
|
|
1384
1414
|
|
1385
|
-
</section
|
1415
|
+
</section><!-- public-instance-method-details -->
|
1386
1416
|
|
1387
|
-
</section
|
1388
|
-
|
1417
|
+
</section><!-- 5Buntitled-5D -->
|
1418
|
+
|
1419
|
+
</div><!-- documentation -->
|
1389
1420
|
|
1390
1421
|
|
1391
|
-
<footer id="validator-badges"
|
1392
|
-
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
1393
|
-
<p>Generated by <a href="
|
1394
|
-
<p>
|
1422
|
+
<footer id="validator-badges">
|
1423
|
+
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
1424
|
+
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
1425
|
+
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
1395
1426
|
</footer>
|
1396
1427
|
|