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
@@ -1,1101 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: Flickr::Photo</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">Flickr::Photo</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/flickr_rb.html">
59
- lib/flickr.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000053">[]</a>&nbsp;&nbsp;
90
- <a href="#M000074">add_note</a>&nbsp;&nbsp;
91
- <a href="#M000080">add_tag</a>&nbsp;&nbsp;
92
- <a href="#M000069">context</a>&nbsp;&nbsp;
93
- <a href="#M000075">dates=</a>&nbsp;&nbsp;
94
- <a href="#M000084">deleteNote</a>&nbsp;&nbsp;
95
- <a href="#M000060">description</a>&nbsp;&nbsp;
96
- <a href="#M000079">description=</a>&nbsp;&nbsp;
97
- <a href="#M000085">editNote</a>&nbsp;&nbsp;
98
- <a href="#M000070">exif</a>&nbsp;&nbsp;
99
- <a href="#M000067">file</a>&nbsp;&nbsp;
100
- <a href="#M000068">filename</a>&nbsp;&nbsp;
101
- <a href="#M000057">isfavorite</a>&nbsp;&nbsp;
102
- <a href="#M000058">license</a>&nbsp;&nbsp;
103
- <a href="#M000052">new</a>&nbsp;&nbsp;
104
- <a href="#M000063">normalize_size</a>&nbsp;&nbsp;
105
- <a href="#M000061">notes</a>&nbsp;&nbsp;
106
- <a href="#M000055">owner</a>&nbsp;&nbsp;
107
- <a href="#M000071">permissions</a>&nbsp;&nbsp;
108
- <a href="#M000076">perms=</a>&nbsp;&nbsp;
109
- <a href="#M000083">postToBlog</a>&nbsp;&nbsp;
110
- <a href="#M000065">pretty_url</a>&nbsp;&nbsp;
111
- <a href="#M000081">remove_tag</a>&nbsp;&nbsp;
112
- <a href="#M000082">rotate</a>&nbsp;&nbsp;
113
- <a href="#M000059">rotation</a>&nbsp;&nbsp;
114
- <a href="#M000056">server</a>&nbsp;&nbsp;
115
- <a href="#M000062">size_url</a>&nbsp;&nbsp;
116
- <a href="#M000072">sizes</a>&nbsp;&nbsp;
117
- <a href="#M000066">source</a>&nbsp;&nbsp;
118
- <a href="#M000073">tags</a>&nbsp;&nbsp;
119
- <a href="#M000077">tags=</a>&nbsp;&nbsp;
120
- <a href="#M000054">title</a>&nbsp;&nbsp;
121
- <a href="#M000078">title=</a>&nbsp;&nbsp;
122
- <a href="#M000086">to_s</a>&nbsp;&nbsp;
123
- <a href="#M000064">url</a>&nbsp;&nbsp;
124
- </div>
125
- </div>
126
-
127
- </div>
128
-
129
-
130
- <!-- if includes -->
131
-
132
- <div id="section">
133
-
134
-
135
-
136
-
137
-
138
- <div id="attribute-list">
139
- <h3 class="section-bar">Attributes</h3>
140
-
141
- <div class="name-list">
142
- <table>
143
- <tr class="top-aligned-row context-row">
144
- <td class="context-item-name">client</td>
145
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
146
- <td class="context-item-desc"></td>
147
- </tr>
148
- <tr class="top-aligned-row context-row">
149
- <td class="context-item-name">id</td>
150
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
151
- <td class="context-item-desc"></td>
152
- </tr>
153
- <tr class="top-aligned-row context-row">
154
- <td class="context-item-name">title</td>
155
- <td class="context-item-value">&nbsp;[R]&nbsp;</td>
156
- <td class="context-item-desc"></td>
157
- </tr>
158
- </table>
159
- </div>
160
- </div>
161
-
162
-
163
-
164
- <!-- if method_list -->
165
- <div id="methods">
166
- <h3 class="section-bar">Public Class methods</h3>
167
-
168
- <div id="method-M000052" class="method-detail">
169
- <a name="M000052"></a>
170
-
171
- <div class="method-heading">
172
- <a href="#M000052" class="method-signature">
173
- <span class="method-name">new</span><span class="method-args">(id=nil, api_key={}, extra_params={})</span>
174
- </a>
175
- </div>
176
-
177
- <div class="method-description">
178
- <p><a class="source-toggle" href="#"
179
- onclick="toggleCode('M000052-source');return false;">[Source]</a></p>
180
- <div class="method-source-code" id="M000052-source">
181
- <pre>
182
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 423</span>
183
- 423: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">api_key</span>={}, <span class="ruby-identifier">extra_params</span>={})
184
- 424: <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
185
- 425: <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
186
- 426: <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 kw">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 cmt"># convert extra_params into instance variables</span>
187
- 427: <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>
188
- 428: <span class="ruby-keyword kw">end</span>
189
- </pre>
190
- </div>
191
- </div>
192
- </div>
193
-
194
- <h3 class="section-bar">Public Instance methods</h3>
195
-
196
- <div id="method-M000053" class="method-detail">
197
- <a name="M000053"></a>
198
-
199
- <div class="method-heading">
200
- <a href="#M000053" class="method-signature">
201
- <span class="method-name">[]</span><span class="method-args">(param_name)</span>
202
- </a>
203
- </div>
204
-
205
- <div class="method-description">
206
- <p>
207
- Allows access to all photos instance variables through hash like interface,
208
- e.g. photo[&quot;datetaken&quot;] returns @datetaken instance variable.
209
- Useful for accessing any weird and wonderful parameter that may have been
210
- returned by <a href="../Flickr.html">Flickr</a> when finding the photo,
211
- e.g. those returned by the extras argument in flickr.people.getPublicPhotos
212
- </p>
213
- <p><a class="source-toggle" href="#"
214
- onclick="toggleCode('M000053-source');return false;">[Source]</a></p>
215
- <div class="method-source-code" id="M000053-source">
216
- <pre>
217
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 436</span>
218
- 436: <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">param_name</span>)
219
- 437: <span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">&quot;@#{param_name}&quot;</span>)
220
- 438: <span class="ruby-keyword kw">end</span>
221
- </pre>
222
- </div>
223
- </div>
224
- </div>
225
-
226
- <div id="method-M000074" class="method-detail">
227
- <a name="M000074"></a>
228
-
229
- <div class="method-heading">
230
- <a href="#M000074" class="method-signature">
231
- <span class="method-name">add_note</span><span class="method-args">(note)</span>
232
- </a>
233
- </div>
234
-
235
- <div class="method-description">
236
- <p>
237
- Implements flickr.photos.notes.add
238
- </p>
239
- <p><a class="source-toggle" href="#"
240
- onclick="toggleCode('M000074-source');return false;">[Source]</a></p>
241
- <div class="method-source-code" id="M000074-source">
242
- <pre>
243
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 564</span>
244
- 564: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_note</span>(<span class="ruby-identifier">note</span>)
245
- 565: <span class="ruby-keyword kw">end</span>
246
- </pre>
247
- </div>
248
- </div>
249
- </div>
250
-
251
- <div id="method-M000080" class="method-detail">
252
- <a name="M000080"></a>
253
-
254
- <div class="method-heading">
255
- <a href="#M000080" class="method-signature">
256
- <span class="method-name">add_tag</span><span class="method-args">(tag)</span>
257
- </a>
258
- </div>
259
-
260
- <div class="method-description">
261
- <p>
262
- Implements flickr.photos.addTags
263
- </p>
264
- <p><a class="source-toggle" href="#"
265
- onclick="toggleCode('M000080-source');return false;">[Source]</a></p>
266
- <div class="method-source-code" id="M000080-source">
267
- <pre>
268
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 586</span>
269
- 586: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag</span>)
270
- 587: <span class="ruby-keyword kw">end</span>
271
- </pre>
272
- </div>
273
- </div>
274
- </div>
275
-
276
- <div id="method-M000069" class="method-detail">
277
- <a name="M000069"></a>
278
-
279
- <div class="method-heading">
280
- <a href="#M000069" class="method-signature">
281
- <span class="method-name">context</span><span class="method-args">()</span>
282
- </a>
283
- </div>
284
-
285
- <div class="method-description">
286
- <p>
287
- Implements flickr.photos.getContext
288
- </p>
289
- <p><a class="source-toggle" href="#"
290
- onclick="toggleCode('M000069-source');return false;">[Source]</a></p>
291
- <div class="method-source-code" id="M000069-source">
292
- <pre>
293
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 533</span>
294
- 533: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">context</span>
295
- 534: <span class="ruby-identifier">context</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getContext</span>(<span class="ruby-value str">'photo_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)
296
- 535: <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-value str">'prevphoto'</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'id'</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-value str">'prevphoto'</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-value str">'prevphoto'</span>][<span class="ruby-value str">'id'</span>]<span class="ruby-operator">!=</span><span class="ruby-value str">'0'</span>
297
- 536: <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-value str">'nextphoto'</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-value str">'id'</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-value str">'nextphoto'</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-value str">'nextphoto'</span>][<span class="ruby-value str">'id'</span>]<span class="ruby-operator">!=</span><span class="ruby-value str">'0'</span>
298
- 537: <span class="ruby-keyword kw">return</span> [<span class="ruby-ivar">@previousPhoto</span>, <span class="ruby-ivar">@nextPhoto</span>]
299
- 538: <span class="ruby-keyword kw">end</span>
300
- </pre>
301
- </div>
302
- </div>
303
- </div>
304
-
305
- <div id="method-M000075" class="method-detail">
306
- <a name="M000075"></a>
307
-
308
- <div class="method-heading">
309
- <a href="#M000075" class="method-signature">
310
- <span class="method-name">dates=</span><span class="method-args">(dates)</span>
311
- </a>
312
- </div>
313
-
314
- <div class="method-description">
315
- <p>
316
- Implements flickr.photos.setDates
317
- </p>
318
- <p><a class="source-toggle" href="#"
319
- onclick="toggleCode('M000075-source');return false;">[Source]</a></p>
320
- <div class="method-source-code" id="M000075-source">
321
- <pre>
322
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 568</span>
323
- 568: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dates=</span>(<span class="ruby-identifier">dates</span>)
324
- 569: <span class="ruby-keyword kw">end</span>
325
- </pre>
326
- </div>
327
- </div>
328
- </div>
329
-
330
- <div id="method-M000084" class="method-detail">
331
- <a name="M000084"></a>
332
-
333
- <div class="method-heading">
334
- <a href="#M000084" class="method-signature">
335
- <span class="method-name">deleteNote</span><span class="method-args">(note_id)</span>
336
- </a>
337
- </div>
338
-
339
- <div class="method-description">
340
- <p>
341
- Implements flickr.photos.notes.delete
342
- </p>
343
- <p><a class="source-toggle" href="#"
344
- onclick="toggleCode('M000084-source');return false;">[Source]</a></p>
345
- <div class="method-source-code" id="M000084-source">
346
- <pre>
347
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 603</span>
348
- 603: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deleteNote</span>(<span class="ruby-identifier">note_id</span>)
349
- 604: <span class="ruby-keyword kw">end</span>
350
- </pre>
351
- </div>
352
- </div>
353
- </div>
354
-
355
- <div id="method-M000060" class="method-detail">
356
- <a name="M000060"></a>
357
-
358
- <div class="method-heading">
359
- <a href="#M000060" class="method-signature">
360
- <span class="method-name">description</span><span class="method-args">()</span>
361
- </a>
362
- </div>
363
-
364
- <div class="method-description">
365
- <p><a class="source-toggle" href="#"
366
- onclick="toggleCode('M000060-source');return false;">[Source]</a></p>
367
- <div class="method-source-code" id="M000060-source">
368
- <pre>
369
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 475</span>
370
- 475: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">description</span>
371
- 476: <span class="ruby-ivar">@description</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;description&quot;</span>)
372
- 477: <span class="ruby-keyword kw">end</span>
373
- </pre>
374
- </div>
375
- </div>
376
- </div>
377
-
378
- <div id="method-M000079" class="method-detail">
379
- <a name="M000079"></a>
380
-
381
- <div class="method-heading">
382
- <a href="#M000079" class="method-signature">
383
- <span class="method-name">description=</span><span class="method-args">(title)</span>
384
- </a>
385
- </div>
386
-
387
- <div class="method-description">
388
- <p><a class="source-toggle" href="#"
389
- onclick="toggleCode('M000079-source');return false;">[Source]</a></p>
390
- <div class="method-source-code" id="M000079-source">
391
- <pre>
392
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 582</span>
393
- 582: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">description=</span>(<span class="ruby-identifier">title</span>)
394
- 583: <span class="ruby-keyword kw">end</span>
395
- </pre>
396
- </div>
397
- </div>
398
- </div>
399
-
400
- <div id="method-M000085" class="method-detail">
401
- <a name="M000085"></a>
402
-
403
- <div class="method-heading">
404
- <a href="#M000085" class="method-signature">
405
- <span class="method-name">editNote</span><span class="method-args">(note_id)</span>
406
- </a>
407
- </div>
408
-
409
- <div class="method-description">
410
- <p>
411
- Implements flickr.photos.notes.edit
412
- </p>
413
- <p><a class="source-toggle" href="#"
414
- onclick="toggleCode('M000085-source');return false;">[Source]</a></p>
415
- <div class="method-source-code" id="M000085-source">
416
- <pre>
417
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 607</span>
418
- 607: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">editNote</span>(<span class="ruby-identifier">note_id</span>)
419
- 608: <span class="ruby-keyword kw">end</span>
420
- </pre>
421
- </div>
422
- </div>
423
- </div>
424
-
425
- <div id="method-M000070" class="method-detail">
426
- <a name="M000070"></a>
427
-
428
- <div class="method-heading">
429
- <a href="#M000070" class="method-signature">
430
- <span class="method-name">exif</span><span class="method-args">()</span>
431
- </a>
432
- </div>
433
-
434
- <div class="method-description">
435
- <p>
436
- Implements flickr.photos.getExif
437
- </p>
438
- <p><a class="source-toggle" href="#"
439
- onclick="toggleCode('M000070-source');return false;">[Source]</a></p>
440
- <div class="method-source-code" id="M000070-source">
441
- <pre>
442
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 541</span>
443
- 541: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">exif</span>
444
- 542: <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getExif</span>(<span class="ruby-value str">'photo_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'photo'</span>]
445
- 543: <span class="ruby-keyword kw">end</span>
446
- </pre>
447
- </div>
448
- </div>
449
- </div>
450
-
451
- <div id="method-M000067" class="method-detail">
452
- <a name="M000067"></a>
453
-
454
- <div class="method-heading">
455
- <a href="#M000067" class="method-signature">
456
- <span class="method-name">file</span><span class="method-args">(size='Medium')</span>
457
- </a>
458
- </div>
459
-
460
- <div class="method-description">
461
- <p>
462
- Returns the photo <a href="Photo.html#M000067">file</a> data itself, in any
463
- specified size. Example: File.open(photo.title, &#8216;w&#8217;) { |f|
464
- f.puts photo.file }
465
- </p>
466
- <p><a class="source-toggle" href="#"
467
- onclick="toggleCode('M000067-source');return false;">[Source]</a></p>
468
- <div class="method-source-code" id="M000067-source">
469
- <pre>
470
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 523</span>
471
- 523: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">size</span>=<span class="ruby-value str">'Medium'</span>)
472
- 524: <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>
473
- 525: <span class="ruby-keyword kw">end</span>
474
- </pre>
475
- </div>
476
- </div>
477
- </div>
478
-
479
- <div id="method-M000068" class="method-detail">
480
- <a name="M000068"></a>
481
-
482
- <div class="method-heading">
483
- <a href="#M000068" class="method-signature">
484
- <span class="method-name">filename</span><span class="method-args">()</span>
485
- </a>
486
- </div>
487
-
488
- <div class="method-description">
489
- <p>
490
- Unique <a href="Photo.html#M000068">filename</a> for the image, based on
491
- the <a href="../Flickr.html">Flickr</a> NSID
492
- </p>
493
- <p><a class="source-toggle" href="#"
494
- onclick="toggleCode('M000068-source');return false;">[Source]</a></p>
495
- <div class="method-source-code" id="M000068-source">
496
- <pre>
497
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 528</span>
498
- 528: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">filename</span>
499
- 529: <span class="ruby-node">&quot;#{@id}.jpg&quot;</span>
500
- 530: <span class="ruby-keyword kw">end</span>
501
- </pre>
502
- </div>
503
- </div>
504
- </div>
505
-
506
- <div id="method-M000057" class="method-detail">
507
- <a name="M000057"></a>
508
-
509
- <div class="method-heading">
510
- <a href="#M000057" class="method-signature">
511
- <span class="method-name">isfavorite</span><span class="method-args">()</span>
512
- </a>
513
- </div>
514
-
515
- <div class="method-description">
516
- <p><a class="source-toggle" href="#"
517
- onclick="toggleCode('M000057-source');return false;">[Source]</a></p>
518
- <div class="method-source-code" id="M000057-source">
519
- <pre>
520
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 463</span>
521
- 463: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">isfavorite</span>
522
- 464: <span class="ruby-ivar">@isfavorite</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;isfavorite&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@isfavorite</span>
523
- 465: <span class="ruby-keyword kw">end</span>
524
- </pre>
525
- </div>
526
- </div>
527
- </div>
528
-
529
- <div id="method-M000058" class="method-detail">
530
- <a name="M000058"></a>
531
-
532
- <div class="method-heading">
533
- <a href="#M000058" class="method-signature">
534
- <span class="method-name">license</span><span class="method-args">()</span>
535
- </a>
536
- </div>
537
-
538
- <div class="method-description">
539
- <p><a class="source-toggle" href="#"
540
- onclick="toggleCode('M000058-source');return false;">[Source]</a></p>
541
- <div class="method-source-code" id="M000058-source">
542
- <pre>
543
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 467</span>
544
- 467: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">license</span>
545
- 468: <span class="ruby-ivar">@license</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;license&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@license</span>
546
- 469: <span class="ruby-keyword kw">end</span>
547
- </pre>
548
- </div>
549
- </div>
550
- </div>
551
-
552
- <div id="method-M000063" class="method-detail">
553
- <a name="M000063"></a>
554
-
555
- <div class="method-heading">
556
- <a href="#M000063" class="method-signature">
557
- <span class="method-name">normalize_size</span><span class="method-args">(size)</span>
558
- </a>
559
- </div>
560
-
561
- <div class="method-description">
562
- <p>
563
- converts string or symbol size to a capitalized string
564
- </p>
565
- <p><a class="source-toggle" href="#"
566
- onclick="toggleCode('M000063-source');return false;">[Source]</a></p>
567
- <div class="method-source-code" id="M000063-source">
568
- <pre>
569
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 491</span>
570
- 491: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
571
- 492: <span class="ruby-identifier">size</span> <span class="ruby-value">? </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>
572
- 493: <span class="ruby-keyword kw">end</span>
573
- </pre>
574
- </div>
575
- </div>
576
- </div>
577
-
578
- <div id="method-M000061" class="method-detail">
579
- <a name="M000061"></a>
580
-
581
- <div class="method-heading">
582
- <a href="#M000061" class="method-signature">
583
- <span class="method-name">notes</span><span class="method-args">()</span>
584
- </a>
585
- </div>
586
-
587
- <div class="method-description">
588
- <p><a class="source-toggle" href="#"
589
- onclick="toggleCode('M000061-source');return false;">[Source]</a></p>
590
- <div class="method-source-code" id="M000061-source">
591
- <pre>
592
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 479</span>
593
- 479: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">notes</span>
594
- 480: <span class="ruby-ivar">@notes</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;notes&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@notes</span>
595
- 481: <span class="ruby-keyword kw">end</span>
596
- </pre>
597
- </div>
598
- </div>
599
- </div>
600
-
601
- <div id="method-M000055" class="method-detail">
602
- <a name="M000055"></a>
603
-
604
- <div class="method-heading">
605
- <a href="#M000055" class="method-signature">
606
- <span class="method-name">owner</span><span class="method-args">()</span>
607
- </a>
608
- </div>
609
-
610
- <div class="method-description">
611
- <p>
612
- Returns the <a href="Photo.html#M000055">owner</a> of the photo as a <a
613
- href="User.html">Flickr::User</a>. If we have no info about the <a
614
- href="Photo.html#M000055">owner</a>, we make an API call to get it. If we
615
- already have the <a href="Photo.html#M000055">owner</a>&#8216;s id, create
616
- a user based on that. Either way, we cache the result so we don&#8216;t
617
- need to check again
618
- </p>
619
- <p><a class="source-toggle" href="#"
620
- onclick="toggleCode('M000055-source');return false;">[Source]</a></p>
621
- <div class="method-source-code" id="M000055-source">
622
- <pre>
623
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 448</span>
624
- 448: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">owner</span>
625
- 449: <span class="ruby-keyword kw">case</span> <span class="ruby-ivar">@owner</span>
626
- 450: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">Flickr</span><span class="ruby-operator">::</span><span class="ruby-constant">User</span>
627
- 451: <span class="ruby-ivar">@owner</span>
628
- 452: <span class="ruby-keyword kw">when</span> <span class="ruby-constant">String</span>
629
- 453: <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 kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-keyword kw">nil</span>, <span class="ruby-ivar">@api_key</span>)
630
- 454: <span class="ruby-keyword kw">else</span>
631
- 455: <span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;owner&quot;</span>)
632
- 456: <span class="ruby-keyword kw">end</span>
633
- 457: <span class="ruby-keyword kw">end</span>
634
- </pre>
635
- </div>
636
- </div>
637
- </div>
638
-
639
- <div id="method-M000071" class="method-detail">
640
- <a name="M000071"></a>
641
-
642
- <div class="method-heading">
643
- <a href="#M000071" class="method-signature">
644
- <span class="method-name">permissions</span><span class="method-args">()</span>
645
- </a>
646
- </div>
647
-
648
- <div class="method-description">
649
- <p>
650
- Implements flickr.photos.getPerms
651
- </p>
652
- <p><a class="source-toggle" href="#"
653
- onclick="toggleCode('M000071-source');return false;">[Source]</a></p>
654
- <div class="method-source-code" id="M000071-source">
655
- <pre>
656
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 546</span>
657
- 546: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">permissions</span>
658
- 547: <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getPerms</span>(<span class="ruby-value str">'photo_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'perms'</span>]
659
- 548: <span class="ruby-keyword kw">end</span>
660
- </pre>
661
- </div>
662
- </div>
663
- </div>
664
-
665
- <div id="method-M000076" class="method-detail">
666
- <a name="M000076"></a>
667
-
668
- <div class="method-heading">
669
- <a href="#M000076" class="method-signature">
670
- <span class="method-name">perms=</span><span class="method-args">(perms)</span>
671
- </a>
672
- </div>
673
-
674
- <div class="method-description">
675
- <p>
676
- Implements flickr.photos.setPerms
677
- </p>
678
- <p><a class="source-toggle" href="#"
679
- onclick="toggleCode('M000076-source');return false;">[Source]</a></p>
680
- <div class="method-source-code" id="M000076-source">
681
- <pre>
682
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 572</span>
683
- 572: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">perms=</span>(<span class="ruby-identifier">perms</span>)
684
- 573: <span class="ruby-keyword kw">end</span>
685
- </pre>
686
- </div>
687
- </div>
688
- </div>
689
-
690
- <div id="method-M000083" class="method-detail">
691
- <a name="M000083"></a>
692
-
693
- <div class="method-heading">
694
- <a href="#M000083" class="method-signature">
695
- <span class="method-name">postToBlog</span><span class="method-args">(blog_id, title='', description='')</span>
696
- </a>
697
- </div>
698
-
699
- <div class="method-description">
700
- <p>
701
- Implements flickr.blogs.postPhoto
702
- </p>
703
- <p><a class="source-toggle" href="#"
704
- onclick="toggleCode('M000083-source');return false;">[Source]</a></p>
705
- <div class="method-source-code" id="M000083-source">
706
- <pre>
707
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 598</span>
708
- 598: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">postToBlog</span>(<span class="ruby-identifier">blog_id</span>, <span class="ruby-identifier">title</span>=<span class="ruby-value str">''</span>, <span class="ruby-identifier">description</span>=<span class="ruby-value str">''</span>)
709
- 599: <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">blogs_postPhoto</span>(<span class="ruby-value str">'photo_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>, <span class="ruby-value str">'title'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">title</span>, <span class="ruby-value str">'description'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-identifier">description</span>)
710
- 600: <span class="ruby-keyword kw">end</span>
711
- </pre>
712
- </div>
713
- </div>
714
- </div>
715
-
716
- <div id="method-M000065" class="method-detail">
717
- <a name="M000065"></a>
718
-
719
- <div class="method-heading">
720
- <a href="#M000065" class="method-signature">
721
- <span class="method-name">pretty_url</span><span class="method-args">()</span>
722
- </a>
723
- </div>
724
-
725
- <div class="method-description">
726
- <p>
727
- the &#8216;pretty&#8217; <a href="Photo.html#M000064">url</a> for a photo
728
- (if the user has set up a custom name) eg, <a
729
- href="http://flickr.com/photos/granth/2584402507">flickr.com/photos/granth/2584402507</a>/
730
- instead of
731
- </p>
732
- <pre>
733
- http://flickr.com/photos/23386158@N00/2584402507/
734
- </pre>
735
- <p><a class="source-toggle" href="#"
736
- onclick="toggleCode('M000065-source');return false;">[Source]</a></p>
737
- <div class="method-source-code" id="M000065-source">
738
- <pre>
739
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 513</span>
740
- 513: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty_url</span>
741
- 514: <span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;pretty_url&quot;</span>)
742
- 515: <span class="ruby-keyword kw">end</span>
743
- </pre>
744
- </div>
745
- </div>
746
- </div>
747
-
748
- <div id="method-M000081" class="method-detail">
749
- <a name="M000081"></a>
750
-
751
- <div class="method-heading">
752
- <a href="#M000081" class="method-signature">
753
- <span class="method-name">remove_tag</span><span class="method-args">(tag)</span>
754
- </a>
755
- </div>
756
-
757
- <div class="method-description">
758
- <p>
759
- Implements flickr.photos.removeTag
760
- </p>
761
- <p><a class="source-toggle" href="#"
762
- onclick="toggleCode('M000081-source');return false;">[Source]</a></p>
763
- <div class="method-source-code" id="M000081-source">
764
- <pre>
765
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 590</span>
766
- 590: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove_tag</span>(<span class="ruby-identifier">tag</span>)
767
- 591: <span class="ruby-keyword kw">end</span>
768
- </pre>
769
- </div>
770
- </div>
771
- </div>
772
-
773
- <div id="method-M000082" class="method-detail">
774
- <a name="M000082"></a>
775
-
776
- <div class="method-heading">
777
- <a href="#M000082" class="method-signature">
778
- <span class="method-name">rotate</span><span class="method-args">()</span>
779
- </a>
780
- </div>
781
-
782
- <div class="method-description">
783
- <p>
784
- Implements flickr.photos.transform.rotate
785
- </p>
786
- <p><a class="source-toggle" href="#"
787
- onclick="toggleCode('M000082-source');return false;">[Source]</a></p>
788
- <div class="method-source-code" id="M000082-source">
789
- <pre>
790
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 594</span>
791
- 594: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotate</span>
792
- 595: <span class="ruby-keyword kw">end</span>
793
- </pre>
794
- </div>
795
- </div>
796
- </div>
797
-
798
- <div id="method-M000059" class="method-detail">
799
- <a name="M000059"></a>
800
-
801
- <div class="method-heading">
802
- <a href="#M000059" class="method-signature">
803
- <span class="method-name">rotation</span><span class="method-args">()</span>
804
- </a>
805
- </div>
806
-
807
- <div class="method-description">
808
- <p><a class="source-toggle" href="#"
809
- onclick="toggleCode('M000059-source');return false;">[Source]</a></p>
810
- <div class="method-source-code" id="M000059-source">
811
- <pre>
812
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 471</span>
813
- 471: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">rotation</span>
814
- 472: <span class="ruby-ivar">@rotation</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;rotation&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@rotation</span>
815
- 473: <span class="ruby-keyword kw">end</span>
816
- </pre>
817
- </div>
818
- </div>
819
- </div>
820
-
821
- <div id="method-M000056" class="method-detail">
822
- <a name="M000056"></a>
823
-
824
- <div class="method-heading">
825
- <a href="#M000056" class="method-signature">
826
- <span class="method-name">server</span><span class="method-args">()</span>
827
- </a>
828
- </div>
829
-
830
- <div class="method-description">
831
- <p><a class="source-toggle" href="#"
832
- onclick="toggleCode('M000056-source');return false;">[Source]</a></p>
833
- <div class="method-source-code" id="M000056-source">
834
- <pre>
835
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 459</span>
836
- 459: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">server</span>
837
- 460: <span class="ruby-ivar">@server</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;server&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@server</span>
838
- 461: <span class="ruby-keyword kw">end</span>
839
- </pre>
840
- </div>
841
- </div>
842
- </div>
843
-
844
- <div id="method-M000062" class="method-detail">
845
- <a name="M000062"></a>
846
-
847
- <div class="method-heading">
848
- <a href="#M000062" class="method-signature">
849
- <span class="method-name">size_url</span><span class="method-args">(size='Medium')</span>
850
- </a>
851
- </div>
852
-
853
- <div class="method-description">
854
- <p>
855
- Returns the URL for the photo size page defaults to &#8216;Medium&#8217;
856
- other valid <a href="Photo.html#M000072">sizes</a> are in the VALID_SIZES
857
- hash
858
- </p>
859
- <p><a class="source-toggle" href="#"
860
- onclick="toggleCode('M000062-source');return false;">[Source]</a></p>
861
- <div class="method-source-code" id="M000062-source">
862
- <pre>
863
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 486</span>
864
- 486: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>=<span class="ruby-value str">'Medium'</span>)
865
- 487: <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-value str">'url'</span>]
866
- 488: <span class="ruby-keyword kw">end</span>
867
- </pre>
868
- </div>
869
- </div>
870
- </div>
871
-
872
- <div id="method-M000072" class="method-detail">
873
- <a name="M000072"></a>
874
-
875
- <div class="method-heading">
876
- <a href="#M000072" class="method-signature">
877
- <span class="method-name">sizes</span><span class="method-args">(size=nil)</span>
878
- </a>
879
- </div>
880
-
881
- <div class="method-description">
882
- <p>
883
- Implements flickr.photos.getSizes
884
- </p>
885
- <p><a class="source-toggle" href="#"
886
- onclick="toggleCode('M000072-source');return false;">[Source]</a></p>
887
- <div class="method-source-code" id="M000072-source">
888
- <pre>
889
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 551</span>
890
- 551: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>=<span class="ruby-keyword kw">nil</span>)
891
- 552: <span class="ruby-identifier">size</span> = <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
892
- 553: <span class="ruby-identifier">sizes</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getSizes</span>(<span class="ruby-value str">'photo_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'sizes'</span>][<span class="ruby-value str">'size'</span>]
893
- 554: <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-value str">'label'</span>]<span class="ruby-operator">==</span><span class="ruby-identifier">size</span>} <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">size</span>
894
- 555: <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">sizes</span>
895
- 556: <span class="ruby-keyword kw">end</span>
896
- </pre>
897
- </div>
898
- </div>
899
- </div>
900
-
901
- <div id="method-M000066" class="method-detail">
902
- <a name="M000066"></a>
903
-
904
- <div class="method-heading">
905
- <a href="#M000066" class="method-signature">
906
- <span class="method-name">source</span><span class="method-args">(size='Medium')</span>
907
- </a>
908
- </div>
909
-
910
- <div class="method-description">
911
- <p>
912
- Returns the URL for the image (default or any specified size)
913
- </p>
914
- <p><a class="source-toggle" href="#"
915
- onclick="toggleCode('M000066-source');return false;">[Source]</a></p>
916
- <div class="method-source-code" id="M000066-source">
917
- <pre>
918
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 518</span>
919
- 518: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">source</span>(<span class="ruby-identifier">size</span>=<span class="ruby-value str">'Medium'</span>)
920
- 519: <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-value str">'source'</span>]
921
- 520: <span class="ruby-keyword kw">end</span>
922
- </pre>
923
- </div>
924
- </div>
925
- </div>
926
-
927
- <div id="method-M000073" class="method-detail">
928
- <a name="M000073"></a>
929
-
930
- <div class="method-heading">
931
- <a href="#M000073" class="method-signature">
932
- <span class="method-name">tags</span><span class="method-args">()</span>
933
- </a>
934
- </div>
935
-
936
- <div class="method-description">
937
- <p>
938
- flickr.tags.getListPhoto
939
- </p>
940
- <p><a class="source-toggle" href="#"
941
- onclick="toggleCode('M000073-source');return false;">[Source]</a></p>
942
- <div class="method-source-code" id="M000073-source">
943
- <pre>
944
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 559</span>
945
- 559: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags</span>
946
- 560: <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">tags_getListPhoto</span>(<span class="ruby-value str">'photo_id'</span>=<span class="ruby-operator">&gt;</span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'photo'</span>][<span class="ruby-value str">'tags'</span>]
947
- 561: <span class="ruby-keyword kw">end</span>
948
- </pre>
949
- </div>
950
- </div>
951
- </div>
952
-
953
- <div id="method-M000077" class="method-detail">
954
- <a name="M000077"></a>
955
-
956
- <div class="method-heading">
957
- <a href="#M000077" class="method-signature">
958
- <span class="method-name">tags=</span><span class="method-args">(tags)</span>
959
- </a>
960
- </div>
961
-
962
- <div class="method-description">
963
- <p>
964
- Implements flickr.photos.setTags
965
- </p>
966
- <p><a class="source-toggle" href="#"
967
- onclick="toggleCode('M000077-source');return false;">[Source]</a></p>
968
- <div class="method-source-code" id="M000077-source">
969
- <pre>
970
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 576</span>
971
- 576: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags=</span>(<span class="ruby-identifier">tags</span>)
972
- 577: <span class="ruby-keyword kw">end</span>
973
- </pre>
974
- </div>
975
- </div>
976
- </div>
977
-
978
- <div id="method-M000054" class="method-detail">
979
- <a name="M000054"></a>
980
-
981
- <div class="method-heading">
982
- <a href="#M000054" class="method-signature">
983
- <span class="method-name">title</span><span class="method-args">()</span>
984
- </a>
985
- </div>
986
-
987
- <div class="method-description">
988
- <p><a class="source-toggle" href="#"
989
- onclick="toggleCode('M000054-source');return false;">[Source]</a></p>
990
- <div class="method-source-code" id="M000054-source">
991
- <pre>
992
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 440</span>
993
- 440: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title</span>
994
- 441: <span class="ruby-ivar">@title</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-value">? </span><span class="ruby-identifier">getInfo</span>(<span class="ruby-value str">&quot;title&quot;</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@title</span>
995
- 442: <span class="ruby-keyword kw">end</span>
996
- </pre>
997
- </div>
998
- </div>
999
- </div>
1000
-
1001
- <div id="method-M000078" class="method-detail">
1002
- <a name="M000078"></a>
1003
-
1004
- <div class="method-heading">
1005
- <a href="#M000078" class="method-signature">
1006
- <span class="method-name">title=</span><span class="method-args">(title)</span>
1007
- </a>
1008
- </div>
1009
-
1010
- <div class="method-description">
1011
- <p>
1012
- Implements flickr.photos.setMeta
1013
- </p>
1014
- <p><a class="source-toggle" href="#"
1015
- onclick="toggleCode('M000078-source');return false;">[Source]</a></p>
1016
- <div class="method-source-code" id="M000078-source">
1017
- <pre>
1018
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 580</span>
1019
- 580: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">title=</span>(<span class="ruby-identifier">title</span>)
1020
- 581: <span class="ruby-keyword kw">end</span>
1021
- </pre>
1022
- </div>
1023
- </div>
1024
- </div>
1025
-
1026
- <div id="method-M000086" class="method-detail">
1027
- <a name="M000086"></a>
1028
-
1029
- <div class="method-heading">
1030
- <a href="#M000086" class="method-signature">
1031
- <span class="method-name">to_s</span><span class="method-args">()</span>
1032
- </a>
1033
- </div>
1034
-
1035
- <div class="method-description">
1036
- <p>
1037
- Converts the <a href="Photo.html">Photo</a> to a string by returning its <a
1038
- href="Photo.html#M000054">title</a>
1039
- </p>
1040
- <p><a class="source-toggle" href="#"
1041
- onclick="toggleCode('M000086-source');return false;">[Source]</a></p>
1042
- <div class="method-source-code" id="M000086-source">
1043
- <pre>
1044
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 611</span>
1045
- 611: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
1046
- 612: <span class="ruby-identifier">title</span>
1047
- 613: <span class="ruby-keyword kw">end</span>
1048
- </pre>
1049
- </div>
1050
- </div>
1051
- </div>
1052
-
1053
- <div id="method-M000064" class="method-detail">
1054
- <a name="M000064"></a>
1055
-
1056
- <div class="method-heading">
1057
- <a href="#M000064" class="method-signature">
1058
- <span class="method-name">url</span><span class="method-args">(size = nil)</span>
1059
- </a>
1060
- </div>
1061
-
1062
- <div class="method-description">
1063
- <p>
1064
- the URL for the main photo page if getInfo has already been called, this
1065
- will return the pretty <a href="Photo.html#M000064">url</a>
1066
- </p>
1067
- <p>
1068
- for historical reasons, an optional size can be given &#8216;Medium&#8217;
1069
- returns the regular <a href="Photo.html#M000064">url</a>; any other size
1070
- returns a size page use <a href="Photo.html#M000062">size_url</a> instead
1071
- </p>
1072
- <p><a class="source-toggle" href="#"
1073
- onclick="toggleCode('M000064-source');return false;">[Source]</a></p>
1074
- <div class="method-source-code" id="M000064-source">
1075
- <pre>
1076
- <span class="ruby-comment cmt"># File lib/flickr.rb, line 501</span>
1077
- 501: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">url</span>(<span class="ruby-identifier">size</span> = <span class="ruby-keyword kw">nil</span>)
1078
- 502: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">!=</span> <span class="ruby-value str">'Medium'</span>
1079
- 503: <span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>)
1080
- 504: <span class="ruby-keyword kw">else</span>
1081
- 505: <span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">uri_for_photo_from_self</span>
1082
- 506: <span class="ruby-keyword kw">end</span>
1083
- 507: <span class="ruby-keyword kw">end</span>
1084
- </pre>
1085
- </div>
1086
- </div>
1087
- </div>
1088
-
1089
-
1090
- </div>
1091
-
1092
-
1093
- </div>
1094
-
1095
-
1096
- <div id="validator-badges">
1097
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
1098
- </div>
1099
-
1100
- </body>
1101
- </html>