flickr.rb 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.txt +7 -4
- data/Gemfile.lock +3 -3
- data/README.md +5 -1
- data/Rakefile +6 -7
- data/doc/Flickr.html +1813 -0
- data/doc/Flickr/Config.html +468 -0
- data/doc/Flickr/Group.html +974 -0
- data/doc/Flickr/Photo.html +2467 -0
- data/doc/Flickr/PhotoCollection.html +529 -0
- data/doc/Flickr/Photoset.html +942 -0
- data/doc/Flickr/User.html +1672 -0
- data/doc/_index.html +190 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.Changelog.html +73 -0
- data/doc/file.LICENSE.html +94 -0
- data/{rdoc/README_md.html → doc/file.README.html} +85 -121
- data/doc/file_list.html +62 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +216 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +725 -0
- data/doc/top-level-namespace.html +112 -0
- data/flickr.gemspec +3 -3
- data/lib/flickr.rb +1 -1
- metadata +27 -46
- data/rdoc/Flickr.html +0 -1044
- data/rdoc/Flickr/Config.html +0 -300
- data/rdoc/Flickr/Group.html +0 -373
- data/rdoc/Flickr/Photo.html +0 -1427
- data/rdoc/Flickr/PhotoCollection.html +0 -261
- data/rdoc/Flickr/Photoset.html +0 -389
- data/rdoc/Flickr/User.html +0 -775
- data/rdoc/created.rid +0 -3
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -92
- data/rdoc/js/darkfish.js +0 -155
- data/rdoc/js/jquery.js +0 -18
- data/rdoc/js/navigation.js +0 -142
- data/rdoc/js/search.js +0 -94
- data/rdoc/js/search_index.js +0 -1
- data/rdoc/js/searcher.js +0 -228
- data/rdoc/rdoc.css +0 -595
- data/rdoc/table_of_contents.html +0 -241
@@ -0,0 +1,2467 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
<title>
|
7
|
+
Class: Flickr::Photo
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.4
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!Flickr/Photo.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="../_index.html">Index (P)</a> »
|
35
|
+
<span class='title'><span class='object_link'><a href="../Flickr.html" title="Flickr (class)">Flickr</a></span></span>
|
36
|
+
»
|
37
|
+
<span class="title">Photo</span>
|
38
|
+
|
39
|
+
|
40
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div id="search">
|
44
|
+
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
49
|
+
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
54
|
+
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
59
|
+
|
60
|
+
</div>
|
61
|
+
<div class="clear"></div>
|
62
|
+
</div>
|
63
|
+
|
64
|
+
<iframe id="search_frame"></iframe>
|
65
|
+
|
66
|
+
<div id="content"><h1>Class: Flickr::Photo
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
</h1>
|
71
|
+
|
72
|
+
<dl class="box">
|
73
|
+
|
74
|
+
<dt class="r1">Inherits:</dt>
|
75
|
+
<dd class="r1">
|
76
|
+
<span class="inheritName">Object</span>
|
77
|
+
|
78
|
+
<ul class="fullTree">
|
79
|
+
<li>Object</li>
|
80
|
+
|
81
|
+
<li class="next">Flickr::Photo</li>
|
82
|
+
|
83
|
+
</ul>
|
84
|
+
<a href="#" class="inheritanceTree">show all</a>
|
85
|
+
|
86
|
+
</dd>
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<dt class="r2 last">Defined in:</dt>
|
97
|
+
<dd class="r2 last">lib/flickr.rb</dd>
|
98
|
+
|
99
|
+
</dl>
|
100
|
+
<div class="clear"></div>
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
<h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
|
107
|
+
<ul class="summary">
|
108
|
+
|
109
|
+
<li class="public ">
|
110
|
+
<span class="summary_signature">
|
111
|
+
|
112
|
+
<a href="#client-instance_method" title="#client (instance method)">- (Object) <strong>client</strong> </a>
|
113
|
+
|
114
|
+
|
115
|
+
|
116
|
+
</span>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<span class="note title readonly">readonly</span>
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
<span class="summary_desc"><div class='inline'>
|
132
|
+
<p>Returns the value of attribute client.</p>
|
133
|
+
</div></span>
|
134
|
+
|
135
|
+
</li>
|
136
|
+
|
137
|
+
|
138
|
+
<li class="public ">
|
139
|
+
<span class="summary_signature">
|
140
|
+
|
141
|
+
<a href="#id-instance_method" title="#id (instance method)">- (Object) <strong>id</strong> </a>
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
</span>
|
146
|
+
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
<span class="note title readonly">readonly</span>
|
151
|
+
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
|
160
|
+
<span class="summary_desc"><div class='inline'>
|
161
|
+
<p>Returns the value of attribute id.</p>
|
162
|
+
</div></span>
|
163
|
+
|
164
|
+
</li>
|
165
|
+
|
166
|
+
|
167
|
+
<li class="public ">
|
168
|
+
<span class="summary_signature">
|
169
|
+
|
170
|
+
<a href="#title-instance_method" title="#title (instance method)">- (Object) <strong>title</strong> </a>
|
171
|
+
|
172
|
+
|
173
|
+
|
174
|
+
</span>
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
<span class="summary_desc"><div class='inline'>
|
188
|
+
<p>Returns the value of attribute title.</p>
|
189
|
+
</div></span>
|
190
|
+
|
191
|
+
</li>
|
192
|
+
|
193
|
+
|
194
|
+
</ul>
|
195
|
+
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
|
200
|
+
<h2>
|
201
|
+
Instance Method Summary
|
202
|
+
<small>(<a href="#" class="summary_toggle">collapse</a>)</small>
|
203
|
+
</h2>
|
204
|
+
|
205
|
+
<ul class="summary">
|
206
|
+
|
207
|
+
<li class="public ">
|
208
|
+
<span class="summary_signature">
|
209
|
+
|
210
|
+
<a href="#%5B%5D-instance_method" title="#[] (instance method)">- (Object) <strong>[]</strong>(param_name) </a>
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
</span>
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
|
222
|
+
|
223
|
+
|
224
|
+
<span class="summary_desc"><div class='inline'>
|
225
|
+
<p>Allows access to all photos instance variables through hash like interface,
|
226
|
+
e.g.</p>
|
227
|
+
</div></span>
|
228
|
+
|
229
|
+
</li>
|
230
|
+
|
231
|
+
|
232
|
+
<li class="public ">
|
233
|
+
<span class="summary_signature">
|
234
|
+
|
235
|
+
<a href="#add_note-instance_method" title="#add_note (instance method)">- (Object) <strong>add_note</strong>(note) </a>
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
</span>
|
240
|
+
|
241
|
+
|
242
|
+
|
243
|
+
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
|
248
|
+
|
249
|
+
<span class="summary_desc"><div class='inline'>
|
250
|
+
<p>Implements flickr.photos.notes.add.</p>
|
251
|
+
</div></span>
|
252
|
+
|
253
|
+
</li>
|
254
|
+
|
255
|
+
|
256
|
+
<li class="public ">
|
257
|
+
<span class="summary_signature">
|
258
|
+
|
259
|
+
<a href="#add_tag-instance_method" title="#add_tag (instance method)">- (Object) <strong>add_tag</strong>(tag) </a>
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
</span>
|
264
|
+
|
265
|
+
|
266
|
+
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
<span class="summary_desc"><div class='inline'>
|
274
|
+
<p>Implements flickr.photos.addTags.</p>
|
275
|
+
</div></span>
|
276
|
+
|
277
|
+
</li>
|
278
|
+
|
279
|
+
|
280
|
+
<li class="public ">
|
281
|
+
<span class="summary_signature">
|
282
|
+
|
283
|
+
<a href="#context-instance_method" title="#context (instance method)">- (Object) <strong>context</strong> </a>
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
</span>
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
|
293
|
+
|
294
|
+
|
295
|
+
|
296
|
+
|
297
|
+
<span class="summary_desc"><div class='inline'>
|
298
|
+
<p>Implements flickr.photos.getContext.</p>
|
299
|
+
</div></span>
|
300
|
+
|
301
|
+
</li>
|
302
|
+
|
303
|
+
|
304
|
+
<li class="public ">
|
305
|
+
<span class="summary_signature">
|
306
|
+
|
307
|
+
<a href="#dates%3D-instance_method" title="#dates= (instance method)">- (Object) <strong>dates=</strong>(dates) </a>
|
308
|
+
|
309
|
+
|
310
|
+
|
311
|
+
</span>
|
312
|
+
|
313
|
+
|
314
|
+
|
315
|
+
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
|
320
|
+
|
321
|
+
<span class="summary_desc"><div class='inline'>
|
322
|
+
<p>Implements flickr.photos.setDates.</p>
|
323
|
+
</div></span>
|
324
|
+
|
325
|
+
</li>
|
326
|
+
|
327
|
+
|
328
|
+
<li class="public ">
|
329
|
+
<span class="summary_signature">
|
330
|
+
|
331
|
+
<a href="#deleteNote-instance_method" title="#deleteNote (instance method)">- (Object) <strong>deleteNote</strong>(note_id) </a>
|
332
|
+
|
333
|
+
|
334
|
+
|
335
|
+
</span>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
<span class="summary_desc"><div class='inline'>
|
346
|
+
<p>Implements flickr.photos.notes.delete.</p>
|
347
|
+
</div></span>
|
348
|
+
|
349
|
+
</li>
|
350
|
+
|
351
|
+
|
352
|
+
<li class="public ">
|
353
|
+
<span class="summary_signature">
|
354
|
+
|
355
|
+
<a href="#description-instance_method" title="#description (instance method)">- (Object) <strong>description</strong> </a>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
</span>
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
370
|
+
|
371
|
+
</li>
|
372
|
+
|
373
|
+
|
374
|
+
<li class="public ">
|
375
|
+
<span class="summary_signature">
|
376
|
+
|
377
|
+
<a href="#description%3D-instance_method" title="#description= (instance method)">- (Object) <strong>description=</strong>(title) </a>
|
378
|
+
|
379
|
+
|
380
|
+
|
381
|
+
</span>
|
382
|
+
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
|
388
|
+
|
389
|
+
|
390
|
+
|
391
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
392
|
+
|
393
|
+
</li>
|
394
|
+
|
395
|
+
|
396
|
+
<li class="public ">
|
397
|
+
<span class="summary_signature">
|
398
|
+
|
399
|
+
<a href="#editNote-instance_method" title="#editNote (instance method)">- (Object) <strong>editNote</strong>(note_id) </a>
|
400
|
+
|
401
|
+
|
402
|
+
|
403
|
+
</span>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
|
410
|
+
|
411
|
+
|
412
|
+
|
413
|
+
<span class="summary_desc"><div class='inline'>
|
414
|
+
<p>Implements flickr.photos.notes.edit.</p>
|
415
|
+
</div></span>
|
416
|
+
|
417
|
+
</li>
|
418
|
+
|
419
|
+
|
420
|
+
<li class="public ">
|
421
|
+
<span class="summary_signature">
|
422
|
+
|
423
|
+
<a href="#exif-instance_method" title="#exif (instance method)">- (Object) <strong>exif</strong> </a>
|
424
|
+
|
425
|
+
|
426
|
+
|
427
|
+
</span>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
|
434
|
+
|
435
|
+
|
436
|
+
|
437
|
+
<span class="summary_desc"><div class='inline'>
|
438
|
+
<p>Implements flickr.photos.getExif.</p>
|
439
|
+
</div></span>
|
440
|
+
|
441
|
+
</li>
|
442
|
+
|
443
|
+
|
444
|
+
<li class="public ">
|
445
|
+
<span class="summary_signature">
|
446
|
+
|
447
|
+
<a href="#file-instance_method" title="#file (instance method)">- (Object) <strong>file</strong>(size = 'Medium') </a>
|
448
|
+
|
449
|
+
|
450
|
+
|
451
|
+
</span>
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
|
456
|
+
|
457
|
+
|
458
|
+
|
459
|
+
|
460
|
+
|
461
|
+
<span class="summary_desc"><div class='inline'>
|
462
|
+
<p>Returns the photo file data itself, in any specified size.</p>
|
463
|
+
</div></span>
|
464
|
+
|
465
|
+
</li>
|
466
|
+
|
467
|
+
|
468
|
+
<li class="public ">
|
469
|
+
<span class="summary_signature">
|
470
|
+
|
471
|
+
<a href="#filename-instance_method" title="#filename (instance method)">- (Object) <strong>filename</strong> </a>
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
</span>
|
476
|
+
|
477
|
+
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
|
482
|
+
|
483
|
+
|
484
|
+
|
485
|
+
<span class="summary_desc"><div class='inline'>
|
486
|
+
<p>Unique filename for the image, based on the Flickr NSID.</p>
|
487
|
+
</div></span>
|
488
|
+
|
489
|
+
</li>
|
490
|
+
|
491
|
+
|
492
|
+
<li class="public ">
|
493
|
+
<span class="summary_signature">
|
494
|
+
|
495
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">- (Photo) <strong>initialize</strong>(id = nil, api_key = {}, extra_params = {}) </a>
|
496
|
+
|
497
|
+
|
498
|
+
|
499
|
+
</span>
|
500
|
+
|
501
|
+
|
502
|
+
<span class="note title constructor">constructor</span>
|
503
|
+
|
504
|
+
|
505
|
+
|
506
|
+
|
507
|
+
|
508
|
+
|
509
|
+
|
510
|
+
|
511
|
+
<span class="summary_desc"><div class='inline'>
|
512
|
+
<p>A new instance of Photo.</p>
|
513
|
+
</div></span>
|
514
|
+
|
515
|
+
</li>
|
516
|
+
|
517
|
+
|
518
|
+
<li class="public ">
|
519
|
+
<span class="summary_signature">
|
520
|
+
|
521
|
+
<a href="#isfavorite-instance_method" title="#isfavorite (instance method)">- (Object) <strong>isfavorite</strong> </a>
|
522
|
+
|
523
|
+
|
524
|
+
|
525
|
+
</span>
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
|
530
|
+
|
531
|
+
|
532
|
+
|
533
|
+
|
534
|
+
|
535
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
536
|
+
|
537
|
+
</li>
|
538
|
+
|
539
|
+
|
540
|
+
<li class="public ">
|
541
|
+
<span class="summary_signature">
|
542
|
+
|
543
|
+
<a href="#license-instance_method" title="#license (instance method)">- (Object) <strong>license</strong> </a>
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
</span>
|
548
|
+
|
549
|
+
|
550
|
+
|
551
|
+
|
552
|
+
|
553
|
+
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
558
|
+
|
559
|
+
</li>
|
560
|
+
|
561
|
+
|
562
|
+
<li class="public ">
|
563
|
+
<span class="summary_signature">
|
564
|
+
|
565
|
+
<a href="#normalize_size-instance_method" title="#normalize_size (instance method)">- (Object) <strong>normalize_size</strong>(size) </a>
|
566
|
+
|
567
|
+
|
568
|
+
|
569
|
+
</span>
|
570
|
+
|
571
|
+
|
572
|
+
|
573
|
+
|
574
|
+
|
575
|
+
|
576
|
+
|
577
|
+
|
578
|
+
|
579
|
+
<span class="summary_desc"><div class='inline'>
|
580
|
+
<p>converts string or symbol size to a capitalized string.</p>
|
581
|
+
</div></span>
|
582
|
+
|
583
|
+
</li>
|
584
|
+
|
585
|
+
|
586
|
+
<li class="public ">
|
587
|
+
<span class="summary_signature">
|
588
|
+
|
589
|
+
<a href="#notes-instance_method" title="#notes (instance method)">- (Object) <strong>notes</strong> </a>
|
590
|
+
|
591
|
+
|
592
|
+
|
593
|
+
</span>
|
594
|
+
|
595
|
+
|
596
|
+
|
597
|
+
|
598
|
+
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
|
603
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
604
|
+
|
605
|
+
</li>
|
606
|
+
|
607
|
+
|
608
|
+
<li class="public ">
|
609
|
+
<span class="summary_signature">
|
610
|
+
|
611
|
+
<a href="#owner-instance_method" title="#owner (instance method)">- (Object) <strong>owner</strong> </a>
|
612
|
+
|
613
|
+
|
614
|
+
|
615
|
+
</span>
|
616
|
+
|
617
|
+
|
618
|
+
|
619
|
+
|
620
|
+
|
621
|
+
|
622
|
+
|
623
|
+
|
624
|
+
|
625
|
+
<span class="summary_desc"><div class='inline'>
|
626
|
+
<p>Returns the owner of the photo as a Flickr::User.</p>
|
627
|
+
</div></span>
|
628
|
+
|
629
|
+
</li>
|
630
|
+
|
631
|
+
|
632
|
+
<li class="public ">
|
633
|
+
<span class="summary_signature">
|
634
|
+
|
635
|
+
<a href="#permissions-instance_method" title="#permissions (instance method)">- (Object) <strong>permissions</strong> </a>
|
636
|
+
|
637
|
+
|
638
|
+
|
639
|
+
</span>
|
640
|
+
|
641
|
+
|
642
|
+
|
643
|
+
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
|
648
|
+
|
649
|
+
<span class="summary_desc"><div class='inline'>
|
650
|
+
<p>Implements flickr.photos.getPerms.</p>
|
651
|
+
</div></span>
|
652
|
+
|
653
|
+
</li>
|
654
|
+
|
655
|
+
|
656
|
+
<li class="public ">
|
657
|
+
<span class="summary_signature">
|
658
|
+
|
659
|
+
<a href="#perms%3D-instance_method" title="#perms= (instance method)">- (Object) <strong>perms=</strong>(perms) </a>
|
660
|
+
|
661
|
+
|
662
|
+
|
663
|
+
</span>
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
|
670
|
+
|
671
|
+
|
672
|
+
|
673
|
+
<span class="summary_desc"><div class='inline'>
|
674
|
+
<p>Implements flickr.photos.setPerms.</p>
|
675
|
+
</div></span>
|
676
|
+
|
677
|
+
</li>
|
678
|
+
|
679
|
+
|
680
|
+
<li class="public ">
|
681
|
+
<span class="summary_signature">
|
682
|
+
|
683
|
+
<a href="#postToBlog-instance_method" title="#postToBlog (instance method)">- (Object) <strong>postToBlog</strong>(blog_id, title = '', description = '') </a>
|
684
|
+
|
685
|
+
|
686
|
+
|
687
|
+
</span>
|
688
|
+
|
689
|
+
|
690
|
+
|
691
|
+
|
692
|
+
|
693
|
+
|
694
|
+
|
695
|
+
|
696
|
+
|
697
|
+
<span class="summary_desc"><div class='inline'>
|
698
|
+
<p>Implements flickr.blogs.postPhoto.</p>
|
699
|
+
</div></span>
|
700
|
+
|
701
|
+
</li>
|
702
|
+
|
703
|
+
|
704
|
+
<li class="public ">
|
705
|
+
<span class="summary_signature">
|
706
|
+
|
707
|
+
<a href="#pretty_url-instance_method" title="#pretty_url (instance method)">- (Object) <strong>pretty_url</strong> </a>
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
</span>
|
712
|
+
|
713
|
+
|
714
|
+
|
715
|
+
|
716
|
+
|
717
|
+
|
718
|
+
|
719
|
+
|
720
|
+
|
721
|
+
<span class="summary_desc"><div class='inline'>
|
722
|
+
<p>the 'pretty' url for a photo (if the user has set up a custom name)
|
723
|
+
eg, <a
|
724
|
+
href="http://flickr.com/photos/granth/2584402507">flickr.com/photos/granth/2584402507</a>/
|
725
|
+
instead of <a
|
726
|
+
href="http://flickr.com/photos/23386158@N00/2584402507">flickr.com/photos/23386158@N00/2584402507</a>/.</p>
|
727
|
+
</div></span>
|
728
|
+
|
729
|
+
</li>
|
730
|
+
|
731
|
+
|
732
|
+
<li class="public ">
|
733
|
+
<span class="summary_signature">
|
734
|
+
|
735
|
+
<a href="#remove_tag-instance_method" title="#remove_tag (instance method)">- (Object) <strong>remove_tag</strong>(tag) </a>
|
736
|
+
|
737
|
+
|
738
|
+
|
739
|
+
</span>
|
740
|
+
|
741
|
+
|
742
|
+
|
743
|
+
|
744
|
+
|
745
|
+
|
746
|
+
|
747
|
+
|
748
|
+
|
749
|
+
<span class="summary_desc"><div class='inline'>
|
750
|
+
<p>Implements flickr.photos.removeTag.</p>
|
751
|
+
</div></span>
|
752
|
+
|
753
|
+
</li>
|
754
|
+
|
755
|
+
|
756
|
+
<li class="public ">
|
757
|
+
<span class="summary_signature">
|
758
|
+
|
759
|
+
<a href="#rotate-instance_method" title="#rotate (instance method)">- (Object) <strong>rotate</strong> </a>
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
</span>
|
764
|
+
|
765
|
+
|
766
|
+
|
767
|
+
|
768
|
+
|
769
|
+
|
770
|
+
|
771
|
+
|
772
|
+
|
773
|
+
<span class="summary_desc"><div class='inline'>
|
774
|
+
<p>Implements flickr.photos.transform.rotate.</p>
|
775
|
+
</div></span>
|
776
|
+
|
777
|
+
</li>
|
778
|
+
|
779
|
+
|
780
|
+
<li class="public ">
|
781
|
+
<span class="summary_signature">
|
782
|
+
|
783
|
+
<a href="#rotation-instance_method" title="#rotation (instance method)">- (Object) <strong>rotation</strong> </a>
|
784
|
+
|
785
|
+
|
786
|
+
|
787
|
+
</span>
|
788
|
+
|
789
|
+
|
790
|
+
|
791
|
+
|
792
|
+
|
793
|
+
|
794
|
+
|
795
|
+
|
796
|
+
|
797
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
798
|
+
|
799
|
+
</li>
|
800
|
+
|
801
|
+
|
802
|
+
<li class="public ">
|
803
|
+
<span class="summary_signature">
|
804
|
+
|
805
|
+
<a href="#server-instance_method" title="#server (instance method)">- (Object) <strong>server</strong> </a>
|
806
|
+
|
807
|
+
|
808
|
+
|
809
|
+
</span>
|
810
|
+
|
811
|
+
|
812
|
+
|
813
|
+
|
814
|
+
|
815
|
+
|
816
|
+
|
817
|
+
|
818
|
+
|
819
|
+
<span class="summary_desc"><div class='inline'></div></span>
|
820
|
+
|
821
|
+
</li>
|
822
|
+
|
823
|
+
|
824
|
+
<li class="public ">
|
825
|
+
<span class="summary_signature">
|
826
|
+
|
827
|
+
<a href="#size_url-instance_method" title="#size_url (instance method)">- (Object) <strong>size_url</strong>(size = 'Medium') </a>
|
828
|
+
|
829
|
+
|
830
|
+
|
831
|
+
</span>
|
832
|
+
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
|
837
|
+
|
838
|
+
|
839
|
+
|
840
|
+
|
841
|
+
<span class="summary_desc"><div class='inline'>
|
842
|
+
<p>Returns the URL for the photo size page defaults to 'Medium' other
|
843
|
+
valid sizes are in the VALID_SIZES hash.</p>
|
844
|
+
</div></span>
|
845
|
+
|
846
|
+
</li>
|
847
|
+
|
848
|
+
|
849
|
+
<li class="public ">
|
850
|
+
<span class="summary_signature">
|
851
|
+
|
852
|
+
<a href="#sizes-instance_method" title="#sizes (instance method)">- (Object) <strong>sizes</strong>(size = nil) </a>
|
853
|
+
|
854
|
+
|
855
|
+
|
856
|
+
</span>
|
857
|
+
|
858
|
+
|
859
|
+
|
860
|
+
|
861
|
+
|
862
|
+
|
863
|
+
|
864
|
+
|
865
|
+
|
866
|
+
<span class="summary_desc"><div class='inline'>
|
867
|
+
<p>Implements flickr.photos.getSizes.</p>
|
868
|
+
</div></span>
|
869
|
+
|
870
|
+
</li>
|
871
|
+
|
872
|
+
|
873
|
+
<li class="public ">
|
874
|
+
<span class="summary_signature">
|
875
|
+
|
876
|
+
<a href="#source-instance_method" title="#source (instance method)">- (Object) <strong>source</strong>(size = 'Medium') </a>
|
877
|
+
|
878
|
+
|
879
|
+
|
880
|
+
</span>
|
881
|
+
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
|
886
|
+
|
887
|
+
|
888
|
+
|
889
|
+
|
890
|
+
<span class="summary_desc"><div class='inline'>
|
891
|
+
<p>Returns the URL for the image (default or any specified size).</p>
|
892
|
+
</div></span>
|
893
|
+
|
894
|
+
</li>
|
895
|
+
|
896
|
+
|
897
|
+
<li class="public ">
|
898
|
+
<span class="summary_signature">
|
899
|
+
|
900
|
+
<a href="#tags-instance_method" title="#tags (instance method)">- (Object) <strong>tags</strong> </a>
|
901
|
+
|
902
|
+
|
903
|
+
|
904
|
+
</span>
|
905
|
+
|
906
|
+
|
907
|
+
|
908
|
+
|
909
|
+
|
910
|
+
|
911
|
+
|
912
|
+
|
913
|
+
|
914
|
+
<span class="summary_desc"><div class='inline'>
|
915
|
+
<p>flickr.tags.getListPhoto.</p>
|
916
|
+
</div></span>
|
917
|
+
|
918
|
+
</li>
|
919
|
+
|
920
|
+
|
921
|
+
<li class="public ">
|
922
|
+
<span class="summary_signature">
|
923
|
+
|
924
|
+
<a href="#tags%3D-instance_method" title="#tags= (instance method)">- (Object) <strong>tags=</strong>(tags) </a>
|
925
|
+
|
926
|
+
|
927
|
+
|
928
|
+
</span>
|
929
|
+
|
930
|
+
|
931
|
+
|
932
|
+
|
933
|
+
|
934
|
+
|
935
|
+
|
936
|
+
|
937
|
+
|
938
|
+
<span class="summary_desc"><div class='inline'>
|
939
|
+
<p>Implements flickr.photos.setTags.</p>
|
940
|
+
</div></span>
|
941
|
+
|
942
|
+
</li>
|
943
|
+
|
944
|
+
|
945
|
+
<li class="public ">
|
946
|
+
<span class="summary_signature">
|
947
|
+
|
948
|
+
<a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
|
949
|
+
|
950
|
+
|
951
|
+
|
952
|
+
</span>
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
|
957
|
+
|
958
|
+
|
959
|
+
|
960
|
+
|
961
|
+
|
962
|
+
<span class="summary_desc"><div class='inline'>
|
963
|
+
<p>Converts the Photo to a string by returning its title.</p>
|
964
|
+
</div></span>
|
965
|
+
|
966
|
+
</li>
|
967
|
+
|
968
|
+
|
969
|
+
<li class="public ">
|
970
|
+
<span class="summary_signature">
|
971
|
+
|
972
|
+
<a href="#url-instance_method" title="#url (instance method)">- (Object) <strong>url</strong>(size = nil) </a>
|
973
|
+
|
974
|
+
|
975
|
+
|
976
|
+
</span>
|
977
|
+
|
978
|
+
|
979
|
+
|
980
|
+
|
981
|
+
|
982
|
+
|
983
|
+
|
984
|
+
|
985
|
+
|
986
|
+
<span class="summary_desc"><div class='inline'>
|
987
|
+
<p>the URL for the main photo page if getInfo has already been called, this
|
988
|
+
will return the pretty url.</p>
|
989
|
+
</div></span>
|
990
|
+
|
991
|
+
</li>
|
992
|
+
|
993
|
+
|
994
|
+
</ul>
|
995
|
+
|
996
|
+
|
997
|
+
<div id="constructor_details" class="method_details_list">
|
998
|
+
<h2>Constructor Details</h2>
|
999
|
+
|
1000
|
+
<div class="method_details first">
|
1001
|
+
<h3 class="signature first" id="initialize-instance_method">
|
1002
|
+
|
1003
|
+
- (<tt><span class='object_link'><a href="" title="Flickr::Photo (class)">Photo</a></span></tt>) <strong>initialize</strong>(id = nil, api_key = {}, extra_params = {})
|
1004
|
+
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
1008
|
+
|
1009
|
+
</h3><div class="docstring">
|
1010
|
+
<div class="discussion">
|
1011
|
+
|
1012
|
+
<p>Returns a new instance of Photo</p>
|
1013
|
+
|
1014
|
+
|
1015
|
+
</div>
|
1016
|
+
</div>
|
1017
|
+
<div class="tags">
|
1018
|
+
|
1019
|
+
|
1020
|
+
</div><table class="source_code">
|
1021
|
+
<tr>
|
1022
|
+
<td>
|
1023
|
+
<pre class="lines">
|
1024
|
+
|
1025
|
+
|
1026
|
+
436
|
1027
|
+
437
|
1028
|
+
438
|
1029
|
+
439
|
1030
|
+
440
|
1031
|
+
441</pre>
|
1032
|
+
</td>
|
1033
|
+
<td>
|
1034
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 436</span>
|
1035
|
+
|
1036
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_api_key'>api_key</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='comma'>,</span> <span class='id identifier rubyid_extra_params'>extra_params</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
|
1037
|
+
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_id'>id</span>
|
1038
|
+
<span class='ivar'>@api_key</span> <span class='op'>=</span> <span class='id identifier rubyid_api_key'>api_key</span>
|
1039
|
+
<span class='id identifier rubyid_extra_params'>extra_params</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_set'>instance_variable_set</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_k'>k</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='comma'>,</span> <span class='id identifier rubyid_v'>v</span><span class='rparen'>)</span> <span class='rbrace'>}</span> <span class='comment'># convert extra_params into instance variables
|
1040
|
+
</span> <span class='ivar'>@client</span> <span class='op'>=</span> <span class='const'>Flickr</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='ivar'>@api_key</span>
|
1041
|
+
<span class='kw'>end</span></pre>
|
1042
|
+
</td>
|
1043
|
+
</tr>
|
1044
|
+
</table>
|
1045
|
+
</div>
|
1046
|
+
|
1047
|
+
</div>
|
1048
|
+
|
1049
|
+
<div id="instance_attr_details" class="attr_details">
|
1050
|
+
<h2>Instance Attribute Details</h2>
|
1051
|
+
|
1052
|
+
|
1053
|
+
<span id=""></span>
|
1054
|
+
<div class="method_details first">
|
1055
|
+
<h3 class="signature first" id="client-instance_method">
|
1056
|
+
|
1057
|
+
- (<tt>Object</tt>) <strong>client</strong> <span class="extras">(readonly)</span>
|
1058
|
+
|
1059
|
+
|
1060
|
+
|
1061
|
+
|
1062
|
+
|
1063
|
+
</h3><div class="docstring">
|
1064
|
+
<div class="discussion">
|
1065
|
+
|
1066
|
+
<p>Returns the value of attribute client</p>
|
1067
|
+
|
1068
|
+
|
1069
|
+
</div>
|
1070
|
+
</div>
|
1071
|
+
<div class="tags">
|
1072
|
+
|
1073
|
+
|
1074
|
+
</div><table class="source_code">
|
1075
|
+
<tr>
|
1076
|
+
<td>
|
1077
|
+
<pre class="lines">
|
1078
|
+
|
1079
|
+
|
1080
|
+
434
|
1081
|
+
435
|
1082
|
+
436</pre>
|
1083
|
+
</td>
|
1084
|
+
<td>
|
1085
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 434</span>
|
1086
|
+
|
1087
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
|
1088
|
+
<span class='ivar'>@client</span>
|
1089
|
+
<span class='kw'>end</span></pre>
|
1090
|
+
</td>
|
1091
|
+
</tr>
|
1092
|
+
</table>
|
1093
|
+
</div>
|
1094
|
+
|
1095
|
+
|
1096
|
+
<span id=""></span>
|
1097
|
+
<div class="method_details ">
|
1098
|
+
<h3 class="signature " id="id-instance_method">
|
1099
|
+
|
1100
|
+
- (<tt>Object</tt>) <strong>id</strong> <span class="extras">(readonly)</span>
|
1101
|
+
|
1102
|
+
|
1103
|
+
|
1104
|
+
|
1105
|
+
|
1106
|
+
</h3><div class="docstring">
|
1107
|
+
<div class="discussion">
|
1108
|
+
|
1109
|
+
<p>Returns the value of attribute id</p>
|
1110
|
+
|
1111
|
+
|
1112
|
+
</div>
|
1113
|
+
</div>
|
1114
|
+
<div class="tags">
|
1115
|
+
|
1116
|
+
|
1117
|
+
</div><table class="source_code">
|
1118
|
+
<tr>
|
1119
|
+
<td>
|
1120
|
+
<pre class="lines">
|
1121
|
+
|
1122
|
+
|
1123
|
+
434
|
1124
|
+
435
|
1125
|
+
436</pre>
|
1126
|
+
</td>
|
1127
|
+
<td>
|
1128
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 434</span>
|
1129
|
+
|
1130
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
1131
|
+
<span class='ivar'>@id</span>
|
1132
|
+
<span class='kw'>end</span></pre>
|
1133
|
+
</td>
|
1134
|
+
</tr>
|
1135
|
+
</table>
|
1136
|
+
</div>
|
1137
|
+
|
1138
|
+
|
1139
|
+
<span id="title=-instance_method"></span>
|
1140
|
+
<div class="method_details ">
|
1141
|
+
<h3 class="signature " id="title-instance_method">
|
1142
|
+
|
1143
|
+
- (<tt>Object</tt>) <strong>title</strong>
|
1144
|
+
|
1145
|
+
|
1146
|
+
|
1147
|
+
|
1148
|
+
|
1149
|
+
</h3><div class="docstring">
|
1150
|
+
<div class="discussion">
|
1151
|
+
|
1152
|
+
<p>Returns the value of attribute title</p>
|
1153
|
+
|
1154
|
+
|
1155
|
+
</div>
|
1156
|
+
</div>
|
1157
|
+
<div class="tags">
|
1158
|
+
|
1159
|
+
|
1160
|
+
</div><table class="source_code">
|
1161
|
+
<tr>
|
1162
|
+
<td>
|
1163
|
+
<pre class="lines">
|
1164
|
+
|
1165
|
+
|
1166
|
+
434
|
1167
|
+
435
|
1168
|
+
436</pre>
|
1169
|
+
</td>
|
1170
|
+
<td>
|
1171
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 434</span>
|
1172
|
+
|
1173
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
|
1174
|
+
<span class='ivar'>@title</span>
|
1175
|
+
<span class='kw'>end</span></pre>
|
1176
|
+
</td>
|
1177
|
+
</tr>
|
1178
|
+
</table>
|
1179
|
+
</div>
|
1180
|
+
|
1181
|
+
</div>
|
1182
|
+
|
1183
|
+
|
1184
|
+
<div id="instance_method_details" class="method_details_list">
|
1185
|
+
<h2>Instance Method Details</h2>
|
1186
|
+
|
1187
|
+
|
1188
|
+
<div class="method_details first">
|
1189
|
+
<h3 class="signature first" id="[]-instance_method">
|
1190
|
+
|
1191
|
+
- (<tt>Object</tt>) <strong>[]</strong>(param_name)
|
1192
|
+
|
1193
|
+
|
1194
|
+
|
1195
|
+
|
1196
|
+
|
1197
|
+
</h3><div class="docstring">
|
1198
|
+
<div class="discussion">
|
1199
|
+
|
1200
|
+
<p>Allows access to all photos instance variables through hash like interface,
|
1201
|
+
e.g. <a href="http://"datetaken"">photo</a> returns @datetaken instance
|
1202
|
+
variable. Useful for accessing any weird and wonderful parameter that may
|
1203
|
+
have been returned by Flickr when finding the photo, e.g. those returned by
|
1204
|
+
the extras argument in flickr.people.getPublicPhotos</p>
|
1205
|
+
|
1206
|
+
|
1207
|
+
</div>
|
1208
|
+
</div>
|
1209
|
+
<div class="tags">
|
1210
|
+
|
1211
|
+
|
1212
|
+
</div><table class="source_code">
|
1213
|
+
<tr>
|
1214
|
+
<td>
|
1215
|
+
<pre class="lines">
|
1216
|
+
|
1217
|
+
|
1218
|
+
449
|
1219
|
+
450
|
1220
|
+
451</pre>
|
1221
|
+
</td>
|
1222
|
+
<td>
|
1223
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 449</span>
|
1224
|
+
|
1225
|
+
<span class='kw'>def</span> <span class='op'>[]</span><span class='lparen'>(</span><span class='id identifier rubyid_param_name'>param_name</span><span class='rparen'>)</span>
|
1226
|
+
<span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>@</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_param_name'>param_name</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1227
|
+
<span class='kw'>end</span></pre>
|
1228
|
+
</td>
|
1229
|
+
</tr>
|
1230
|
+
</table>
|
1231
|
+
</div>
|
1232
|
+
|
1233
|
+
<div class="method_details ">
|
1234
|
+
<h3 class="signature " id="add_note-instance_method">
|
1235
|
+
|
1236
|
+
- (<tt>Object</tt>) <strong>add_note</strong>(note)
|
1237
|
+
|
1238
|
+
|
1239
|
+
|
1240
|
+
|
1241
|
+
|
1242
|
+
</h3><div class="docstring">
|
1243
|
+
<div class="discussion">
|
1244
|
+
|
1245
|
+
<p>Implements flickr.photos.notes.add</p>
|
1246
|
+
|
1247
|
+
|
1248
|
+
</div>
|
1249
|
+
</div>
|
1250
|
+
<div class="tags">
|
1251
|
+
|
1252
|
+
|
1253
|
+
</div><table class="source_code">
|
1254
|
+
<tr>
|
1255
|
+
<td>
|
1256
|
+
<pre class="lines">
|
1257
|
+
|
1258
|
+
|
1259
|
+
577
|
1260
|
+
578</pre>
|
1261
|
+
</td>
|
1262
|
+
<td>
|
1263
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 577</span>
|
1264
|
+
|
1265
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_note'>add_note</span><span class='lparen'>(</span><span class='id identifier rubyid_note'>note</span><span class='rparen'>)</span>
|
1266
|
+
<span class='kw'>end</span></pre>
|
1267
|
+
</td>
|
1268
|
+
</tr>
|
1269
|
+
</table>
|
1270
|
+
</div>
|
1271
|
+
|
1272
|
+
<div class="method_details ">
|
1273
|
+
<h3 class="signature " id="add_tag-instance_method">
|
1274
|
+
|
1275
|
+
- (<tt>Object</tt>) <strong>add_tag</strong>(tag)
|
1276
|
+
|
1277
|
+
|
1278
|
+
|
1279
|
+
|
1280
|
+
|
1281
|
+
</h3><div class="docstring">
|
1282
|
+
<div class="discussion">
|
1283
|
+
|
1284
|
+
<p>Implements flickr.photos.addTags</p>
|
1285
|
+
|
1286
|
+
|
1287
|
+
</div>
|
1288
|
+
</div>
|
1289
|
+
<div class="tags">
|
1290
|
+
|
1291
|
+
|
1292
|
+
</div><table class="source_code">
|
1293
|
+
<tr>
|
1294
|
+
<td>
|
1295
|
+
<pre class="lines">
|
1296
|
+
|
1297
|
+
|
1298
|
+
599
|
1299
|
+
600</pre>
|
1300
|
+
</td>
|
1301
|
+
<td>
|
1302
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 599</span>
|
1303
|
+
|
1304
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_add_tag'>add_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
|
1305
|
+
<span class='kw'>end</span></pre>
|
1306
|
+
</td>
|
1307
|
+
</tr>
|
1308
|
+
</table>
|
1309
|
+
</div>
|
1310
|
+
|
1311
|
+
<div class="method_details ">
|
1312
|
+
<h3 class="signature " id="context-instance_method">
|
1313
|
+
|
1314
|
+
- (<tt>Object</tt>) <strong>context</strong>
|
1315
|
+
|
1316
|
+
|
1317
|
+
|
1318
|
+
|
1319
|
+
|
1320
|
+
</h3><div class="docstring">
|
1321
|
+
<div class="discussion">
|
1322
|
+
|
1323
|
+
<p>Implements flickr.photos.getContext</p>
|
1324
|
+
|
1325
|
+
|
1326
|
+
</div>
|
1327
|
+
</div>
|
1328
|
+
<div class="tags">
|
1329
|
+
|
1330
|
+
|
1331
|
+
</div><table class="source_code">
|
1332
|
+
<tr>
|
1333
|
+
<td>
|
1334
|
+
<pre class="lines">
|
1335
|
+
|
1336
|
+
|
1337
|
+
546
|
1338
|
+
547
|
1339
|
+
548
|
1340
|
+
549
|
1341
|
+
550
|
1342
|
+
551</pre>
|
1343
|
+
</td>
|
1344
|
+
<td>
|
1345
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 546</span>
|
1346
|
+
|
1347
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_context'>context</span>
|
1348
|
+
<span class='id identifier rubyid_context'>context</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_getContext'>photos_getContext</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo_id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='ivar'>@id</span><span class='rparen'>)</span>
|
1349
|
+
<span class='ivar'>@previousPhoto</span> <span class='op'>=</span> <span class='const'>Photo</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>prevphoto</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@api_key</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>prevphoto</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_context'>context</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>prevphoto</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>!=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0</span><span class='tstring_end'>'</span></span>
|
1350
|
+
<span class='ivar'>@nextPhoto</span> <span class='op'>=</span> <span class='const'>Photo</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_context'>context</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nextphoto</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span><span class='comma'>,</span> <span class='ivar'>@api_key</span><span class='comma'>,</span> <span class='id identifier rubyid_context'>context</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nextphoto</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='id identifier rubyid_context'>context</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>nextphoto</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>id</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>!=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>0</span><span class='tstring_end'>'</span></span>
|
1351
|
+
<span class='kw'>return</span> <span class='lbracket'>[</span><span class='ivar'>@previousPhoto</span><span class='comma'>,</span> <span class='ivar'>@nextPhoto</span><span class='rbracket'>]</span>
|
1352
|
+
<span class='kw'>end</span></pre>
|
1353
|
+
</td>
|
1354
|
+
</tr>
|
1355
|
+
</table>
|
1356
|
+
</div>
|
1357
|
+
|
1358
|
+
<div class="method_details ">
|
1359
|
+
<h3 class="signature " id="dates=-instance_method">
|
1360
|
+
|
1361
|
+
- (<tt>Object</tt>) <strong>dates=</strong>(dates)
|
1362
|
+
|
1363
|
+
|
1364
|
+
|
1365
|
+
|
1366
|
+
|
1367
|
+
</h3><div class="docstring">
|
1368
|
+
<div class="discussion">
|
1369
|
+
|
1370
|
+
<p>Implements flickr.photos.setDates</p>
|
1371
|
+
|
1372
|
+
|
1373
|
+
</div>
|
1374
|
+
</div>
|
1375
|
+
<div class="tags">
|
1376
|
+
|
1377
|
+
|
1378
|
+
</div><table class="source_code">
|
1379
|
+
<tr>
|
1380
|
+
<td>
|
1381
|
+
<pre class="lines">
|
1382
|
+
|
1383
|
+
|
1384
|
+
581
|
1385
|
+
582</pre>
|
1386
|
+
</td>
|
1387
|
+
<td>
|
1388
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 581</span>
|
1389
|
+
|
1390
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_dates='>dates=</span><span class='lparen'>(</span><span class='id identifier rubyid_dates'>dates</span><span class='rparen'>)</span>
|
1391
|
+
<span class='kw'>end</span></pre>
|
1392
|
+
</td>
|
1393
|
+
</tr>
|
1394
|
+
</table>
|
1395
|
+
</div>
|
1396
|
+
|
1397
|
+
<div class="method_details ">
|
1398
|
+
<h3 class="signature " id="deleteNote-instance_method">
|
1399
|
+
|
1400
|
+
- (<tt>Object</tt>) <strong>deleteNote</strong>(note_id)
|
1401
|
+
|
1402
|
+
|
1403
|
+
|
1404
|
+
|
1405
|
+
|
1406
|
+
</h3><div class="docstring">
|
1407
|
+
<div class="discussion">
|
1408
|
+
|
1409
|
+
<p>Implements flickr.photos.notes.delete</p>
|
1410
|
+
|
1411
|
+
|
1412
|
+
</div>
|
1413
|
+
</div>
|
1414
|
+
<div class="tags">
|
1415
|
+
|
1416
|
+
|
1417
|
+
</div><table class="source_code">
|
1418
|
+
<tr>
|
1419
|
+
<td>
|
1420
|
+
<pre class="lines">
|
1421
|
+
|
1422
|
+
|
1423
|
+
616
|
1424
|
+
617</pre>
|
1425
|
+
</td>
|
1426
|
+
<td>
|
1427
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 616</span>
|
1428
|
+
|
1429
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_deleteNote'>deleteNote</span><span class='lparen'>(</span><span class='id identifier rubyid_note_id'>note_id</span><span class='rparen'>)</span>
|
1430
|
+
<span class='kw'>end</span></pre>
|
1431
|
+
</td>
|
1432
|
+
</tr>
|
1433
|
+
</table>
|
1434
|
+
</div>
|
1435
|
+
|
1436
|
+
<div class="method_details ">
|
1437
|
+
<h3 class="signature " id="description-instance_method">
|
1438
|
+
|
1439
|
+
- (<tt>Object</tt>) <strong>description</strong>
|
1440
|
+
|
1441
|
+
|
1442
|
+
|
1443
|
+
|
1444
|
+
|
1445
|
+
</h3><table class="source_code">
|
1446
|
+
<tr>
|
1447
|
+
<td>
|
1448
|
+
<pre class="lines">
|
1449
|
+
|
1450
|
+
|
1451
|
+
488
|
1452
|
+
489
|
1453
|
+
490</pre>
|
1454
|
+
</td>
|
1455
|
+
<td>
|
1456
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 488</span>
|
1457
|
+
|
1458
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_description'>description</span>
|
1459
|
+
<span class='ivar'>@description</span> <span class='op'>||</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>description</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1460
|
+
<span class='kw'>end</span></pre>
|
1461
|
+
</td>
|
1462
|
+
</tr>
|
1463
|
+
</table>
|
1464
|
+
</div>
|
1465
|
+
|
1466
|
+
<div class="method_details ">
|
1467
|
+
<h3 class="signature " id="description=-instance_method">
|
1468
|
+
|
1469
|
+
- (<tt>Object</tt>) <strong>description=</strong>(title)
|
1470
|
+
|
1471
|
+
|
1472
|
+
|
1473
|
+
|
1474
|
+
|
1475
|
+
</h3><table class="source_code">
|
1476
|
+
<tr>
|
1477
|
+
<td>
|
1478
|
+
<pre class="lines">
|
1479
|
+
|
1480
|
+
|
1481
|
+
595
|
1482
|
+
596</pre>
|
1483
|
+
</td>
|
1484
|
+
<td>
|
1485
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 595</span>
|
1486
|
+
|
1487
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_description='>description=</span><span class='lparen'>(</span><span class='id identifier rubyid_title'>title</span><span class='rparen'>)</span>
|
1488
|
+
<span class='kw'>end</span></pre>
|
1489
|
+
</td>
|
1490
|
+
</tr>
|
1491
|
+
</table>
|
1492
|
+
</div>
|
1493
|
+
|
1494
|
+
<div class="method_details ">
|
1495
|
+
<h3 class="signature " id="editNote-instance_method">
|
1496
|
+
|
1497
|
+
- (<tt>Object</tt>) <strong>editNote</strong>(note_id)
|
1498
|
+
|
1499
|
+
|
1500
|
+
|
1501
|
+
|
1502
|
+
|
1503
|
+
</h3><div class="docstring">
|
1504
|
+
<div class="discussion">
|
1505
|
+
|
1506
|
+
<p>Implements flickr.photos.notes.edit</p>
|
1507
|
+
|
1508
|
+
|
1509
|
+
</div>
|
1510
|
+
</div>
|
1511
|
+
<div class="tags">
|
1512
|
+
|
1513
|
+
|
1514
|
+
</div><table class="source_code">
|
1515
|
+
<tr>
|
1516
|
+
<td>
|
1517
|
+
<pre class="lines">
|
1518
|
+
|
1519
|
+
|
1520
|
+
620
|
1521
|
+
621</pre>
|
1522
|
+
</td>
|
1523
|
+
<td>
|
1524
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 620</span>
|
1525
|
+
|
1526
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_editNote'>editNote</span><span class='lparen'>(</span><span class='id identifier rubyid_note_id'>note_id</span><span class='rparen'>)</span>
|
1527
|
+
<span class='kw'>end</span></pre>
|
1528
|
+
</td>
|
1529
|
+
</tr>
|
1530
|
+
</table>
|
1531
|
+
</div>
|
1532
|
+
|
1533
|
+
<div class="method_details ">
|
1534
|
+
<h3 class="signature " id="exif-instance_method">
|
1535
|
+
|
1536
|
+
- (<tt>Object</tt>) <strong>exif</strong>
|
1537
|
+
|
1538
|
+
|
1539
|
+
|
1540
|
+
|
1541
|
+
|
1542
|
+
</h3><div class="docstring">
|
1543
|
+
<div class="discussion">
|
1544
|
+
|
1545
|
+
<p>Implements flickr.photos.getExif</p>
|
1546
|
+
|
1547
|
+
|
1548
|
+
</div>
|
1549
|
+
</div>
|
1550
|
+
<div class="tags">
|
1551
|
+
|
1552
|
+
|
1553
|
+
</div><table class="source_code">
|
1554
|
+
<tr>
|
1555
|
+
<td>
|
1556
|
+
<pre class="lines">
|
1557
|
+
|
1558
|
+
|
1559
|
+
554
|
1560
|
+
555
|
1561
|
+
556</pre>
|
1562
|
+
</td>
|
1563
|
+
<td>
|
1564
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 554</span>
|
1565
|
+
|
1566
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_exif'>exif</span>
|
1567
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_getExif'>photos_getExif</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo_id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1568
|
+
<span class='kw'>end</span></pre>
|
1569
|
+
</td>
|
1570
|
+
</tr>
|
1571
|
+
</table>
|
1572
|
+
</div>
|
1573
|
+
|
1574
|
+
<div class="method_details ">
|
1575
|
+
<h3 class="signature " id="file-instance_method">
|
1576
|
+
|
1577
|
+
- (<tt>Object</tt>) <strong>file</strong>(size = 'Medium')
|
1578
|
+
|
1579
|
+
|
1580
|
+
|
1581
|
+
|
1582
|
+
|
1583
|
+
</h3><div class="docstring">
|
1584
|
+
<div class="discussion">
|
1585
|
+
|
1586
|
+
<p>Returns the photo file data itself, in any specified size. Example:
|
1587
|
+
File.open(photo.title, 'w') { |f| f.puts photo.file }</p>
|
1588
|
+
|
1589
|
+
|
1590
|
+
</div>
|
1591
|
+
</div>
|
1592
|
+
<div class="tags">
|
1593
|
+
|
1594
|
+
|
1595
|
+
</div><table class="source_code">
|
1596
|
+
<tr>
|
1597
|
+
<td>
|
1598
|
+
<pre class="lines">
|
1599
|
+
|
1600
|
+
|
1601
|
+
536
|
1602
|
+
537
|
1603
|
+
538</pre>
|
1604
|
+
</td>
|
1605
|
+
<td>
|
1606
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 536</span>
|
1607
|
+
|
1608
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_file'>file</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Medium</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1609
|
+
<span class='const'>Net</span><span class='op'>::</span><span class='const'>HTTP</span><span class='period'>.</span><span class='id identifier rubyid_get_response'>get_response</span><span class='lparen'>(</span><span class='const'>URI</span><span class='period'>.</span><span class='id identifier rubyid_parse'>parse</span><span class='lparen'>(</span><span class='id identifier rubyid_source'>source</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_body'>body</span>
|
1610
|
+
<span class='kw'>end</span></pre>
|
1611
|
+
</td>
|
1612
|
+
</tr>
|
1613
|
+
</table>
|
1614
|
+
</div>
|
1615
|
+
|
1616
|
+
<div class="method_details ">
|
1617
|
+
<h3 class="signature " id="filename-instance_method">
|
1618
|
+
|
1619
|
+
- (<tt>Object</tt>) <strong>filename</strong>
|
1620
|
+
|
1621
|
+
|
1622
|
+
|
1623
|
+
|
1624
|
+
|
1625
|
+
</h3><div class="docstring">
|
1626
|
+
<div class="discussion">
|
1627
|
+
|
1628
|
+
<p>Unique filename for the image, based on the Flickr NSID</p>
|
1629
|
+
|
1630
|
+
|
1631
|
+
</div>
|
1632
|
+
</div>
|
1633
|
+
<div class="tags">
|
1634
|
+
|
1635
|
+
|
1636
|
+
</div><table class="source_code">
|
1637
|
+
<tr>
|
1638
|
+
<td>
|
1639
|
+
<pre class="lines">
|
1640
|
+
|
1641
|
+
|
1642
|
+
541
|
1643
|
+
542
|
1644
|
+
543</pre>
|
1645
|
+
</td>
|
1646
|
+
<td>
|
1647
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 541</span>
|
1648
|
+
|
1649
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_filename'>filename</span>
|
1650
|
+
<span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='ivar'>@id</span><span class='embexpr_end'>}</span><span class='tstring_content'>.jpg</span><span class='tstring_end'>"</span></span>
|
1651
|
+
<span class='kw'>end</span></pre>
|
1652
|
+
</td>
|
1653
|
+
</tr>
|
1654
|
+
</table>
|
1655
|
+
</div>
|
1656
|
+
|
1657
|
+
<div class="method_details ">
|
1658
|
+
<h3 class="signature " id="isfavorite-instance_method">
|
1659
|
+
|
1660
|
+
- (<tt>Object</tt>) <strong>isfavorite</strong>
|
1661
|
+
|
1662
|
+
|
1663
|
+
|
1664
|
+
|
1665
|
+
|
1666
|
+
</h3><table class="source_code">
|
1667
|
+
<tr>
|
1668
|
+
<td>
|
1669
|
+
<pre class="lines">
|
1670
|
+
|
1671
|
+
|
1672
|
+
476
|
1673
|
+
477
|
1674
|
+
478</pre>
|
1675
|
+
</td>
|
1676
|
+
<td>
|
1677
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 476</span>
|
1678
|
+
|
1679
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_isfavorite'>isfavorite</span>
|
1680
|
+
<span class='ivar'>@isfavorite</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>isfavorite</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@isfavorite</span>
|
1681
|
+
<span class='kw'>end</span></pre>
|
1682
|
+
</td>
|
1683
|
+
</tr>
|
1684
|
+
</table>
|
1685
|
+
</div>
|
1686
|
+
|
1687
|
+
<div class="method_details ">
|
1688
|
+
<h3 class="signature " id="license-instance_method">
|
1689
|
+
|
1690
|
+
- (<tt>Object</tt>) <strong>license</strong>
|
1691
|
+
|
1692
|
+
|
1693
|
+
|
1694
|
+
|
1695
|
+
|
1696
|
+
</h3><table class="source_code">
|
1697
|
+
<tr>
|
1698
|
+
<td>
|
1699
|
+
<pre class="lines">
|
1700
|
+
|
1701
|
+
|
1702
|
+
480
|
1703
|
+
481
|
1704
|
+
482</pre>
|
1705
|
+
</td>
|
1706
|
+
<td>
|
1707
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 480</span>
|
1708
|
+
|
1709
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_license'>license</span>
|
1710
|
+
<span class='ivar'>@license</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>license</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@license</span>
|
1711
|
+
<span class='kw'>end</span></pre>
|
1712
|
+
</td>
|
1713
|
+
</tr>
|
1714
|
+
</table>
|
1715
|
+
</div>
|
1716
|
+
|
1717
|
+
<div class="method_details ">
|
1718
|
+
<h3 class="signature " id="normalize_size-instance_method">
|
1719
|
+
|
1720
|
+
- (<tt>Object</tt>) <strong>normalize_size</strong>(size)
|
1721
|
+
|
1722
|
+
|
1723
|
+
|
1724
|
+
|
1725
|
+
|
1726
|
+
</h3><div class="docstring">
|
1727
|
+
<div class="discussion">
|
1728
|
+
|
1729
|
+
<p>converts string or symbol size to a capitalized string</p>
|
1730
|
+
|
1731
|
+
|
1732
|
+
</div>
|
1733
|
+
</div>
|
1734
|
+
<div class="tags">
|
1735
|
+
|
1736
|
+
|
1737
|
+
</div><table class="source_code">
|
1738
|
+
<tr>
|
1739
|
+
<td>
|
1740
|
+
<pre class="lines">
|
1741
|
+
|
1742
|
+
|
1743
|
+
504
|
1744
|
+
505
|
1745
|
+
506</pre>
|
1746
|
+
</td>
|
1747
|
+
<td>
|
1748
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 504</span>
|
1749
|
+
|
1750
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_normalize_size'>normalize_size</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span>
|
1751
|
+
<span class='id identifier rubyid_size'>size</span> <span class='op'>?</span> <span class='id identifier rubyid_size'>size</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span><span class='period'>.</span><span class='id identifier rubyid_capitalize'>capitalize</span> <span class='op'>:</span> <span class='id identifier rubyid_size'>size</span>
|
1752
|
+
<span class='kw'>end</span></pre>
|
1753
|
+
</td>
|
1754
|
+
</tr>
|
1755
|
+
</table>
|
1756
|
+
</div>
|
1757
|
+
|
1758
|
+
<div class="method_details ">
|
1759
|
+
<h3 class="signature " id="notes-instance_method">
|
1760
|
+
|
1761
|
+
- (<tt>Object</tt>) <strong>notes</strong>
|
1762
|
+
|
1763
|
+
|
1764
|
+
|
1765
|
+
|
1766
|
+
|
1767
|
+
</h3><table class="source_code">
|
1768
|
+
<tr>
|
1769
|
+
<td>
|
1770
|
+
<pre class="lines">
|
1771
|
+
|
1772
|
+
|
1773
|
+
492
|
1774
|
+
493
|
1775
|
+
494</pre>
|
1776
|
+
</td>
|
1777
|
+
<td>
|
1778
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 492</span>
|
1779
|
+
|
1780
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_notes'>notes</span>
|
1781
|
+
<span class='ivar'>@notes</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>notes</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@notes</span>
|
1782
|
+
<span class='kw'>end</span></pre>
|
1783
|
+
</td>
|
1784
|
+
</tr>
|
1785
|
+
</table>
|
1786
|
+
</div>
|
1787
|
+
|
1788
|
+
<div class="method_details ">
|
1789
|
+
<h3 class="signature " id="owner-instance_method">
|
1790
|
+
|
1791
|
+
- (<tt>Object</tt>) <strong>owner</strong>
|
1792
|
+
|
1793
|
+
|
1794
|
+
|
1795
|
+
|
1796
|
+
|
1797
|
+
</h3><div class="docstring">
|
1798
|
+
<div class="discussion">
|
1799
|
+
|
1800
|
+
<p>Returns the owner of the photo as a Flickr::User. If we have no info about
|
1801
|
+
the owner, we make an API call to get it. If we already have the
|
1802
|
+
owner's id, create a user based on that. Either way, we cache the
|
1803
|
+
result so we don't need to check again</p>
|
1804
|
+
|
1805
|
+
|
1806
|
+
</div>
|
1807
|
+
</div>
|
1808
|
+
<div class="tags">
|
1809
|
+
|
1810
|
+
|
1811
|
+
</div><table class="source_code">
|
1812
|
+
<tr>
|
1813
|
+
<td>
|
1814
|
+
<pre class="lines">
|
1815
|
+
|
1816
|
+
|
1817
|
+
461
|
1818
|
+
462
|
1819
|
+
463
|
1820
|
+
464
|
1821
|
+
465
|
1822
|
+
466
|
1823
|
+
467
|
1824
|
+
468
|
1825
|
+
469
|
1826
|
+
470</pre>
|
1827
|
+
</td>
|
1828
|
+
<td>
|
1829
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 461</span>
|
1830
|
+
|
1831
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_owner'>owner</span>
|
1832
|
+
<span class='kw'>case</span> <span class='ivar'>@owner</span>
|
1833
|
+
<span class='kw'>when</span> <span class='const'>Flickr</span><span class='op'>::</span><span class='const'>User</span>
|
1834
|
+
<span class='ivar'>@owner</span>
|
1835
|
+
<span class='kw'>when</span> <span class='const'>String</span>
|
1836
|
+
<span class='ivar'>@owner</span> <span class='op'>=</span> <span class='const'>Flickr</span><span class='op'>::</span><span class='const'>User</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='ivar'>@owner</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='kw'>nil</span><span class='comma'>,</span> <span class='ivar'>@api_key</span><span class='rparen'>)</span>
|
1837
|
+
<span class='kw'>else</span>
|
1838
|
+
<span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>owner</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
1839
|
+
<span class='kw'>end</span>
|
1840
|
+
<span class='kw'>end</span></pre>
|
1841
|
+
</td>
|
1842
|
+
</tr>
|
1843
|
+
</table>
|
1844
|
+
</div>
|
1845
|
+
|
1846
|
+
<div class="method_details ">
|
1847
|
+
<h3 class="signature " id="permissions-instance_method">
|
1848
|
+
|
1849
|
+
- (<tt>Object</tt>) <strong>permissions</strong>
|
1850
|
+
|
1851
|
+
|
1852
|
+
|
1853
|
+
|
1854
|
+
|
1855
|
+
</h3><div class="docstring">
|
1856
|
+
<div class="discussion">
|
1857
|
+
|
1858
|
+
<p>Implements flickr.photos.getPerms</p>
|
1859
|
+
|
1860
|
+
|
1861
|
+
</div>
|
1862
|
+
</div>
|
1863
|
+
<div class="tags">
|
1864
|
+
|
1865
|
+
|
1866
|
+
</div><table class="source_code">
|
1867
|
+
<tr>
|
1868
|
+
<td>
|
1869
|
+
<pre class="lines">
|
1870
|
+
|
1871
|
+
|
1872
|
+
559
|
1873
|
+
560
|
1874
|
+
561</pre>
|
1875
|
+
</td>
|
1876
|
+
<td>
|
1877
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 559</span>
|
1878
|
+
|
1879
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_permissions'>permissions</span>
|
1880
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_getPerms'>photos_getPerms</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo_id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>perms</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
1881
|
+
<span class='kw'>end</span></pre>
|
1882
|
+
</td>
|
1883
|
+
</tr>
|
1884
|
+
</table>
|
1885
|
+
</div>
|
1886
|
+
|
1887
|
+
<div class="method_details ">
|
1888
|
+
<h3 class="signature " id="perms=-instance_method">
|
1889
|
+
|
1890
|
+
- (<tt>Object</tt>) <strong>perms=</strong>(perms)
|
1891
|
+
|
1892
|
+
|
1893
|
+
|
1894
|
+
|
1895
|
+
|
1896
|
+
</h3><div class="docstring">
|
1897
|
+
<div class="discussion">
|
1898
|
+
|
1899
|
+
<p>Implements flickr.photos.setPerms</p>
|
1900
|
+
|
1901
|
+
|
1902
|
+
</div>
|
1903
|
+
</div>
|
1904
|
+
<div class="tags">
|
1905
|
+
|
1906
|
+
|
1907
|
+
</div><table class="source_code">
|
1908
|
+
<tr>
|
1909
|
+
<td>
|
1910
|
+
<pre class="lines">
|
1911
|
+
|
1912
|
+
|
1913
|
+
585
|
1914
|
+
586</pre>
|
1915
|
+
</td>
|
1916
|
+
<td>
|
1917
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 585</span>
|
1918
|
+
|
1919
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_perms='>perms=</span><span class='lparen'>(</span><span class='id identifier rubyid_perms'>perms</span><span class='rparen'>)</span>
|
1920
|
+
<span class='kw'>end</span></pre>
|
1921
|
+
</td>
|
1922
|
+
</tr>
|
1923
|
+
</table>
|
1924
|
+
</div>
|
1925
|
+
|
1926
|
+
<div class="method_details ">
|
1927
|
+
<h3 class="signature " id="postToBlog-instance_method">
|
1928
|
+
|
1929
|
+
- (<tt>Object</tt>) <strong>postToBlog</strong>(blog_id, title = '', description = '')
|
1930
|
+
|
1931
|
+
|
1932
|
+
|
1933
|
+
|
1934
|
+
|
1935
|
+
</h3><div class="docstring">
|
1936
|
+
<div class="discussion">
|
1937
|
+
|
1938
|
+
<p>Implements flickr.blogs.postPhoto</p>
|
1939
|
+
|
1940
|
+
|
1941
|
+
</div>
|
1942
|
+
</div>
|
1943
|
+
<div class="tags">
|
1944
|
+
|
1945
|
+
|
1946
|
+
</div><table class="source_code">
|
1947
|
+
<tr>
|
1948
|
+
<td>
|
1949
|
+
<pre class="lines">
|
1950
|
+
|
1951
|
+
|
1952
|
+
611
|
1953
|
+
612
|
1954
|
+
613</pre>
|
1955
|
+
</td>
|
1956
|
+
<td>
|
1957
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 611</span>
|
1958
|
+
|
1959
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_postToBlog'>postToBlog</span><span class='lparen'>(</span><span class='id identifier rubyid_blog_id'>blog_id</span><span class='comma'>,</span> <span class='id identifier rubyid_title'>title</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_description'>description</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
1960
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_blogs_postPhoto'>blogs_postPhoto</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo_id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='ivar'>@id</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>title</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='id identifier rubyid_title'>title</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>description</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='id identifier rubyid_description'>description</span><span class='rparen'>)</span>
|
1961
|
+
<span class='kw'>end</span></pre>
|
1962
|
+
</td>
|
1963
|
+
</tr>
|
1964
|
+
</table>
|
1965
|
+
</div>
|
1966
|
+
|
1967
|
+
<div class="method_details ">
|
1968
|
+
<h3 class="signature " id="pretty_url-instance_method">
|
1969
|
+
|
1970
|
+
- (<tt>Object</tt>) <strong>pretty_url</strong>
|
1971
|
+
|
1972
|
+
|
1973
|
+
|
1974
|
+
|
1975
|
+
|
1976
|
+
</h3><div class="docstring">
|
1977
|
+
<div class="discussion">
|
1978
|
+
|
1979
|
+
<p>the 'pretty' url for a photo (if the user has set up a custom name)
|
1980
|
+
eg, <a
|
1981
|
+
href="http://flickr.com/photos/granth/2584402507">flickr.com/photos/granth/2584402507</a>/
|
1982
|
+
instead of</p>
|
1983
|
+
|
1984
|
+
<pre class="code ruby"><code class="ruby">http://flickr.com/photos/23386158@N00/2584402507/</code></pre>
|
1985
|
+
|
1986
|
+
|
1987
|
+
</div>
|
1988
|
+
</div>
|
1989
|
+
<div class="tags">
|
1990
|
+
|
1991
|
+
|
1992
|
+
</div><table class="source_code">
|
1993
|
+
<tr>
|
1994
|
+
<td>
|
1995
|
+
<pre class="lines">
|
1996
|
+
|
1997
|
+
|
1998
|
+
526
|
1999
|
+
527
|
2000
|
+
528</pre>
|
2001
|
+
</td>
|
2002
|
+
<td>
|
2003
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 526</span>
|
2004
|
+
|
2005
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_pretty_url'>pretty_url</span>
|
2006
|
+
<span class='ivar'>@url</span> <span class='op'>||</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>pretty_url</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
2007
|
+
<span class='kw'>end</span></pre>
|
2008
|
+
</td>
|
2009
|
+
</tr>
|
2010
|
+
</table>
|
2011
|
+
</div>
|
2012
|
+
|
2013
|
+
<div class="method_details ">
|
2014
|
+
<h3 class="signature " id="remove_tag-instance_method">
|
2015
|
+
|
2016
|
+
- (<tt>Object</tt>) <strong>remove_tag</strong>(tag)
|
2017
|
+
|
2018
|
+
|
2019
|
+
|
2020
|
+
|
2021
|
+
|
2022
|
+
</h3><div class="docstring">
|
2023
|
+
<div class="discussion">
|
2024
|
+
|
2025
|
+
<p>Implements flickr.photos.removeTag</p>
|
2026
|
+
|
2027
|
+
|
2028
|
+
</div>
|
2029
|
+
</div>
|
2030
|
+
<div class="tags">
|
2031
|
+
|
2032
|
+
|
2033
|
+
</div><table class="source_code">
|
2034
|
+
<tr>
|
2035
|
+
<td>
|
2036
|
+
<pre class="lines">
|
2037
|
+
|
2038
|
+
|
2039
|
+
603
|
2040
|
+
604</pre>
|
2041
|
+
</td>
|
2042
|
+
<td>
|
2043
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 603</span>
|
2044
|
+
|
2045
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_remove_tag'>remove_tag</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
|
2046
|
+
<span class='kw'>end</span></pre>
|
2047
|
+
</td>
|
2048
|
+
</tr>
|
2049
|
+
</table>
|
2050
|
+
</div>
|
2051
|
+
|
2052
|
+
<div class="method_details ">
|
2053
|
+
<h3 class="signature " id="rotate-instance_method">
|
2054
|
+
|
2055
|
+
- (<tt>Object</tt>) <strong>rotate</strong>
|
2056
|
+
|
2057
|
+
|
2058
|
+
|
2059
|
+
|
2060
|
+
|
2061
|
+
</h3><div class="docstring">
|
2062
|
+
<div class="discussion">
|
2063
|
+
|
2064
|
+
<p>Implements flickr.photos.transform.rotate</p>
|
2065
|
+
|
2066
|
+
|
2067
|
+
</div>
|
2068
|
+
</div>
|
2069
|
+
<div class="tags">
|
2070
|
+
|
2071
|
+
|
2072
|
+
</div><table class="source_code">
|
2073
|
+
<tr>
|
2074
|
+
<td>
|
2075
|
+
<pre class="lines">
|
2076
|
+
|
2077
|
+
|
2078
|
+
607
|
2079
|
+
608</pre>
|
2080
|
+
</td>
|
2081
|
+
<td>
|
2082
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 607</span>
|
2083
|
+
|
2084
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rotate'>rotate</span>
|
2085
|
+
<span class='kw'>end</span></pre>
|
2086
|
+
</td>
|
2087
|
+
</tr>
|
2088
|
+
</table>
|
2089
|
+
</div>
|
2090
|
+
|
2091
|
+
<div class="method_details ">
|
2092
|
+
<h3 class="signature " id="rotation-instance_method">
|
2093
|
+
|
2094
|
+
- (<tt>Object</tt>) <strong>rotation</strong>
|
2095
|
+
|
2096
|
+
|
2097
|
+
|
2098
|
+
|
2099
|
+
|
2100
|
+
</h3><table class="source_code">
|
2101
|
+
<tr>
|
2102
|
+
<td>
|
2103
|
+
<pre class="lines">
|
2104
|
+
|
2105
|
+
|
2106
|
+
484
|
2107
|
+
485
|
2108
|
+
486</pre>
|
2109
|
+
</td>
|
2110
|
+
<td>
|
2111
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 484</span>
|
2112
|
+
|
2113
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_rotation'>rotation</span>
|
2114
|
+
<span class='ivar'>@rotation</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>rotation</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@rotation</span>
|
2115
|
+
<span class='kw'>end</span></pre>
|
2116
|
+
</td>
|
2117
|
+
</tr>
|
2118
|
+
</table>
|
2119
|
+
</div>
|
2120
|
+
|
2121
|
+
<div class="method_details ">
|
2122
|
+
<h3 class="signature " id="server-instance_method">
|
2123
|
+
|
2124
|
+
- (<tt>Object</tt>) <strong>server</strong>
|
2125
|
+
|
2126
|
+
|
2127
|
+
|
2128
|
+
|
2129
|
+
|
2130
|
+
</h3><table class="source_code">
|
2131
|
+
<tr>
|
2132
|
+
<td>
|
2133
|
+
<pre class="lines">
|
2134
|
+
|
2135
|
+
|
2136
|
+
472
|
2137
|
+
473
|
2138
|
+
474</pre>
|
2139
|
+
</td>
|
2140
|
+
<td>
|
2141
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 472</span>
|
2142
|
+
|
2143
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_server'>server</span>
|
2144
|
+
<span class='ivar'>@server</span><span class='period'>.</span><span class='id identifier rubyid_nil?'>nil?</span> <span class='op'>?</span> <span class='id identifier rubyid_getInfo'>getInfo</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>server</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span> <span class='op'>:</span> <span class='ivar'>@server</span>
|
2145
|
+
<span class='kw'>end</span></pre>
|
2146
|
+
</td>
|
2147
|
+
</tr>
|
2148
|
+
</table>
|
2149
|
+
</div>
|
2150
|
+
|
2151
|
+
<div class="method_details ">
|
2152
|
+
<h3 class="signature " id="size_url-instance_method">
|
2153
|
+
|
2154
|
+
- (<tt>Object</tt>) <strong>size_url</strong>(size = 'Medium')
|
2155
|
+
|
2156
|
+
|
2157
|
+
|
2158
|
+
|
2159
|
+
|
2160
|
+
</h3><div class="docstring">
|
2161
|
+
<div class="discussion">
|
2162
|
+
|
2163
|
+
<p>Returns the URL for the photo size page defaults to 'Medium' other
|
2164
|
+
valid sizes are in the VALID_SIZES hash</p>
|
2165
|
+
|
2166
|
+
|
2167
|
+
</div>
|
2168
|
+
</div>
|
2169
|
+
<div class="tags">
|
2170
|
+
|
2171
|
+
|
2172
|
+
</div><table class="source_code">
|
2173
|
+
<tr>
|
2174
|
+
<td>
|
2175
|
+
<pre class="lines">
|
2176
|
+
|
2177
|
+
|
2178
|
+
499
|
2179
|
+
500
|
2180
|
+
501</pre>
|
2181
|
+
</td>
|
2182
|
+
<td>
|
2183
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 499</span>
|
2184
|
+
|
2185
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_size_url'>size_url</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Medium</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
2186
|
+
<span class='id identifier rubyid_uri_for_photo_from_self'>uri_for_photo_from_self</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_sizes'>sizes</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>url</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
2187
|
+
<span class='kw'>end</span></pre>
|
2188
|
+
</td>
|
2189
|
+
</tr>
|
2190
|
+
</table>
|
2191
|
+
</div>
|
2192
|
+
|
2193
|
+
<div class="method_details ">
|
2194
|
+
<h3 class="signature " id="sizes-instance_method">
|
2195
|
+
|
2196
|
+
- (<tt>Object</tt>) <strong>sizes</strong>(size = nil)
|
2197
|
+
|
2198
|
+
|
2199
|
+
|
2200
|
+
|
2201
|
+
|
2202
|
+
</h3><div class="docstring">
|
2203
|
+
<div class="discussion">
|
2204
|
+
|
2205
|
+
<p>Implements flickr.photos.getSizes</p>
|
2206
|
+
|
2207
|
+
|
2208
|
+
</div>
|
2209
|
+
</div>
|
2210
|
+
<div class="tags">
|
2211
|
+
|
2212
|
+
|
2213
|
+
</div><table class="source_code">
|
2214
|
+
<tr>
|
2215
|
+
<td>
|
2216
|
+
<pre class="lines">
|
2217
|
+
|
2218
|
+
|
2219
|
+
564
|
2220
|
+
565
|
2221
|
+
566
|
2222
|
+
567
|
2223
|
+
568
|
2224
|
+
569</pre>
|
2225
|
+
</td>
|
2226
|
+
<td>
|
2227
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 564</span>
|
2228
|
+
|
2229
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_sizes'>sizes</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='op'>=</span><span class='kw'>nil</span><span class='rparen'>)</span>
|
2230
|
+
<span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='id identifier rubyid_normalize_size'>normalize_size</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span>
|
2231
|
+
<span class='id identifier rubyid_sizes'>sizes</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_getSizes'>photos_getSizes</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo_id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>sizes</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>size</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
2232
|
+
<span class='id identifier rubyid_sizes'>sizes</span> <span class='op'>=</span> <span class='id identifier rubyid_sizes'>sizes</span><span class='period'>.</span><span class='id identifier rubyid_find'>find</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_asize'>asize</span><span class='op'>|</span> <span class='id identifier rubyid_asize'>asize</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>label</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='op'>==</span><span class='id identifier rubyid_size'>size</span><span class='rbrace'>}</span> <span class='kw'>if</span> <span class='id identifier rubyid_size'>size</span>
|
2233
|
+
<span class='kw'>return</span> <span class='id identifier rubyid_sizes'>sizes</span>
|
2234
|
+
<span class='kw'>end</span></pre>
|
2235
|
+
</td>
|
2236
|
+
</tr>
|
2237
|
+
</table>
|
2238
|
+
</div>
|
2239
|
+
|
2240
|
+
<div class="method_details ">
|
2241
|
+
<h3 class="signature " id="source-instance_method">
|
2242
|
+
|
2243
|
+
- (<tt>Object</tt>) <strong>source</strong>(size = 'Medium')
|
2244
|
+
|
2245
|
+
|
2246
|
+
|
2247
|
+
|
2248
|
+
|
2249
|
+
</h3><div class="docstring">
|
2250
|
+
<div class="discussion">
|
2251
|
+
|
2252
|
+
<p>Returns the URL for the image (default or any specified size)</p>
|
2253
|
+
|
2254
|
+
|
2255
|
+
</div>
|
2256
|
+
</div>
|
2257
|
+
<div class="tags">
|
2258
|
+
|
2259
|
+
|
2260
|
+
</div><table class="source_code">
|
2261
|
+
<tr>
|
2262
|
+
<td>
|
2263
|
+
<pre class="lines">
|
2264
|
+
|
2265
|
+
|
2266
|
+
531
|
2267
|
+
532
|
2268
|
+
533</pre>
|
2269
|
+
</td>
|
2270
|
+
<td>
|
2271
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 531</span>
|
2272
|
+
|
2273
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_source'>source</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='op'>=</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Medium</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
2274
|
+
<span class='id identifier rubyid_image_source_uri_from_self'>image_source_uri_from_self</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span> <span class='op'>||</span> <span class='id identifier rubyid_sizes'>sizes</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>source</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
2275
|
+
<span class='kw'>end</span></pre>
|
2276
|
+
</td>
|
2277
|
+
</tr>
|
2278
|
+
</table>
|
2279
|
+
</div>
|
2280
|
+
|
2281
|
+
<div class="method_details ">
|
2282
|
+
<h3 class="signature " id="tags-instance_method">
|
2283
|
+
|
2284
|
+
- (<tt>Object</tt>) <strong>tags</strong>
|
2285
|
+
|
2286
|
+
|
2287
|
+
|
2288
|
+
|
2289
|
+
|
2290
|
+
</h3><div class="docstring">
|
2291
|
+
<div class="discussion">
|
2292
|
+
|
2293
|
+
<p>flickr.tags.getListPhoto</p>
|
2294
|
+
|
2295
|
+
|
2296
|
+
</div>
|
2297
|
+
</div>
|
2298
|
+
<div class="tags">
|
2299
|
+
|
2300
|
+
|
2301
|
+
</div><table class="source_code">
|
2302
|
+
<tr>
|
2303
|
+
<td>
|
2304
|
+
<pre class="lines">
|
2305
|
+
|
2306
|
+
|
2307
|
+
572
|
2308
|
+
573
|
2309
|
+
574</pre>
|
2310
|
+
</td>
|
2311
|
+
<td>
|
2312
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 572</span>
|
2313
|
+
|
2314
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_tags'>tags</span>
|
2315
|
+
<span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_tags_getListPhoto'>tags_getListPhoto</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo_id</span><span class='tstring_end'>'</span></span><span class='op'>=></span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>photo</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>tags</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span>
|
2316
|
+
<span class='kw'>end</span></pre>
|
2317
|
+
</td>
|
2318
|
+
</tr>
|
2319
|
+
</table>
|
2320
|
+
</div>
|
2321
|
+
|
2322
|
+
<div class="method_details ">
|
2323
|
+
<h3 class="signature " id="tags=-instance_method">
|
2324
|
+
|
2325
|
+
- (<tt>Object</tt>) <strong>tags=</strong>(tags)
|
2326
|
+
|
2327
|
+
|
2328
|
+
|
2329
|
+
|
2330
|
+
|
2331
|
+
</h3><div class="docstring">
|
2332
|
+
<div class="discussion">
|
2333
|
+
|
2334
|
+
<p>Implements flickr.photos.setTags</p>
|
2335
|
+
|
2336
|
+
|
2337
|
+
</div>
|
2338
|
+
</div>
|
2339
|
+
<div class="tags">
|
2340
|
+
|
2341
|
+
|
2342
|
+
</div><table class="source_code">
|
2343
|
+
<tr>
|
2344
|
+
<td>
|
2345
|
+
<pre class="lines">
|
2346
|
+
|
2347
|
+
|
2348
|
+
589
|
2349
|
+
590</pre>
|
2350
|
+
</td>
|
2351
|
+
<td>
|
2352
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 589</span>
|
2353
|
+
|
2354
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_tags='>tags=</span><span class='lparen'>(</span><span class='id identifier rubyid_tags'>tags</span><span class='rparen'>)</span>
|
2355
|
+
<span class='kw'>end</span></pre>
|
2356
|
+
</td>
|
2357
|
+
</tr>
|
2358
|
+
</table>
|
2359
|
+
</div>
|
2360
|
+
|
2361
|
+
<div class="method_details ">
|
2362
|
+
<h3 class="signature " id="to_s-instance_method">
|
2363
|
+
|
2364
|
+
- (<tt>Object</tt>) <strong>to_s</strong>
|
2365
|
+
|
2366
|
+
|
2367
|
+
|
2368
|
+
|
2369
|
+
|
2370
|
+
</h3><div class="docstring">
|
2371
|
+
<div class="discussion">
|
2372
|
+
|
2373
|
+
<p>Converts the Photo to a string by returning its title</p>
|
2374
|
+
|
2375
|
+
|
2376
|
+
</div>
|
2377
|
+
</div>
|
2378
|
+
<div class="tags">
|
2379
|
+
|
2380
|
+
|
2381
|
+
</div><table class="source_code">
|
2382
|
+
<tr>
|
2383
|
+
<td>
|
2384
|
+
<pre class="lines">
|
2385
|
+
|
2386
|
+
|
2387
|
+
624
|
2388
|
+
625
|
2389
|
+
626</pre>
|
2390
|
+
</td>
|
2391
|
+
<td>
|
2392
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 624</span>
|
2393
|
+
|
2394
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
|
2395
|
+
<span class='id identifier rubyid_title'>title</span>
|
2396
|
+
<span class='kw'>end</span></pre>
|
2397
|
+
</td>
|
2398
|
+
</tr>
|
2399
|
+
</table>
|
2400
|
+
</div>
|
2401
|
+
|
2402
|
+
<div class="method_details ">
|
2403
|
+
<h3 class="signature " id="url-instance_method">
|
2404
|
+
|
2405
|
+
- (<tt>Object</tt>) <strong>url</strong>(size = nil)
|
2406
|
+
|
2407
|
+
|
2408
|
+
|
2409
|
+
|
2410
|
+
|
2411
|
+
</h3><div class="docstring">
|
2412
|
+
<div class="discussion">
|
2413
|
+
|
2414
|
+
<p>the URL for the main photo page if getInfo has already been called, this
|
2415
|
+
will return the pretty url</p>
|
2416
|
+
|
2417
|
+
<p>for historical reasons, an optional size can be given 'Medium'
|
2418
|
+
returns the regular url; any other size returns a size page use size_url
|
2419
|
+
instead</p>
|
2420
|
+
|
2421
|
+
|
2422
|
+
</div>
|
2423
|
+
</div>
|
2424
|
+
<div class="tags">
|
2425
|
+
|
2426
|
+
|
2427
|
+
</div><table class="source_code">
|
2428
|
+
<tr>
|
2429
|
+
<td>
|
2430
|
+
<pre class="lines">
|
2431
|
+
|
2432
|
+
|
2433
|
+
514
|
2434
|
+
515
|
2435
|
+
516
|
2436
|
+
517
|
2437
|
+
518
|
2438
|
+
519
|
2439
|
+
520</pre>
|
2440
|
+
</td>
|
2441
|
+
<td>
|
2442
|
+
<pre class="code"><span class="info file"># File 'lib/flickr.rb', line 514</span>
|
2443
|
+
|
2444
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
2445
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_normalize_size'>normalize_size</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span> <span class='op'>!=</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>Medium</span><span class='tstring_end'>'</span></span>
|
2446
|
+
<span class='id identifier rubyid_size_url'>size_url</span><span class='lparen'>(</span><span class='id identifier rubyid_size'>size</span><span class='rparen'>)</span>
|
2447
|
+
<span class='kw'>else</span>
|
2448
|
+
<span class='ivar'>@url</span> <span class='op'>||</span> <span class='id identifier rubyid_uri_for_photo_from_self'>uri_for_photo_from_self</span>
|
2449
|
+
<span class='kw'>end</span>
|
2450
|
+
<span class='kw'>end</span></pre>
|
2451
|
+
</td>
|
2452
|
+
</tr>
|
2453
|
+
</table>
|
2454
|
+
</div>
|
2455
|
+
|
2456
|
+
</div>
|
2457
|
+
|
2458
|
+
</div>
|
2459
|
+
|
2460
|
+
<div id="footer">
|
2461
|
+
Generated on Tue May 13 13:49:26 2014 by
|
2462
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
2463
|
+
0.8.7.4 (ruby-2.0.0).
|
2464
|
+
</div>
|
2465
|
+
|
2466
|
+
</body>
|
2467
|
+
</html>
|