flickr.rb 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +7 -0
  2. data/Changelog.txt +7 -2
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +24 -0
  5. data/LICENSE +16 -17
  6. data/Manifest.txt +2 -2
  7. data/README.txt +3 -1
  8. data/Rakefile +3 -24
  9. data/flickr.gemspec +22 -17
  10. data/lib/flickr.rb +104 -104
  11. data/rdoc/Flickr.html +1003 -0
  12. data/rdoc/Flickr/Config.html +267 -0
  13. data/rdoc/Flickr/Group.html +343 -0
  14. data/rdoc/Flickr/Photo.html +1396 -0
  15. data/rdoc/Flickr/PhotoCollection.html +229 -0
  16. data/rdoc/Flickr/Photoset.html +359 -0
  17. data/rdoc/Flickr/User.html +745 -0
  18. data/rdoc/README_txt.html +199 -0
  19. data/rdoc/created.rid +3 -1
  20. data/rdoc/fonts.css +167 -0
  21. data/rdoc/fonts/Lato-Light.ttf +0 -0
  22. data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
  23. data/rdoc/fonts/Lato-Regular.ttf +0 -0
  24. data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
  25. data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
  26. data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
  27. data/rdoc/images/add.png +0 -0
  28. data/rdoc/images/arrow_up.png +0 -0
  29. data/rdoc/images/brick.png +0 -0
  30. data/rdoc/images/brick_link.png +0 -0
  31. data/rdoc/images/bug.png +0 -0
  32. data/rdoc/images/bullet_black.png +0 -0
  33. data/rdoc/images/bullet_toggle_minus.png +0 -0
  34. data/rdoc/images/bullet_toggle_plus.png +0 -0
  35. data/rdoc/images/date.png +0 -0
  36. data/rdoc/images/delete.png +0 -0
  37. data/rdoc/images/find.png +0 -0
  38. data/rdoc/images/loadingAnimation.gif +0 -0
  39. data/rdoc/images/macFFBgHack.png +0 -0
  40. data/rdoc/images/package.png +0 -0
  41. data/rdoc/images/page_green.png +0 -0
  42. data/rdoc/images/page_white_text.png +0 -0
  43. data/rdoc/images/page_white_width.png +0 -0
  44. data/rdoc/images/plugin.png +0 -0
  45. data/rdoc/images/ruby.png +0 -0
  46. data/rdoc/images/tag_blue.png +0 -0
  47. data/rdoc/images/tag_green.png +0 -0
  48. data/rdoc/images/transparent.png +0 -0
  49. data/rdoc/images/wrench.png +0 -0
  50. data/rdoc/images/wrench_orange.png +0 -0
  51. data/rdoc/images/zoom.png +0 -0
  52. data/rdoc/index.html +101 -21
  53. data/rdoc/js/darkfish.js +140 -0
  54. data/rdoc/js/jquery.js +18 -0
  55. data/rdoc/js/navigation.js +142 -0
  56. data/rdoc/js/search.js +109 -0
  57. data/rdoc/js/search_index.js +1 -0
  58. data/rdoc/js/searcher.js +228 -0
  59. data/rdoc/rdoc.css +580 -0
  60. data/rdoc/table_of_contents.html +473 -0
  61. data/test/flickr_test.rb +229 -227
  62. metadata +132 -68
  63. data/rdoc/classes/Flickr.html +0 -807
  64. data/rdoc/classes/Flickr/Config.html +0 -240
  65. data/rdoc/classes/Flickr/Group.html +0 -251
  66. data/rdoc/classes/Flickr/Photo.html +0 -1101
  67. data/rdoc/classes/Flickr/PhotoCollection.html +0 -194
  68. data/rdoc/classes/Flickr/Photoset.html +0 -266
  69. data/rdoc/classes/Flickr/User.html +0 -738
  70. data/rdoc/files/README_txt.html +0 -209
  71. data/rdoc/files/lib/flickr_rb.html +0 -162
  72. data/rdoc/fr_class_index.html +0 -33
  73. data/rdoc/fr_file_index.html +0 -28
  74. data/rdoc/fr_method_index.html +0 -112
  75. data/rdoc/rdoc-style.css +0 -208
@@ -0,0 +1,1396 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Flickr::Photo - Flickr</title>
8
+
9
+ <link href="../fonts.css" rel="stylesheet">
10
+ <link href="../rdoc.css" rel="stylesheet">
11
+
12
+ <script type="text/javascript">
13
+ var rdoc_rel_prefix = "../";
14
+ </script>
15
+
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>
22
+
23
+
24
+ <body id="top" role="document" class="class">
25
+ <nav role="navigation">
26
+ <div id="project-navigation">
27
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
28
+ <h2>
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>
34
+ <a href="../table_of_contents.html#classes">Classes</a>
35
+ <a href="../table_of_contents.html#methods">Methods</a>
36
+ </div>
37
+ </div>
38
+
39
+ <div id="search-section" role="search" class="project-section initially-hidden">
40
+ <form action="#" method="get" accept-charset="utf-8">
41
+ <div id="search-field-wrapper">
42
+ <input id="search-field" role="combobox" aria-label="Search"
43
+ aria-autocomplete="list" aria-controls="search-results"
44
+ type="text" name="search" placeholder="Search" spellcheck="false"
45
+ title="Type to search, Up and Down to navigate, Enter to load">
46
+ </div>
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>
51
+ </form>
52
+ </div>
53
+
54
+ </div>
55
+
56
+
57
+
58
+ <div id="class-metadata">
59
+
60
+ <div id="parent-class-section" class="nav-section">
61
+ <h3>Parent</h3>
62
+
63
+
64
+ <p class="link">Object
65
+
66
+ </div>
67
+
68
+
69
+
70
+ <!-- Method Quickref -->
71
+ <div id="method-list-section" class="nav-section">
72
+ <h3>Methods</h3>
73
+
74
+ <ul class="link-list" role="directory">
75
+
76
+ <li ><a href="#method-c-new">::new</a>
77
+
78
+ <li ><a href="#method-i-5B-5D">#[]</a>
79
+
80
+ <li ><a href="#method-i-add_note">#add_note</a>
81
+
82
+ <li ><a href="#method-i-add_tag">#add_tag</a>
83
+
84
+ <li ><a href="#method-i-context">#context</a>
85
+
86
+ <li ><a href="#method-i-dates-3D">#dates=</a>
87
+
88
+ <li ><a href="#method-i-deleteNote">#deleteNote</a>
89
+
90
+ <li ><a href="#method-i-description">#description</a>
91
+
92
+ <li ><a href="#method-i-description-3D">#description=</a>
93
+
94
+ <li ><a href="#method-i-editNote">#editNote</a>
95
+
96
+ <li ><a href="#method-i-exif">#exif</a>
97
+
98
+ <li ><a href="#method-i-file">#file</a>
99
+
100
+ <li ><a href="#method-i-filename">#filename</a>
101
+
102
+ <li ><a href="#method-i-isfavorite">#isfavorite</a>
103
+
104
+ <li ><a href="#method-i-license">#license</a>
105
+
106
+ <li ><a href="#method-i-normalize_size">#normalize_size</a>
107
+
108
+ <li ><a href="#method-i-notes">#notes</a>
109
+
110
+ <li ><a href="#method-i-owner">#owner</a>
111
+
112
+ <li ><a href="#method-i-permissions">#permissions</a>
113
+
114
+ <li ><a href="#method-i-perms-3D">#perms=</a>
115
+
116
+ <li ><a href="#method-i-postToBlog">#postToBlog</a>
117
+
118
+ <li ><a href="#method-i-pretty_url">#pretty_url</a>
119
+
120
+ <li ><a href="#method-i-remove_tag">#remove_tag</a>
121
+
122
+ <li ><a href="#method-i-rotate">#rotate</a>
123
+
124
+ <li ><a href="#method-i-rotation">#rotation</a>
125
+
126
+ <li ><a href="#method-i-server">#server</a>
127
+
128
+ <li ><a href="#method-i-size_url">#size_url</a>
129
+
130
+ <li ><a href="#method-i-sizes">#sizes</a>
131
+
132
+ <li ><a href="#method-i-source">#source</a>
133
+
134
+ <li ><a href="#method-i-tags">#tags</a>
135
+
136
+ <li ><a href="#method-i-tags-3D">#tags=</a>
137
+
138
+ <li ><a href="#method-i-title-3D">#title=</a>
139
+
140
+ <li ><a href="#method-i-to_s">#to_s</a>
141
+
142
+ <li ><a href="#method-i-url">#url</a>
143
+
144
+ </ul>
145
+ </div>
146
+
147
+ </div>
148
+ </nav>
149
+
150
+ <main role="main" aria-labelledby="class-Flickr::Photo">
151
+ <h1 id="class-Flickr::Photo" class="class">
152
+ class Flickr::Photo
153
+ </h1>
154
+
155
+ <section class="description">
156
+
157
+ </section>
158
+
159
+
160
+
161
+
162
+ <section id="5Buntitled-5D" class="documentation-section">
163
+
164
+
165
+
166
+
167
+
168
+
169
+
170
+ <section class="attribute-method-details" class="method-section">
171
+ <header>
172
+ <h3>Attributes</h3>
173
+ </header>
174
+
175
+
176
+ <div id="attribute-i-client" class="method-detail">
177
+ <div class="method-heading attribute-method-heading">
178
+ <span class="method-name">client</span><span
179
+ class="attribute-access-type">[R]</span>
180
+ </div>
181
+
182
+ <div class="method-description">
183
+
184
+
185
+
186
+ </div>
187
+ </div>
188
+
189
+ <div id="attribute-i-id" class="method-detail">
190
+ <div class="method-heading attribute-method-heading">
191
+ <span class="method-name">id</span><span
192
+ class="attribute-access-type">[R]</span>
193
+ </div>
194
+
195
+ <div class="method-description">
196
+
197
+
198
+
199
+ </div>
200
+ </div>
201
+
202
+ <div id="attribute-i-title" class="method-detail">
203
+ <div class="method-heading attribute-method-heading">
204
+ <span class="method-name">title</span><span
205
+ class="attribute-access-type">[R]</span>
206
+ </div>
207
+
208
+ <div class="method-description">
209
+
210
+
211
+
212
+ </div>
213
+ </div>
214
+
215
+ </section>
216
+
217
+
218
+
219
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
220
+ <header>
221
+ <h3>Public Class Methods</h3>
222
+ </header>
223
+
224
+
225
+ <div id="method-c-new" class="method-detail ">
226
+
227
+ <div class="method-heading">
228
+ <span class="method-name">new</span><span
229
+ class="method-args">(id=nil, api_key={}, extra_params={})</span>
230
+
231
+ <span class="method-click-advice">click to toggle source</span>
232
+
233
+ </div>
234
+
235
+
236
+ <div class="method-description">
237
+
238
+
239
+
240
+
241
+
242
+
243
+ <div class="method-source-code" id="new-source">
244
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 423</span>
245
+ <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
+ <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
247
+ <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
248
+ <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">&quot;@#{k}&quot;</span>, <span class="ruby-identifier">v</span>) } <span class="ruby-comment"># convert extra_params into instance variables</span>
249
+ <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
+ <span class="ruby-keyword">end</span></pre>
251
+ </div>
252
+
253
+ </div>
254
+
255
+
256
+
257
+
258
+ </div>
259
+
260
+
261
+ </section>
262
+
263
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
264
+ <header>
265
+ <h3>Public Instance Methods</h3>
266
+ </header>
267
+
268
+
269
+ <div id="method-i-5B-5D" class="method-detail ">
270
+
271
+ <div class="method-heading">
272
+ <span class="method-name">[]</span><span
273
+ class="method-args">(param_name)</span>
274
+
275
+ <span class="method-click-advice">click to toggle source</span>
276
+
277
+ </div>
278
+
279
+
280
+ <div class="method-description">
281
+
282
+ <p>Allows access to all photos instance variables through hash like interface,
283
+ e.g. <a href=""datetaken"">photo</a> returns @datetaken instance variable.
284
+ Useful for accessing any weird and wonderful parameter that may have been
285
+ returned by <a href="../Flickr.html">Flickr</a> when finding the photo,
286
+ e.g. those returned by the extras argument in flickr.people.getPublicPhotos</p>
287
+
288
+
289
+
290
+
291
+ <div class="method-source-code" id="5B-5D-source">
292
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 436</span>
293
+ <span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">param_name</span>)
294
+ <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{param_name}&quot;</span>)
295
+ <span class="ruby-keyword">end</span></pre>
296
+ </div>
297
+
298
+ </div>
299
+
300
+
301
+
302
+
303
+ </div>
304
+
305
+
306
+ <div id="method-i-add_note" class="method-detail ">
307
+
308
+ <div class="method-heading">
309
+ <span class="method-name">add_note</span><span
310
+ class="method-args">(note)</span>
311
+
312
+ <span class="method-click-advice">click to toggle source</span>
313
+
314
+ </div>
315
+
316
+
317
+ <div class="method-description">
318
+
319
+ <p>Implements flickr.photos.notes.add</p>
320
+
321
+
322
+
323
+
324
+ <div class="method-source-code" id="add_note-source">
325
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 564</span>
326
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_note</span>(<span class="ruby-identifier">note</span>)
327
+ <span class="ruby-keyword">end</span></pre>
328
+ </div>
329
+
330
+ </div>
331
+
332
+
333
+
334
+
335
+ </div>
336
+
337
+
338
+ <div id="method-i-add_tag" class="method-detail ">
339
+
340
+ <div class="method-heading">
341
+ <span class="method-name">add_tag</span><span
342
+ class="method-args">(tag)</span>
343
+
344
+ <span class="method-click-advice">click to toggle source</span>
345
+
346
+ </div>
347
+
348
+
349
+ <div class="method-description">
350
+
351
+ <p>Implements flickr.photos.addTags</p>
352
+
353
+
354
+
355
+
356
+ <div class="method-source-code" id="add_tag-source">
357
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 586</span>
358
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag</span>)
359
+ <span class="ruby-keyword">end</span></pre>
360
+ </div>
361
+
362
+ </div>
363
+
364
+
365
+
366
+
367
+ </div>
368
+
369
+
370
+ <div id="method-i-context" class="method-detail ">
371
+
372
+ <div class="method-heading">
373
+ <span class="method-name">context</span><span
374
+ class="method-args">()</span>
375
+
376
+ <span class="method-click-advice">click to toggle source</span>
377
+
378
+ </div>
379
+
380
+
381
+ <div class="method-description">
382
+
383
+ <p>Implements flickr.photos.getContext</p>
384
+
385
+
386
+
387
+
388
+ <div class="method-source-code" id="context-source">
389
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 533</span>
390
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">context</span>
391
+ <span class="ruby-identifier">context</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getContext</span>(<span class="ruby-string">&#39;photo_id&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)
392
+ <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">&#39;prevphoto&#39;</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">&#39;id&#39;</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-string">&#39;prevphoto&#39;</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-string">&#39;prevphoto&#39;</span>][<span class="ruby-string">&#39;id&#39;</span>]<span class="ruby-operator">!=</span><span class="ruby-string">&#39;0&#39;</span>
393
+ <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">&#39;nextphoto&#39;</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">&#39;id&#39;</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-string">&#39;nextphoto&#39;</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-string">&#39;nextphoto&#39;</span>][<span class="ruby-string">&#39;id&#39;</span>]<span class="ruby-operator">!=</span><span class="ruby-string">&#39;0&#39;</span>
394
+ <span class="ruby-keyword">return</span> [<span class="ruby-ivar">@previousPhoto</span>, <span class="ruby-ivar">@nextPhoto</span>]
395
+ <span class="ruby-keyword">end</span></pre>
396
+ </div>
397
+
398
+ </div>
399
+
400
+
401
+
402
+
403
+ </div>
404
+
405
+
406
+ <div id="method-i-dates-3D" class="method-detail ">
407
+
408
+ <div class="method-heading">
409
+ <span class="method-name">dates=</span><span
410
+ class="method-args">(dates)</span>
411
+
412
+ <span class="method-click-advice">click to toggle source</span>
413
+
414
+ </div>
415
+
416
+
417
+ <div class="method-description">
418
+
419
+ <p>Implements flickr.photos.setDates</p>
420
+
421
+
422
+
423
+
424
+ <div class="method-source-code" id="dates-3D-source">
425
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 568</span>
426
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">dates=</span>(<span class="ruby-identifier">dates</span>)
427
+ <span class="ruby-keyword">end</span></pre>
428
+ </div>
429
+
430
+ </div>
431
+
432
+
433
+
434
+
435
+ </div>
436
+
437
+
438
+ <div id="method-i-deleteNote" class="method-detail ">
439
+
440
+ <div class="method-heading">
441
+ <span class="method-name">deleteNote</span><span
442
+ class="method-args">(note_id)</span>
443
+
444
+ <span class="method-click-advice">click to toggle source</span>
445
+
446
+ </div>
447
+
448
+
449
+ <div class="method-description">
450
+
451
+ <p>Implements flickr.photos.notes.delete</p>
452
+
453
+
454
+
455
+
456
+ <div class="method-source-code" id="deleteNote-source">
457
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 603</span>
458
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">deleteNote</span>(<span class="ruby-identifier">note_id</span>)
459
+ <span class="ruby-keyword">end</span></pre>
460
+ </div>
461
+
462
+ </div>
463
+
464
+
465
+
466
+
467
+ </div>
468
+
469
+
470
+ <div id="method-i-description" class="method-detail ">
471
+
472
+ <div class="method-heading">
473
+ <span class="method-name">description</span><span
474
+ class="method-args">()</span>
475
+
476
+ <span class="method-click-advice">click to toggle source</span>
477
+
478
+ </div>
479
+
480
+
481
+ <div class="method-description">
482
+
483
+
484
+
485
+
486
+
487
+
488
+ <div class="method-source-code" id="description-source">
489
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 475</span>
490
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">description</span>
491
+ <span class="ruby-ivar">@description</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">&quot;description&quot;</span>)
492
+ <span class="ruby-keyword">end</span></pre>
493
+ </div>
494
+
495
+ </div>
496
+
497
+
498
+
499
+
500
+ </div>
501
+
502
+
503
+ <div id="method-i-description-3D" class="method-detail ">
504
+
505
+ <div class="method-heading">
506
+ <span class="method-name">description=</span><span
507
+ class="method-args">(title)</span>
508
+
509
+ <span class="method-click-advice">click to toggle source</span>
510
+
511
+ </div>
512
+
513
+
514
+ <div class="method-description">
515
+
516
+
517
+
518
+
519
+
520
+
521
+ <div class="method-source-code" id="description-3D-source">
522
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 582</span>
523
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">description=</span>(<span class="ruby-identifier">title</span>)
524
+ <span class="ruby-keyword">end</span></pre>
525
+ </div>
526
+
527
+ </div>
528
+
529
+
530
+
531
+
532
+ </div>
533
+
534
+
535
+ <div id="method-i-editNote" class="method-detail ">
536
+
537
+ <div class="method-heading">
538
+ <span class="method-name">editNote</span><span
539
+ class="method-args">(note_id)</span>
540
+
541
+ <span class="method-click-advice">click to toggle source</span>
542
+
543
+ </div>
544
+
545
+
546
+ <div class="method-description">
547
+
548
+ <p>Implements flickr.photos.notes.edit</p>
549
+
550
+
551
+
552
+
553
+ <div class="method-source-code" id="editNote-source">
554
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 607</span>
555
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">editNote</span>(<span class="ruby-identifier">note_id</span>)
556
+ <span class="ruby-keyword">end</span></pre>
557
+ </div>
558
+
559
+ </div>
560
+
561
+
562
+
563
+
564
+ </div>
565
+
566
+
567
+ <div id="method-i-exif" class="method-detail ">
568
+
569
+ <div class="method-heading">
570
+ <span class="method-name">exif</span><span
571
+ class="method-args">()</span>
572
+
573
+ <span class="method-click-advice">click to toggle source</span>
574
+
575
+ </div>
576
+
577
+
578
+ <div class="method-description">
579
+
580
+ <p>Implements flickr.photos.getExif</p>
581
+
582
+
583
+
584
+
585
+ <div class="method-source-code" id="exif-source">
586
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 541</span>
587
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">exif</span>
588
+ <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getExif</span>(<span class="ruby-string">&#39;photo_id&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">&#39;photo&#39;</span>]
589
+ <span class="ruby-keyword">end</span></pre>
590
+ </div>
591
+
592
+ </div>
593
+
594
+
595
+
596
+
597
+ </div>
598
+
599
+
600
+ <div id="method-i-file" class="method-detail ">
601
+
602
+ <div class="method-heading">
603
+ <span class="method-name">file</span><span
604
+ class="method-args">(size='Medium')</span>
605
+
606
+ <span class="method-click-advice">click to toggle source</span>
607
+
608
+ </div>
609
+
610
+
611
+ <div class="method-description">
612
+
613
+ <p>Returns the photo file data itself, in any specified size. Example:
614
+ File.open(photo.title, &#39;w&#39;) { |f| f.puts photo.file }</p>
615
+
616
+
617
+
618
+
619
+ <div class="method-source-code" id="file-source">
620
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 523</span>
621
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">&#39;Medium&#39;</span>)
622
+ <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
+ <span class="ruby-keyword">end</span></pre>
624
+ </div>
625
+
626
+ </div>
627
+
628
+
629
+
630
+
631
+ </div>
632
+
633
+
634
+ <div id="method-i-filename" class="method-detail ">
635
+
636
+ <div class="method-heading">
637
+ <span class="method-name">filename</span><span
638
+ class="method-args">()</span>
639
+
640
+ <span class="method-click-advice">click to toggle source</span>
641
+
642
+ </div>
643
+
644
+
645
+ <div class="method-description">
646
+
647
+ <p>Unique filename for the image, based on the <a
648
+ href="../Flickr.html">Flickr</a> NSID</p>
649
+
650
+
651
+
652
+
653
+ <div class="method-source-code" id="filename-source">
654
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 528</span>
655
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">filename</span>
656
+ <span class="ruby-node">&quot;#{@id}.jpg&quot;</span>
657
+ <span class="ruby-keyword">end</span></pre>
658
+ </div>
659
+
660
+ </div>
661
+
662
+
663
+
664
+
665
+ </div>
666
+
667
+
668
+ <div id="method-i-isfavorite" class="method-detail ">
669
+
670
+ <div class="method-heading">
671
+ <span class="method-name">isfavorite</span><span
672
+ class="method-args">()</span>
673
+
674
+ <span class="method-click-advice">click to toggle source</span>
675
+
676
+ </div>
677
+
678
+
679
+ <div class="method-description">
680
+
681
+
682
+
683
+
684
+
685
+
686
+ <div class="method-source-code" id="isfavorite-source">
687
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 463</span>
688
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">isfavorite</span>
689
+ <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">&quot;isfavorite&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@isfavorite</span>
690
+ <span class="ruby-keyword">end</span></pre>
691
+ </div>
692
+
693
+ </div>
694
+
695
+
696
+
697
+
698
+ </div>
699
+
700
+
701
+ <div id="method-i-license" class="method-detail ">
702
+
703
+ <div class="method-heading">
704
+ <span class="method-name">license</span><span
705
+ class="method-args">()</span>
706
+
707
+ <span class="method-click-advice">click to toggle source</span>
708
+
709
+ </div>
710
+
711
+
712
+ <div class="method-description">
713
+
714
+
715
+
716
+
717
+
718
+
719
+ <div class="method-source-code" id="license-source">
720
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 467</span>
721
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">license</span>
722
+ <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">&quot;license&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@license</span>
723
+ <span class="ruby-keyword">end</span></pre>
724
+ </div>
725
+
726
+ </div>
727
+
728
+
729
+
730
+
731
+ </div>
732
+
733
+
734
+ <div id="method-i-normalize_size" class="method-detail ">
735
+
736
+ <div class="method-heading">
737
+ <span class="method-name">normalize_size</span><span
738
+ class="method-args">(size)</span>
739
+
740
+ <span class="method-click-advice">click to toggle source</span>
741
+
742
+ </div>
743
+
744
+
745
+ <div class="method-description">
746
+
747
+ <p>converts string or symbol size to a capitalized string</p>
748
+
749
+
750
+
751
+
752
+ <div class="method-source-code" id="normalize_size-source">
753
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 491</span>
754
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
755
+ <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
+ <span class="ruby-keyword">end</span></pre>
757
+ </div>
758
+
759
+ </div>
760
+
761
+
762
+
763
+
764
+ </div>
765
+
766
+
767
+ <div id="method-i-notes" class="method-detail ">
768
+
769
+ <div class="method-heading">
770
+ <span class="method-name">notes</span><span
771
+ class="method-args">()</span>
772
+
773
+ <span class="method-click-advice">click to toggle source</span>
774
+
775
+ </div>
776
+
777
+
778
+ <div class="method-description">
779
+
780
+
781
+
782
+
783
+
784
+
785
+ <div class="method-source-code" id="notes-source">
786
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 479</span>
787
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">notes</span>
788
+ <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">&quot;notes&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@notes</span>
789
+ <span class="ruby-keyword">end</span></pre>
790
+ </div>
791
+
792
+ </div>
793
+
794
+
795
+
796
+
797
+ </div>
798
+
799
+
800
+ <div id="method-i-owner" class="method-detail ">
801
+
802
+ <div class="method-heading">
803
+ <span class="method-name">owner</span><span
804
+ class="method-args">()</span>
805
+
806
+ <span class="method-click-advice">click to toggle source</span>
807
+
808
+ </div>
809
+
810
+
811
+ <div class="method-description">
812
+
813
+ <p>Returns the owner of the photo as a <a href="User.html">Flickr::User</a>.
814
+ If we have no info about the owner, we make an API call to get it. If we
815
+ already have the owner&#39;s id, create a user based on that. Either way,
816
+ we cache the result so we don&#39;t need to check again</p>
817
+
818
+
819
+
820
+
821
+ <div class="method-source-code" id="owner-source">
822
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 448</span>
823
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">owner</span>
824
+ <span class="ruby-keyword">case</span> <span class="ruby-ivar">@owner</span>
825
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">Flickr</span><span class="ruby-operator">::</span><span class="ruby-constant">User</span>
826
+ <span class="ruby-ivar">@owner</span>
827
+ <span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>
828
+ <span class="ruby-ivar">@owner</span> = <span class="ruby-constant">Flickr</span><span class="ruby-operator">::</span><span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@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>)
829
+ <span class="ruby-keyword">else</span>
830
+ <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">&quot;owner&quot;</span>)
831
+ <span class="ruby-keyword">end</span>
832
+ <span class="ruby-keyword">end</span></pre>
833
+ </div>
834
+
835
+ </div>
836
+
837
+
838
+
839
+
840
+ </div>
841
+
842
+
843
+ <div id="method-i-permissions" class="method-detail ">
844
+
845
+ <div class="method-heading">
846
+ <span class="method-name">permissions</span><span
847
+ class="method-args">()</span>
848
+
849
+ <span class="method-click-advice">click to toggle source</span>
850
+
851
+ </div>
852
+
853
+
854
+ <div class="method-description">
855
+
856
+ <p>Implements flickr.photos.getPerms</p>
857
+
858
+
859
+
860
+
861
+ <div class="method-source-code" id="permissions-source">
862
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 546</span>
863
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">permissions</span>
864
+ <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getPerms</span>(<span class="ruby-string">&#39;photo_id&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">&#39;perms&#39;</span>]
865
+ <span class="ruby-keyword">end</span></pre>
866
+ </div>
867
+
868
+ </div>
869
+
870
+
871
+
872
+
873
+ </div>
874
+
875
+
876
+ <div id="method-i-perms-3D" class="method-detail ">
877
+
878
+ <div class="method-heading">
879
+ <span class="method-name">perms=</span><span
880
+ class="method-args">(perms)</span>
881
+
882
+ <span class="method-click-advice">click to toggle source</span>
883
+
884
+ </div>
885
+
886
+
887
+ <div class="method-description">
888
+
889
+ <p>Implements flickr.photos.setPerms</p>
890
+
891
+
892
+
893
+
894
+ <div class="method-source-code" id="perms-3D-source">
895
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 572</span>
896
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">perms=</span>(<span class="ruby-identifier">perms</span>)
897
+ <span class="ruby-keyword">end</span></pre>
898
+ </div>
899
+
900
+ </div>
901
+
902
+
903
+
904
+
905
+ </div>
906
+
907
+
908
+ <div id="method-i-postToBlog" class="method-detail ">
909
+
910
+ <div class="method-heading">
911
+ <span class="method-name">postToBlog</span><span
912
+ class="method-args">(blog_id, title='', description='')</span>
913
+
914
+ <span class="method-click-advice">click to toggle source</span>
915
+
916
+ </div>
917
+
918
+
919
+ <div class="method-description">
920
+
921
+ <p>Implements flickr.blogs.postPhoto</p>
922
+
923
+
924
+
925
+
926
+ <div class="method-source-code" id="postToBlog-source">
927
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 598</span>
928
+ <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">&#39;&#39;</span>, <span class="ruby-identifier">description</span>=<span class="ruby-string">&#39;&#39;</span>)
929
+ <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">blogs_postPhoto</span>(<span class="ruby-string">&#39;photo_id&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>, <span class="ruby-string">&#39;title&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">title</span>, <span class="ruby-string">&#39;description&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">description</span>)
930
+ <span class="ruby-keyword">end</span></pre>
931
+ </div>
932
+
933
+ </div>
934
+
935
+
936
+
937
+
938
+ </div>
939
+
940
+
941
+ <div id="method-i-pretty_url" class="method-detail ">
942
+
943
+ <div class="method-heading">
944
+ <span class="method-name">pretty_url</span><span
945
+ class="method-args">()</span>
946
+
947
+ <span class="method-click-advice">click to toggle source</span>
948
+
949
+ </div>
950
+
951
+
952
+ <div class="method-description">
953
+
954
+ <p>the &#39;pretty&#39; url for a photo (if the user has set up a custom name)
955
+ eg, <a
956
+ href="http://flickr.com/photos/granth/2584402507">flickr.com/photos/granth/2584402507</a>/
957
+ instead of</p>
958
+
959
+ <pre>http://flickr.com/photos/23386158@N00/2584402507/</pre>
960
+
961
+
962
+
963
+
964
+ <div class="method-source-code" id="pretty_url-source">
965
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 513</span>
966
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">pretty_url</span>
967
+ <span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">&quot;pretty_url&quot;</span>)
968
+ <span class="ruby-keyword">end</span></pre>
969
+ </div>
970
+
971
+ </div>
972
+
973
+
974
+
975
+
976
+ </div>
977
+
978
+
979
+ <div id="method-i-remove_tag" class="method-detail ">
980
+
981
+ <div class="method-heading">
982
+ <span class="method-name">remove_tag</span><span
983
+ class="method-args">(tag)</span>
984
+
985
+ <span class="method-click-advice">click to toggle source</span>
986
+
987
+ </div>
988
+
989
+
990
+ <div class="method-description">
991
+
992
+ <p>Implements flickr.photos.removeTag</p>
993
+
994
+
995
+
996
+
997
+ <div class="method-source-code" id="remove_tag-source">
998
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 590</span>
999
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">remove_tag</span>(<span class="ruby-identifier">tag</span>)
1000
+ <span class="ruby-keyword">end</span></pre>
1001
+ </div>
1002
+
1003
+ </div>
1004
+
1005
+
1006
+
1007
+
1008
+ </div>
1009
+
1010
+
1011
+ <div id="method-i-rotate" class="method-detail ">
1012
+
1013
+ <div class="method-heading">
1014
+ <span class="method-name">rotate</span><span
1015
+ class="method-args">()</span>
1016
+
1017
+ <span class="method-click-advice">click to toggle source</span>
1018
+
1019
+ </div>
1020
+
1021
+
1022
+ <div class="method-description">
1023
+
1024
+ <p>Implements flickr.photos.transform.rotate</p>
1025
+
1026
+
1027
+
1028
+
1029
+ <div class="method-source-code" id="rotate-source">
1030
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 594</span>
1031
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">rotate</span>
1032
+ <span class="ruby-keyword">end</span></pre>
1033
+ </div>
1034
+
1035
+ </div>
1036
+
1037
+
1038
+
1039
+
1040
+ </div>
1041
+
1042
+
1043
+ <div id="method-i-rotation" class="method-detail ">
1044
+
1045
+ <div class="method-heading">
1046
+ <span class="method-name">rotation</span><span
1047
+ class="method-args">()</span>
1048
+
1049
+ <span class="method-click-advice">click to toggle source</span>
1050
+
1051
+ </div>
1052
+
1053
+
1054
+ <div class="method-description">
1055
+
1056
+
1057
+
1058
+
1059
+
1060
+
1061
+ <div class="method-source-code" id="rotation-source">
1062
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 471</span>
1063
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">rotation</span>
1064
+ <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">&quot;rotation&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@rotation</span>
1065
+ <span class="ruby-keyword">end</span></pre>
1066
+ </div>
1067
+
1068
+ </div>
1069
+
1070
+
1071
+
1072
+
1073
+ </div>
1074
+
1075
+
1076
+ <div id="method-i-server" class="method-detail ">
1077
+
1078
+ <div class="method-heading">
1079
+ <span class="method-name">server</span><span
1080
+ class="method-args">()</span>
1081
+
1082
+ <span class="method-click-advice">click to toggle source</span>
1083
+
1084
+ </div>
1085
+
1086
+
1087
+ <div class="method-description">
1088
+
1089
+
1090
+
1091
+
1092
+
1093
+
1094
+ <div class="method-source-code" id="server-source">
1095
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 459</span>
1096
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">server</span>
1097
+ <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">&quot;server&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@server</span>
1098
+ <span class="ruby-keyword">end</span></pre>
1099
+ </div>
1100
+
1101
+ </div>
1102
+
1103
+
1104
+
1105
+
1106
+ </div>
1107
+
1108
+
1109
+ <div id="method-i-size_url" class="method-detail ">
1110
+
1111
+ <div class="method-heading">
1112
+ <span class="method-name">size_url</span><span
1113
+ class="method-args">(size='Medium')</span>
1114
+
1115
+ <span class="method-click-advice">click to toggle source</span>
1116
+
1117
+ </div>
1118
+
1119
+
1120
+ <div class="method-description">
1121
+
1122
+ <p>Returns the URL for the photo size page defaults to &#39;Medium&#39; other
1123
+ valid sizes are in the VALID_SIZES hash</p>
1124
+
1125
+
1126
+
1127
+
1128
+ <div class="method-source-code" id="size_url-source">
1129
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 486</span>
1130
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">&#39;Medium&#39;</span>)
1131
+ <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">&#39;url&#39;</span>]
1132
+ <span class="ruby-keyword">end</span></pre>
1133
+ </div>
1134
+
1135
+ </div>
1136
+
1137
+
1138
+
1139
+
1140
+ </div>
1141
+
1142
+
1143
+ <div id="method-i-sizes" class="method-detail ">
1144
+
1145
+ <div class="method-heading">
1146
+ <span class="method-name">sizes</span><span
1147
+ class="method-args">(size=nil)</span>
1148
+
1149
+ <span class="method-click-advice">click to toggle source</span>
1150
+
1151
+ </div>
1152
+
1153
+
1154
+ <div class="method-description">
1155
+
1156
+ <p>Implements flickr.photos.getSizes</p>
1157
+
1158
+
1159
+
1160
+
1161
+ <div class="method-source-code" id="sizes-source">
1162
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 551</span>
1163
+ <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
+ <span class="ruby-identifier">size</span> = <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
1165
+ <span class="ruby-identifier">sizes</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getSizes</span>(<span class="ruby-string">&#39;photo_id&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">&#39;sizes&#39;</span>][<span class="ruby-string">&#39;size&#39;</span>]
1166
+ <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">&#39;label&#39;</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
+ <span class="ruby-keyword">return</span> <span class="ruby-identifier">sizes</span>
1168
+ <span class="ruby-keyword">end</span></pre>
1169
+ </div>
1170
+
1171
+ </div>
1172
+
1173
+
1174
+
1175
+
1176
+ </div>
1177
+
1178
+
1179
+ <div id="method-i-source" class="method-detail ">
1180
+
1181
+ <div class="method-heading">
1182
+ <span class="method-name">source</span><span
1183
+ class="method-args">(size='Medium')</span>
1184
+
1185
+ <span class="method-click-advice">click to toggle source</span>
1186
+
1187
+ </div>
1188
+
1189
+
1190
+ <div class="method-description">
1191
+
1192
+ <p>Returns the URL for the image (default or any specified size)</p>
1193
+
1194
+
1195
+
1196
+
1197
+ <div class="method-source-code" id="source-source">
1198
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 518</span>
1199
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">source</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">&#39;Medium&#39;</span>)
1200
+ <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">&#39;source&#39;</span>]
1201
+ <span class="ruby-keyword">end</span></pre>
1202
+ </div>
1203
+
1204
+ </div>
1205
+
1206
+
1207
+
1208
+
1209
+ </div>
1210
+
1211
+
1212
+ <div id="method-i-tags" class="method-detail ">
1213
+
1214
+ <div class="method-heading">
1215
+ <span class="method-name">tags</span><span
1216
+ class="method-args">()</span>
1217
+
1218
+ <span class="method-click-advice">click to toggle source</span>
1219
+
1220
+ </div>
1221
+
1222
+
1223
+ <div class="method-description">
1224
+
1225
+ <p>flickr.tags.getListPhoto</p>
1226
+
1227
+
1228
+
1229
+
1230
+ <div class="method-source-code" id="tags-source">
1231
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 559</span>
1232
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">tags</span>
1233
+ <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">tags_getListPhoto</span>(<span class="ruby-string">&#39;photo_id&#39;</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">&#39;photo&#39;</span>][<span class="ruby-string">&#39;tags&#39;</span>]
1234
+ <span class="ruby-keyword">end</span></pre>
1235
+ </div>
1236
+
1237
+ </div>
1238
+
1239
+
1240
+
1241
+
1242
+ </div>
1243
+
1244
+
1245
+ <div id="method-i-tags-3D" class="method-detail ">
1246
+
1247
+ <div class="method-heading">
1248
+ <span class="method-name">tags=</span><span
1249
+ class="method-args">(tags)</span>
1250
+
1251
+ <span class="method-click-advice">click to toggle source</span>
1252
+
1253
+ </div>
1254
+
1255
+
1256
+ <div class="method-description">
1257
+
1258
+ <p>Implements flickr.photos.setTags</p>
1259
+
1260
+
1261
+
1262
+
1263
+ <div class="method-source-code" id="tags-3D-source">
1264
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 576</span>
1265
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">tags=</span>(<span class="ruby-identifier">tags</span>)
1266
+ <span class="ruby-keyword">end</span></pre>
1267
+ </div>
1268
+
1269
+ </div>
1270
+
1271
+
1272
+
1273
+
1274
+ </div>
1275
+
1276
+
1277
+ <div id="method-i-title-3D" class="method-detail ">
1278
+
1279
+ <div class="method-heading">
1280
+ <span class="method-name">title=</span><span
1281
+ class="method-args">(title)</span>
1282
+
1283
+ <span class="method-click-advice">click to toggle source</span>
1284
+
1285
+ </div>
1286
+
1287
+
1288
+ <div class="method-description">
1289
+
1290
+ <p>Implements flickr.photos.setMeta</p>
1291
+
1292
+
1293
+
1294
+
1295
+ <div class="method-source-code" id="title-3D-source">
1296
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 580</span>
1297
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">title=</span>(<span class="ruby-identifier">title</span>)
1298
+ <span class="ruby-keyword">end</span></pre>
1299
+ </div>
1300
+
1301
+ </div>
1302
+
1303
+
1304
+
1305
+
1306
+ </div>
1307
+
1308
+
1309
+ <div id="method-i-to_s" class="method-detail ">
1310
+
1311
+ <div class="method-heading">
1312
+ <span class="method-name">to_s</span><span
1313
+ class="method-args">()</span>
1314
+
1315
+ <span class="method-click-advice">click to toggle source</span>
1316
+
1317
+ </div>
1318
+
1319
+
1320
+ <div class="method-description">
1321
+
1322
+ <p>Converts the <a href="Photo.html">Photo</a> to a string by returning its
1323
+ title</p>
1324
+
1325
+
1326
+
1327
+
1328
+ <div class="method-source-code" id="to_s-source">
1329
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 611</span>
1330
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
1331
+ <span class="ruby-identifier">title</span>
1332
+ <span class="ruby-keyword">end</span></pre>
1333
+ </div>
1334
+
1335
+ </div>
1336
+
1337
+
1338
+
1339
+
1340
+ </div>
1341
+
1342
+
1343
+ <div id="method-i-url" class="method-detail ">
1344
+
1345
+ <div class="method-heading">
1346
+ <span class="method-name">url</span><span
1347
+ class="method-args">(size = nil)</span>
1348
+
1349
+ <span class="method-click-advice">click to toggle source</span>
1350
+
1351
+ </div>
1352
+
1353
+
1354
+ <div class="method-description">
1355
+
1356
+ <p>the URL for the main photo page if getInfo has already been called, this
1357
+ will return the pretty url</p>
1358
+
1359
+ <p>for historical reasons, an optional size can be given &#39;Medium&#39;
1360
+ returns the regular url; any other size returns a size page use <a
1361
+ href="Photo.html#method-i-size_url">#size_url</a> instead</p>
1362
+
1363
+
1364
+
1365
+
1366
+ <div class="method-source-code" id="url-source">
1367
+ <pre><span class="ruby-comment"># File lib/flickr.rb, line 501</span>
1368
+ <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
+ <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">&#39;Medium&#39;</span>
1370
+ <span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>)
1371
+ <span class="ruby-keyword">else</span>
1372
+ <span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">uri_for_photo_from_self</span>
1373
+ <span class="ruby-keyword">end</span>
1374
+ <span class="ruby-keyword">end</span></pre>
1375
+ </div>
1376
+
1377
+ </div>
1378
+
1379
+
1380
+
1381
+
1382
+ </div>
1383
+
1384
+
1385
+ </section>
1386
+
1387
+ </section>
1388
+ </main>
1389
+
1390
+
1391
+ <footer id="validator-badges" role="contentinfo">
1392
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
1393
+ <p>Generated by <a href="http://rdoc.rubyforge.org">RDoc</a> 4.1.1.
1394
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
1395
+ </footer>
1396
+