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.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/Changelog.txt +7 -4
  3. data/Gemfile.lock +3 -3
  4. data/README.md +5 -1
  5. data/Rakefile +6 -7
  6. data/doc/Flickr.html +1813 -0
  7. data/doc/Flickr/Config.html +468 -0
  8. data/doc/Flickr/Group.html +974 -0
  9. data/doc/Flickr/Photo.html +2467 -0
  10. data/doc/Flickr/PhotoCollection.html +529 -0
  11. data/doc/Flickr/Photoset.html +942 -0
  12. data/doc/Flickr/User.html +1672 -0
  13. data/doc/_index.html +190 -0
  14. data/doc/class_list.html +54 -0
  15. data/doc/css/common.css +1 -0
  16. data/doc/css/full_list.css +57 -0
  17. data/doc/css/style.css +339 -0
  18. data/doc/file.Changelog.html +73 -0
  19. data/doc/file.LICENSE.html +94 -0
  20. data/{rdoc/README_md.html → doc/file.README.html} +85 -121
  21. data/doc/file_list.html +62 -0
  22. data/doc/frames.html +26 -0
  23. data/doc/index.html +216 -0
  24. data/doc/js/app.js +219 -0
  25. data/doc/js/full_list.js +178 -0
  26. data/doc/js/jquery.js +4 -0
  27. data/doc/method_list.html +725 -0
  28. data/doc/top-level-namespace.html +112 -0
  29. data/flickr.gemspec +3 -3
  30. data/lib/flickr.rb +1 -1
  31. metadata +27 -46
  32. data/rdoc/Flickr.html +0 -1044
  33. data/rdoc/Flickr/Config.html +0 -300
  34. data/rdoc/Flickr/Group.html +0 -373
  35. data/rdoc/Flickr/Photo.html +0 -1427
  36. data/rdoc/Flickr/PhotoCollection.html +0 -261
  37. data/rdoc/Flickr/Photoset.html +0 -389
  38. data/rdoc/Flickr/User.html +0 -775
  39. data/rdoc/created.rid +0 -3
  40. data/rdoc/images/add.png +0 -0
  41. data/rdoc/images/arrow_up.png +0 -0
  42. data/rdoc/images/brick.png +0 -0
  43. data/rdoc/images/brick_link.png +0 -0
  44. data/rdoc/images/bug.png +0 -0
  45. data/rdoc/images/bullet_black.png +0 -0
  46. data/rdoc/images/bullet_toggle_minus.png +0 -0
  47. data/rdoc/images/bullet_toggle_plus.png +0 -0
  48. data/rdoc/images/date.png +0 -0
  49. data/rdoc/images/delete.png +0 -0
  50. data/rdoc/images/find.png +0 -0
  51. data/rdoc/images/loadingAnimation.gif +0 -0
  52. data/rdoc/images/macFFBgHack.png +0 -0
  53. data/rdoc/images/package.png +0 -0
  54. data/rdoc/images/page_green.png +0 -0
  55. data/rdoc/images/page_white_text.png +0 -0
  56. data/rdoc/images/page_white_width.png +0 -0
  57. data/rdoc/images/plugin.png +0 -0
  58. data/rdoc/images/ruby.png +0 -0
  59. data/rdoc/images/tag_blue.png +0 -0
  60. data/rdoc/images/tag_green.png +0 -0
  61. data/rdoc/images/transparent.png +0 -0
  62. data/rdoc/images/wrench.png +0 -0
  63. data/rdoc/images/wrench_orange.png +0 -0
  64. data/rdoc/images/zoom.png +0 -0
  65. data/rdoc/index.html +0 -92
  66. data/rdoc/js/darkfish.js +0 -155
  67. data/rdoc/js/jquery.js +0 -18
  68. data/rdoc/js/navigation.js +0 -142
  69. data/rdoc/js/search.js +0 -94
  70. data/rdoc/js/search_index.js +0 -1
  71. data/rdoc/js/searcher.js +0 -228
  72. data/rdoc/rdoc.css +0 -595
  73. data/rdoc/table_of_contents.html +0 -241
@@ -0,0 +1,1672 @@
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::User
8
+
9
+ &mdash; 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/User.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 (U)</a> &raquo;
35
+ <span class='title'><span class='object_link'><a href="../Flickr.html" title="Flickr (class)">Flickr</a></span></span>
36
+ &raquo;
37
+ <span class="title">User</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::User
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::User</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
+ <h2>Overview</h2><div class="docstring">
103
+ <div class="discussion">
104
+
105
+ <p>Todo: logged_in? if logged in: flickr.blogs.getList flickr.favorites.add
106
+ flickr.favorites.remove flickr.groups.browse flickr.photos.getCounts
107
+ flickr.photos.getNotInSet flickr.photos.getUntagged flickr.photosets.create
108
+ flickr.photosets.orderSets flickr.test.login uploading</p>
109
+
110
+
111
+ </div>
112
+ </div>
113
+ <div class="tags">
114
+
115
+
116
+ </div>
117
+
118
+
119
+
120
+ <h2>Instance Attribute Summary <small>(<a href="#" class="summary_toggle">collapse</a>)</small></h2>
121
+ <ul class="summary">
122
+
123
+ <li class="public ">
124
+ <span class="summary_signature">
125
+
126
+ <a href="#client-instance_method" title="#client (instance method)">- (Object) <strong>client</strong> </a>
127
+
128
+
129
+
130
+ </span>
131
+
132
+
133
+
134
+
135
+ <span class="note title readonly">readonly</span>
136
+
137
+
138
+
139
+
140
+
141
+
142
+
143
+
144
+
145
+ <span class="summary_desc"><div class='inline'>
146
+ <p>Returns the value of attribute client.</p>
147
+ </div></span>
148
+
149
+ </li>
150
+
151
+
152
+ <li class="public ">
153
+ <span class="summary_signature">
154
+
155
+ <a href="#count-instance_method" title="#count (instance method)">- (Object) <strong>count</strong> </a>
156
+
157
+
158
+
159
+ </span>
160
+
161
+
162
+
163
+
164
+ <span class="note title readonly">readonly</span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+
174
+ <span class="summary_desc"><div class='inline'>
175
+ <p>Returns the value of attribute count.</p>
176
+ </div></span>
177
+
178
+ </li>
179
+
180
+
181
+ <li class="public ">
182
+ <span class="summary_signature">
183
+
184
+ <a href="#firstdate-instance_method" title="#firstdate (instance method)">- (Object) <strong>firstdate</strong> </a>
185
+
186
+
187
+
188
+ </span>
189
+
190
+
191
+
192
+
193
+ <span class="note title readonly">readonly</span>
194
+
195
+
196
+
197
+
198
+
199
+
200
+
201
+
202
+
203
+ <span class="summary_desc"><div class='inline'>
204
+ <p>Returns the value of attribute firstdate.</p>
205
+ </div></span>
206
+
207
+ </li>
208
+
209
+
210
+ <li class="public ">
211
+ <span class="summary_signature">
212
+
213
+ <a href="#firstdatetaken-instance_method" title="#firstdatetaken (instance method)">- (Object) <strong>firstdatetaken</strong> </a>
214
+
215
+
216
+
217
+ </span>
218
+
219
+
220
+
221
+
222
+ <span class="note title readonly">readonly</span>
223
+
224
+
225
+
226
+
227
+
228
+
229
+
230
+
231
+
232
+ <span class="summary_desc"><div class='inline'>
233
+ <p>Returns the value of attribute firstdatetaken.</p>
234
+ </div></span>
235
+
236
+ </li>
237
+
238
+
239
+ <li class="public ">
240
+ <span class="summary_signature">
241
+
242
+ <a href="#id-instance_method" title="#id (instance method)">- (Object) <strong>id</strong> </a>
243
+
244
+
245
+
246
+ </span>
247
+
248
+
249
+
250
+
251
+ <span class="note title readonly">readonly</span>
252
+
253
+
254
+
255
+
256
+
257
+
258
+
259
+
260
+
261
+ <span class="summary_desc"><div class='inline'>
262
+ <p>Returns the value of attribute id.</p>
263
+ </div></span>
264
+
265
+ </li>
266
+
267
+
268
+ <li class="public ">
269
+ <span class="summary_signature">
270
+
271
+ <a href="#location-instance_method" title="#location (instance method)">- (Object) <strong>location</strong> </a>
272
+
273
+
274
+
275
+ </span>
276
+
277
+
278
+
279
+
280
+ <span class="note title readonly">readonly</span>
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+
289
+
290
+ <span class="summary_desc"><div class='inline'>
291
+ <p>Returns the value of attribute location.</p>
292
+ </div></span>
293
+
294
+ </li>
295
+
296
+
297
+ <li class="public ">
298
+ <span class="summary_signature">
299
+
300
+ <a href="#name-instance_method" title="#name (instance method)">- (Object) <strong>name</strong> </a>
301
+
302
+
303
+
304
+ </span>
305
+
306
+
307
+
308
+
309
+ <span class="note title readonly">readonly</span>
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+ <span class="summary_desc"><div class='inline'>
320
+ <p>Returns the value of attribute name.</p>
321
+ </div></span>
322
+
323
+ </li>
324
+
325
+
326
+ <li class="public ">
327
+ <span class="summary_signature">
328
+
329
+ <a href="#photos_url-instance_method" title="#photos_url (instance method)">- (Object) <strong>photos_url</strong> </a>
330
+
331
+
332
+
333
+ </span>
334
+
335
+
336
+
337
+
338
+ <span class="note title readonly">readonly</span>
339
+
340
+
341
+
342
+
343
+
344
+
345
+
346
+
347
+
348
+ <span class="summary_desc"><div class='inline'>
349
+ <p>Builds url for user&#39;s photos page as per <a
350
+ href="http://www.flickr.com/services/api/misc.urls.html">www.flickr.com/services/api/misc.urls.html</a>.</p>
351
+ </div></span>
352
+
353
+ </li>
354
+
355
+
356
+ <li class="public ">
357
+ <span class="summary_signature">
358
+
359
+ <a href="#url-instance_method" title="#url (instance method)">- (Object) <strong>url</strong> </a>
360
+
361
+
362
+
363
+ </span>
364
+
365
+
366
+
367
+
368
+ <span class="note title readonly">readonly</span>
369
+
370
+
371
+
372
+
373
+
374
+
375
+
376
+
377
+
378
+ <span class="summary_desc"><div class='inline'>
379
+ <p>Builds url for user&#39;s profile page as per <a
380
+ href="http://www.flickr.com/services/api/misc.urls.html">www.flickr.com/services/api/misc.urls.html</a>.</p>
381
+ </div></span>
382
+
383
+ </li>
384
+
385
+
386
+ </ul>
387
+
388
+
389
+
390
+
391
+
392
+ <h2>
393
+ Instance Method Summary
394
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
395
+ </h2>
396
+
397
+ <ul class="summary">
398
+
399
+ <li class="public ">
400
+ <span class="summary_signature">
401
+
402
+ <a href="#contacts-instance_method" title="#contacts (instance method)">- (Object) <strong>contacts</strong> </a>
403
+
404
+
405
+
406
+ </span>
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+ <span class="summary_desc"><div class='inline'>
417
+ <p>Implements flickr.contacts.getPublicList and flickr.contacts.getList.</p>
418
+ </div></span>
419
+
420
+ </li>
421
+
422
+
423
+ <li class="public ">
424
+ <span class="summary_signature">
425
+
426
+ <a href="#contactsPhotos-instance_method" title="#contactsPhotos (instance method)">- (Object) <strong>contactsPhotos</strong> </a>
427
+
428
+
429
+
430
+ </span>
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+ <span class="summary_desc"><div class='inline'>
441
+ <p>Implements flickr.photos.getContactsPublicPhotos and
442
+ flickr.photos.getContactsPhotos.</p>
443
+ </div></span>
444
+
445
+ </li>
446
+
447
+
448
+ <li class="public ">
449
+ <span class="summary_signature">
450
+
451
+ <a href="#favorites-instance_method" title="#favorites (instance method)">- (Object) <strong>favorites</strong> </a>
452
+
453
+
454
+
455
+ </span>
456
+
457
+
458
+
459
+
460
+
461
+
462
+
463
+
464
+
465
+ <span class="summary_desc"><div class='inline'>
466
+ <p>Implements flickr.favorites.getPublicList.</p>
467
+ </div></span>
468
+
469
+ </li>
470
+
471
+
472
+ <li class="public ">
473
+ <span class="summary_signature">
474
+
475
+ <a href="#groups-instance_method" title="#groups (instance method)">- (Object) <strong>groups</strong> </a>
476
+
477
+
478
+
479
+ </span>
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+ <span class="summary_desc"><div class='inline'>
490
+ <p>Implements flickr.people.getPublicGroups.</p>
491
+ </div></span>
492
+
493
+ </li>
494
+
495
+
496
+ <li class="public ">
497
+ <span class="summary_signature">
498
+
499
+ <a href="#initialize-instance_method" title="#initialize (instance method)">- (User) <strong>initialize</strong>(id_or_params_hash = nil, username = nil, email = nil, password = nil, api_key = {}) </a>
500
+
501
+
502
+
503
+ </span>
504
+
505
+
506
+ <span class="note title constructor">constructor</span>
507
+
508
+
509
+
510
+
511
+
512
+
513
+
514
+
515
+ <span class="summary_desc"><div class='inline'>
516
+ <p>A Flickr::User can be instantiated in two ways.</p>
517
+ </div></span>
518
+
519
+ </li>
520
+
521
+
522
+ <li class="public ">
523
+ <span class="summary_signature">
524
+
525
+ <a href="#photos-instance_method" title="#photos (instance method)">- (Object) <strong>photos</strong>(options = {}) </a>
526
+
527
+
528
+
529
+ </span>
530
+
531
+
532
+
533
+
534
+
535
+
536
+
537
+
538
+
539
+ <span class="summary_desc"><div class='inline'>
540
+ <p>Implements flickr.people.getPublicPhotos.</p>
541
+ </div></span>
542
+
543
+ </li>
544
+
545
+
546
+ <li class="public ">
547
+ <span class="summary_signature">
548
+
549
+ <a href="#photosets-instance_method" title="#photosets (instance method)">- (Object) <strong>photosets</strong> </a>
550
+
551
+
552
+
553
+ </span>
554
+
555
+
556
+
557
+
558
+
559
+
560
+
561
+
562
+
563
+ <span class="summary_desc"><div class='inline'>
564
+ <p>Implements flickr.photosets.getList.</p>
565
+ </div></span>
566
+
567
+ </li>
568
+
569
+
570
+ <li class="public ">
571
+ <span class="summary_signature">
572
+
573
+ <a href="#popular_tags-instance_method" title="#popular_tags (instance method)">- (Object) <strong>popular_tags</strong>(count = 10) </a>
574
+
575
+
576
+
577
+ </span>
578
+
579
+
580
+
581
+
582
+
583
+
584
+
585
+
586
+
587
+ <span class="summary_desc"><div class='inline'>
588
+ <p>Implements flickr.tags.getListUserPopular.</p>
589
+ </div></span>
590
+
591
+ </li>
592
+
593
+
594
+ <li class="public ">
595
+ <span class="summary_signature">
596
+
597
+ <a href="#pretty_url-instance_method" title="#pretty_url (instance method)">- (Object) <strong>pretty_url</strong> </a>
598
+
599
+
600
+
601
+ </span>
602
+
603
+
604
+
605
+
606
+
607
+
608
+
609
+
610
+
611
+ <span class="summary_desc"><div class='inline'></div></span>
612
+
613
+ </li>
614
+
615
+
616
+ <li class="public ">
617
+ <span class="summary_signature">
618
+
619
+ <a href="#tag-instance_method" title="#tag (instance method)">- (Object) <strong>tag</strong>(tag) </a>
620
+
621
+
622
+
623
+ </span>
624
+
625
+
626
+
627
+
628
+
629
+
630
+
631
+
632
+
633
+ <span class="summary_desc"><div class='inline'>
634
+ <p>Gets photos with a given tag.</p>
635
+ </div></span>
636
+
637
+ </li>
638
+
639
+
640
+ <li class="public ">
641
+ <span class="summary_signature">
642
+
643
+ <a href="#tags-instance_method" title="#tags (instance method)">- (Object) <strong>tags</strong> </a>
644
+
645
+
646
+
647
+ </span>
648
+
649
+
650
+
651
+
652
+
653
+
654
+
655
+
656
+
657
+ <span class="summary_desc"><div class='inline'>
658
+ <p>Implements flickr.tags.getListUser.</p>
659
+ </div></span>
660
+
661
+ </li>
662
+
663
+
664
+ <li class="public ">
665
+ <span class="summary_signature">
666
+
667
+ <a href="#to_s-instance_method" title="#to_s (instance method)">- (Object) <strong>to_s</strong> </a>
668
+
669
+
670
+
671
+ </span>
672
+
673
+
674
+
675
+
676
+
677
+
678
+
679
+
680
+
681
+ <span class="summary_desc"><div class='inline'></div></span>
682
+
683
+ </li>
684
+
685
+
686
+ <li class="public ">
687
+ <span class="summary_signature">
688
+
689
+ <a href="#username-instance_method" title="#username (instance method)">- (Object) <strong>username</strong> </a>
690
+
691
+
692
+
693
+ </span>
694
+
695
+
696
+
697
+
698
+
699
+
700
+
701
+
702
+
703
+ <span class="summary_desc"><div class='inline'></div></span>
704
+
705
+ </li>
706
+
707
+
708
+ </ul>
709
+
710
+
711
+ <div id="constructor_details" class="method_details_list">
712
+ <h2>Constructor Details</h2>
713
+
714
+ <div class="method_details first">
715
+ <h3 class="signature first" id="initialize-instance_method">
716
+
717
+ - (<tt><span class='object_link'><a href="" title="Flickr::User (class)">User</a></span></tt>) <strong>initialize</strong>(id_or_params_hash = nil, username = nil, email = nil, password = nil, api_key = {})
718
+
719
+
720
+
721
+
722
+
723
+ </h3><div class="docstring">
724
+ <div class="discussion">
725
+
726
+ <p>A Flickr::User can be instantiated in two ways. The old (deprecated) method
727
+ is with an ordered series of values. The new method is with a params Hash,
728
+ which is easier when a variable number of params are supplied, which is the
729
+ case here, and also avoids having to constantly supply nil values for the
730
+ email and password, which are now irrelevant as authentication is no longer
731
+ done this way. An associated flickr client will also be generated if an api
732
+ key is passed among the arguments or in the params hash. Alternatively, and
733
+ most likely, an existing client object may be passed in the params hash
734
+ (e.g. &#39;client&#39; =&gt; some_existing_flickr_client_object), and this
735
+ is what happends when users are initlialized as the result of a method
736
+ called on the flickr client (e.g. flickr.users)</p>
737
+
738
+
739
+ </div>
740
+ </div>
741
+ <div class="tags">
742
+
743
+
744
+ </div><table class="source_code">
745
+ <tr>
746
+ <td>
747
+ <pre class="lines">
748
+
749
+
750
+ 310
751
+ 311
752
+ 312
753
+ 313
754
+ 314
755
+ 315
756
+ 316
757
+ 317
758
+ 318
759
+ 319
760
+ 320
761
+ 321</pre>
762
+ </td>
763
+ <td>
764
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 310</span>
765
+
766
+ <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_id_or_params_hash'>id_or_params_hash</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_username'>username</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_email'>email</span><span class='op'>=</span><span class='kw'>nil</span><span class='comma'>,</span> <span class='id identifier rubyid_password'>password</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='rparen'>)</span>
767
+ <span class='kw'>if</span> <span class='id identifier rubyid_id_or_params_hash'>id_or_params_hash</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span><span class='lparen'>(</span><span class='const'>Hash</span><span class='rparen'>)</span>
768
+ <span class='id identifier rubyid_id_or_params_hash'>id_or_params_hash</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'>&quot;</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'>&quot;</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
769
+ </span> <span class='kw'>else</span>
770
+ <span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_id_or_params_hash'>id_or_params_hash</span>
771
+ <span class='ivar'>@username</span> <span class='op'>=</span> <span class='id identifier rubyid_username'>username</span>
772
+ <span class='ivar'>@email</span> <span class='op'>=</span> <span class='id identifier rubyid_email'>email</span>
773
+ <span class='ivar'>@password</span> <span class='op'>=</span> <span class='id identifier rubyid_password'>password</span>
774
+ <span class='ivar'>@api_key</span> <span class='op'>=</span> <span class='id identifier rubyid_api_key'>api_key</span>
775
+ <span class='kw'>end</span>
776
+ <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='lparen'>(</span><span class='symbol'>:api_key</span> <span class='op'>=&gt;</span> <span class='ivar'>@api_key</span><span class='comma'>,</span> <span class='symbol'>:shared_secret</span> <span class='op'>=&gt;</span> <span class='ivar'>@shared_secret</span><span class='comma'>,</span> <span class='symbol'>:auth_token</span> <span class='op'>=&gt;</span> <span class='ivar'>@auth_token</span><span class='rparen'>)</span> <span class='kw'>if</span> <span class='ivar'>@api_key</span>
777
+ <span class='kw'>end</span></pre>
778
+ </td>
779
+ </tr>
780
+ </table>
781
+ </div>
782
+
783
+ </div>
784
+
785
+ <div id="instance_attr_details" class="attr_details">
786
+ <h2>Instance Attribute Details</h2>
787
+
788
+
789
+ <span id=""></span>
790
+ <div class="method_details first">
791
+ <h3 class="signature first" id="client-instance_method">
792
+
793
+ - (<tt>Object</tt>) <strong>client</strong> <span class="extras">(readonly)</span>
794
+
795
+
796
+
797
+
798
+
799
+ </h3><div class="docstring">
800
+ <div class="discussion">
801
+
802
+ <p>Returns the value of attribute client</p>
803
+
804
+
805
+ </div>
806
+ </div>
807
+ <div class="tags">
808
+
809
+
810
+ </div><table class="source_code">
811
+ <tr>
812
+ <td>
813
+ <pre class="lines">
814
+
815
+
816
+ 296
817
+ 297
818
+ 298</pre>
819
+ </td>
820
+ <td>
821
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
822
+
823
+ <span class='kw'>def</span> <span class='id identifier rubyid_client'>client</span>
824
+ <span class='ivar'>@client</span>
825
+ <span class='kw'>end</span></pre>
826
+ </td>
827
+ </tr>
828
+ </table>
829
+ </div>
830
+
831
+
832
+ <span id=""></span>
833
+ <div class="method_details ">
834
+ <h3 class="signature " id="count-instance_method">
835
+
836
+ - (<tt>Object</tt>) <strong>count</strong> <span class="extras">(readonly)</span>
837
+
838
+
839
+
840
+
841
+
842
+ </h3><div class="docstring">
843
+ <div class="discussion">
844
+
845
+ <p>Returns the value of attribute count</p>
846
+
847
+
848
+ </div>
849
+ </div>
850
+ <div class="tags">
851
+
852
+
853
+ </div><table class="source_code">
854
+ <tr>
855
+ <td>
856
+ <pre class="lines">
857
+
858
+
859
+ 296
860
+ 297
861
+ 298</pre>
862
+ </td>
863
+ <td>
864
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
865
+
866
+ <span class='kw'>def</span> <span class='id identifier rubyid_count'>count</span>
867
+ <span class='ivar'>@count</span>
868
+ <span class='kw'>end</span></pre>
869
+ </td>
870
+ </tr>
871
+ </table>
872
+ </div>
873
+
874
+
875
+ <span id=""></span>
876
+ <div class="method_details ">
877
+ <h3 class="signature " id="firstdate-instance_method">
878
+
879
+ - (<tt>Object</tt>) <strong>firstdate</strong> <span class="extras">(readonly)</span>
880
+
881
+
882
+
883
+
884
+
885
+ </h3><div class="docstring">
886
+ <div class="discussion">
887
+
888
+ <p>Returns the value of attribute firstdate</p>
889
+
890
+
891
+ </div>
892
+ </div>
893
+ <div class="tags">
894
+
895
+
896
+ </div><table class="source_code">
897
+ <tr>
898
+ <td>
899
+ <pre class="lines">
900
+
901
+
902
+ 296
903
+ 297
904
+ 298</pre>
905
+ </td>
906
+ <td>
907
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
908
+
909
+ <span class='kw'>def</span> <span class='id identifier rubyid_firstdate'>firstdate</span>
910
+ <span class='ivar'>@firstdate</span>
911
+ <span class='kw'>end</span></pre>
912
+ </td>
913
+ </tr>
914
+ </table>
915
+ </div>
916
+
917
+
918
+ <span id=""></span>
919
+ <div class="method_details ">
920
+ <h3 class="signature " id="firstdatetaken-instance_method">
921
+
922
+ - (<tt>Object</tt>) <strong>firstdatetaken</strong> <span class="extras">(readonly)</span>
923
+
924
+
925
+
926
+
927
+
928
+ </h3><div class="docstring">
929
+ <div class="discussion">
930
+
931
+ <p>Returns the value of attribute firstdatetaken</p>
932
+
933
+
934
+ </div>
935
+ </div>
936
+ <div class="tags">
937
+
938
+
939
+ </div><table class="source_code">
940
+ <tr>
941
+ <td>
942
+ <pre class="lines">
943
+
944
+
945
+ 296
946
+ 297
947
+ 298</pre>
948
+ </td>
949
+ <td>
950
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
951
+
952
+ <span class='kw'>def</span> <span class='id identifier rubyid_firstdatetaken'>firstdatetaken</span>
953
+ <span class='ivar'>@firstdatetaken</span>
954
+ <span class='kw'>end</span></pre>
955
+ </td>
956
+ </tr>
957
+ </table>
958
+ </div>
959
+
960
+
961
+ <span id=""></span>
962
+ <div class="method_details ">
963
+ <h3 class="signature " id="id-instance_method">
964
+
965
+ - (<tt>Object</tt>) <strong>id</strong> <span class="extras">(readonly)</span>
966
+
967
+
968
+
969
+
970
+
971
+ </h3><div class="docstring">
972
+ <div class="discussion">
973
+
974
+ <p>Returns the value of attribute id</p>
975
+
976
+
977
+ </div>
978
+ </div>
979
+ <div class="tags">
980
+
981
+
982
+ </div><table class="source_code">
983
+ <tr>
984
+ <td>
985
+ <pre class="lines">
986
+
987
+
988
+ 296
989
+ 297
990
+ 298</pre>
991
+ </td>
992
+ <td>
993
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
994
+
995
+ <span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
996
+ <span class='ivar'>@id</span>
997
+ <span class='kw'>end</span></pre>
998
+ </td>
999
+ </tr>
1000
+ </table>
1001
+ </div>
1002
+
1003
+
1004
+ <span id=""></span>
1005
+ <div class="method_details ">
1006
+ <h3 class="signature " id="location-instance_method">
1007
+
1008
+ - (<tt>Object</tt>) <strong>location</strong> <span class="extras">(readonly)</span>
1009
+
1010
+
1011
+
1012
+
1013
+
1014
+ </h3><div class="docstring">
1015
+ <div class="discussion">
1016
+
1017
+ <p>Returns the value of attribute location</p>
1018
+
1019
+
1020
+ </div>
1021
+ </div>
1022
+ <div class="tags">
1023
+
1024
+
1025
+ </div><table class="source_code">
1026
+ <tr>
1027
+ <td>
1028
+ <pre class="lines">
1029
+
1030
+
1031
+ 296
1032
+ 297
1033
+ 298</pre>
1034
+ </td>
1035
+ <td>
1036
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
1037
+
1038
+ <span class='kw'>def</span> <span class='id identifier rubyid_location'>location</span>
1039
+ <span class='ivar'>@location</span>
1040
+ <span class='kw'>end</span></pre>
1041
+ </td>
1042
+ </tr>
1043
+ </table>
1044
+ </div>
1045
+
1046
+
1047
+ <span id=""></span>
1048
+ <div class="method_details ">
1049
+ <h3 class="signature " id="name-instance_method">
1050
+
1051
+ - (<tt>Object</tt>) <strong>name</strong> <span class="extras">(readonly)</span>
1052
+
1053
+
1054
+
1055
+
1056
+
1057
+ </h3><div class="docstring">
1058
+ <div class="discussion">
1059
+
1060
+ <p>Returns the value of attribute name</p>
1061
+
1062
+
1063
+ </div>
1064
+ </div>
1065
+ <div class="tags">
1066
+
1067
+
1068
+ </div><table class="source_code">
1069
+ <tr>
1070
+ <td>
1071
+ <pre class="lines">
1072
+
1073
+
1074
+ 296
1075
+ 297
1076
+ 298</pre>
1077
+ </td>
1078
+ <td>
1079
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 296</span>
1080
+
1081
+ <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
1082
+ <span class='ivar'>@name</span>
1083
+ <span class='kw'>end</span></pre>
1084
+ </td>
1085
+ </tr>
1086
+ </table>
1087
+ </div>
1088
+
1089
+
1090
+ <span id=""></span>
1091
+ <div class="method_details ">
1092
+ <h3 class="signature " id="photos_url-instance_method">
1093
+
1094
+ - (<tt>Object</tt>) <strong>photos_url</strong> <span class="extras">(readonly)</span>
1095
+
1096
+
1097
+
1098
+
1099
+
1100
+ </h3><div class="docstring">
1101
+ <div class="discussion">
1102
+
1103
+ <p>Builds url for user&#39;s photos page as per <a
1104
+ href="http://www.flickr.com/services/api/misc.urls.html">www.flickr.com/services/api/misc.urls.html</a></p>
1105
+
1106
+
1107
+ </div>
1108
+ </div>
1109
+ <div class="tags">
1110
+
1111
+
1112
+ </div><table class="source_code">
1113
+ <tr>
1114
+ <td>
1115
+ <pre class="lines">
1116
+
1117
+
1118
+ 344
1119
+ 345
1120
+ 346</pre>
1121
+ </td>
1122
+ <td>
1123
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 344</span>
1124
+
1125
+ <span class='kw'>def</span> <span class='id identifier rubyid_photos_url'>photos_url</span>
1126
+ <span class='ivar'>@photos_url</span>
1127
+ <span class='kw'>end</span></pre>
1128
+ </td>
1129
+ </tr>
1130
+ </table>
1131
+ </div>
1132
+
1133
+
1134
+ <span id=""></span>
1135
+ <div class="method_details ">
1136
+ <h3 class="signature " id="url-instance_method">
1137
+
1138
+ - (<tt>Object</tt>) <strong>url</strong> <span class="extras">(readonly)</span>
1139
+
1140
+
1141
+
1142
+
1143
+
1144
+ </h3><div class="docstring">
1145
+ <div class="discussion">
1146
+
1147
+ <p>Builds url for user&#39;s profile page as per <a
1148
+ href="http://www.flickr.com/services/api/misc.urls.html">www.flickr.com/services/api/misc.urls.html</a></p>
1149
+
1150
+
1151
+ </div>
1152
+ </div>
1153
+ <div class="tags">
1154
+
1155
+
1156
+ </div><table class="source_code">
1157
+ <tr>
1158
+ <td>
1159
+ <pre class="lines">
1160
+
1161
+
1162
+ 350
1163
+ 351
1164
+ 352</pre>
1165
+ </td>
1166
+ <td>
1167
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 350</span>
1168
+
1169
+ <span class='kw'>def</span> <span class='id identifier rubyid_url'>url</span>
1170
+ <span class='ivar'>@url</span>
1171
+ <span class='kw'>end</span></pre>
1172
+ </td>
1173
+ </tr>
1174
+ </table>
1175
+ </div>
1176
+
1177
+ </div>
1178
+
1179
+
1180
+ <div id="instance_method_details" class="method_details_list">
1181
+ <h2>Instance Method Details</h2>
1182
+
1183
+
1184
+ <div class="method_details first">
1185
+ <h3 class="signature first" id="contacts-instance_method">
1186
+
1187
+ - (<tt>Object</tt>) <strong>contacts</strong>
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+ </h3><div class="docstring">
1194
+ <div class="discussion">
1195
+
1196
+ <p>Implements flickr.contacts.getPublicList and flickr.contacts.getList</p>
1197
+
1198
+
1199
+ </div>
1200
+ </div>
1201
+ <div class="tags">
1202
+
1203
+
1204
+ </div><table class="source_code">
1205
+ <tr>
1206
+ <td>
1207
+ <pre class="lines">
1208
+
1209
+
1210
+ 382
1211
+ 383
1212
+ 384
1213
+ 385</pre>
1214
+ </td>
1215
+ <td>
1216
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 382</span>
1217
+
1218
+ <span class='kw'>def</span> <span class='id identifier rubyid_contacts'>contacts</span>
1219
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_contacts_getPublicList'>contacts_getPublicList</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>contacts</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>contact</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_contact'>contact</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='id identifier rubyid_contact'>contact</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>nsid</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='id identifier rubyid_contact'>contact</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>username</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</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> <span class='rbrace'>}</span>
1220
+ <span class='comment'>#or
1221
+ </span><span class='kw'>end</span></pre>
1222
+ </td>
1223
+ </tr>
1224
+ </table>
1225
+ </div>
1226
+
1227
+ <div class="method_details ">
1228
+ <h3 class="signature " id="contactsPhotos-instance_method">
1229
+
1230
+ - (<tt>Object</tt>) <strong>contactsPhotos</strong>
1231
+
1232
+
1233
+
1234
+
1235
+
1236
+ </h3><div class="docstring">
1237
+ <div class="discussion">
1238
+
1239
+ <p>Implements flickr.photos.getContactsPublicPhotos and
1240
+ flickr.photos.getContactsPhotos</p>
1241
+
1242
+
1243
+ </div>
1244
+ </div>
1245
+ <div class="tags">
1246
+
1247
+
1248
+ </div><table class="source_code">
1249
+ <tr>
1250
+ <td>
1251
+ <pre class="lines">
1252
+
1253
+
1254
+ 408
1255
+ 409
1256
+ 410</pre>
1257
+ </td>
1258
+ <td>
1259
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 408</span>
1260
+
1261
+ <span class='kw'>def</span> <span class='id identifier rubyid_contactsPhotos'>contactsPhotos</span>
1262
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_request'>photos_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>photos.getContactsPublicPhotos</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='ivar'>@id</span><span class='rparen'>)</span>
1263
+ <span class='kw'>end</span></pre>
1264
+ </td>
1265
+ </tr>
1266
+ </table>
1267
+ </div>
1268
+
1269
+ <div class="method_details ">
1270
+ <h3 class="signature " id="favorites-instance_method">
1271
+
1272
+ - (<tt>Object</tt>) <strong>favorites</strong>
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+ </h3><div class="docstring">
1279
+ <div class="discussion">
1280
+
1281
+ <p>Implements flickr.favorites.getPublicList</p>
1282
+
1283
+
1284
+ </div>
1285
+ </div>
1286
+ <div class="tags">
1287
+
1288
+
1289
+ </div><table class="source_code">
1290
+ <tr>
1291
+ <td>
1292
+ <pre class="lines">
1293
+
1294
+
1295
+ 388
1296
+ 389
1297
+ 390</pre>
1298
+ </td>
1299
+ <td>
1300
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 388</span>
1301
+
1302
+ <span class='kw'>def</span> <span class='id identifier rubyid_favorites'>favorites</span>
1303
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_request'>photos_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>favorites.getPublicList</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='ivar'>@id</span><span class='rparen'>)</span>
1304
+ <span class='kw'>end</span></pre>
1305
+ </td>
1306
+ </tr>
1307
+ </table>
1308
+ </div>
1309
+
1310
+ <div class="method_details ">
1311
+ <h3 class="signature " id="groups-instance_method">
1312
+
1313
+ - (<tt>Object</tt>) <strong>groups</strong>
1314
+
1315
+
1316
+
1317
+
1318
+
1319
+ </h3><div class="docstring">
1320
+ <div class="discussion">
1321
+
1322
+ <p>Implements flickr.people.getPublicGroups</p>
1323
+
1324
+
1325
+ </div>
1326
+ </div>
1327
+ <div class="tags">
1328
+
1329
+
1330
+ </div><table class="source_code">
1331
+ <tr>
1332
+ <td>
1333
+ <pre class="lines">
1334
+
1335
+
1336
+ 359
1337
+ 360
1338
+ 361
1339
+ 362
1340
+ 363
1341
+ 364
1342
+ 365
1343
+ 366</pre>
1344
+ </td>
1345
+ <td>
1346
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 359</span>
1347
+
1348
+ <span class='kw'>def</span> <span class='id identifier rubyid_groups'>groups</span>
1349
+ <span class='id identifier rubyid_collection'>collection</span> <span class='op'>=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_people_getPublicGroups'>people_getPublicGroups</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>groups</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>group</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
1350
+ <span class='id identifier rubyid_collection'>collection</span> <span class='op'>=</span> <span class='lbracket'>[</span><span class='id identifier rubyid_collection'>collection</span><span class='rbracket'>]</span> <span class='kw'>if</span> <span class='id identifier rubyid_collection'>collection</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Hash</span>
1351
+ <span class='id identifier rubyid_collection'>collection</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_group'>group</span><span class='op'>|</span> <span class='const'>Group</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span> <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>id</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_group'>group</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>nsid</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
1352
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>name</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_group'>group</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>name</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
1353
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>eighteenplus</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='id identifier rubyid_group'>group</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>eighteenplus</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span>
1354
+ <span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>client</span><span class='tstring_end'>&quot;</span></span> <span class='op'>=&gt;</span> <span class='ivar'>@client</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1355
+ <span class='kw'>end</span></pre>
1356
+ </td>
1357
+ </tr>
1358
+ </table>
1359
+ </div>
1360
+
1361
+ <div class="method_details ">
1362
+ <h3 class="signature " id="photos-instance_method">
1363
+
1364
+ - (<tt>Object</tt>) <strong>photos</strong>(options = {})
1365
+
1366
+
1367
+
1368
+
1369
+
1370
+ </h3><div class="docstring">
1371
+ <div class="discussion">
1372
+
1373
+ <p>Implements flickr.people.getPublicPhotos. Options hash allows you to add
1374
+ extra restrictions as per flickr.people.getPublicPhotos docs, e.g.
1375
+ user.photos(&#39;per_page&#39; =&gt; &#39;25&#39;, &#39;extras&#39; =&gt;
1376
+ &#39;date_taken&#39;)</p>
1377
+
1378
+
1379
+ </div>
1380
+ </div>
1381
+ <div class="tags">
1382
+
1383
+
1384
+ </div><table class="source_code">
1385
+ <tr>
1386
+ <td>
1387
+ <pre class="lines">
1388
+
1389
+
1390
+ 371
1391
+ 372
1392
+ 373
1393
+ 374</pre>
1394
+ </td>
1395
+ <td>
1396
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 371</span>
1397
+
1398
+ <span class='kw'>def</span> <span class='id identifier rubyid_photos'>photos</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='op'>=</span><span class='lbrace'>{</span><span class='rbrace'>}</span><span class='rparen'>)</span>
1399
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos_request'>photos_request</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>people.getPublicPhotos</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span> <span class='op'>=&gt;</span> <span class='ivar'>@id</span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_merge'>merge</span><span class='lparen'>(</span><span class='id identifier rubyid_options'>options</span><span class='rparen'>)</span><span class='rparen'>)</span>
1400
+ <span class='comment'># what about non-public photos?
1401
+ </span><span class='kw'>end</span></pre>
1402
+ </td>
1403
+ </tr>
1404
+ </table>
1405
+ </div>
1406
+
1407
+ <div class="method_details ">
1408
+ <h3 class="signature " id="photosets-instance_method">
1409
+
1410
+ - (<tt>Object</tt>) <strong>photosets</strong>
1411
+
1412
+
1413
+
1414
+
1415
+
1416
+ </h3><div class="docstring">
1417
+ <div class="discussion">
1418
+
1419
+ <p>Implements flickr.photosets.getList</p>
1420
+
1421
+
1422
+ </div>
1423
+ </div>
1424
+ <div class="tags">
1425
+
1426
+
1427
+ </div><table class="source_code">
1428
+ <tr>
1429
+ <td>
1430
+ <pre class="lines">
1431
+
1432
+
1433
+ 393
1434
+ 394
1435
+ 395</pre>
1436
+ </td>
1437
+ <td>
1438
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 393</span>
1439
+
1440
+ <span class='kw'>def</span> <span class='id identifier rubyid_photosets'>photosets</span>
1441
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photosets_getList'>photosets_getList</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>photosets</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>photoset</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_photoset'>photoset</span><span class='op'>|</span> <span class='const'>Photoset</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='id identifier rubyid_photoset'>photoset</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>id</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='comma'>,</span> <span class='ivar'>@api_key</span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1442
+ <span class='kw'>end</span></pre>
1443
+ </td>
1444
+ </tr>
1445
+ </table>
1446
+ </div>
1447
+
1448
+ <div class="method_details ">
1449
+ <h3 class="signature " id="popular_tags-instance_method">
1450
+
1451
+ - (<tt>Object</tt>) <strong>popular_tags</strong>(count = 10)
1452
+
1453
+
1454
+
1455
+
1456
+
1457
+ </h3><div class="docstring">
1458
+ <div class="discussion">
1459
+
1460
+ <p>Implements flickr.tags.getListUserPopular</p>
1461
+
1462
+
1463
+ </div>
1464
+ </div>
1465
+ <div class="tags">
1466
+
1467
+
1468
+ </div><table class="source_code">
1469
+ <tr>
1470
+ <td>
1471
+ <pre class="lines">
1472
+
1473
+
1474
+ 403
1475
+ 404
1476
+ 405</pre>
1477
+ </td>
1478
+ <td>
1479
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 403</span>
1480
+
1481
+ <span class='kw'>def</span> <span class='id identifier rubyid_popular_tags'>popular_tags</span><span class='lparen'>(</span><span class='id identifier rubyid_count'>count</span> <span class='op'>=</span> <span class='int'>10</span><span class='rparen'>)</span>
1482
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_tags_getListUserPopular'>tags_getListUserPopular</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>count</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span> <span class='id identifier rubyid_count'>count</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>who</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tags</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tag</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</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_tag_score'>tag_score</span><span class='op'>|</span> <span class='id identifier rubyid_tag_score'>tag_score</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>tag</span><span class='tstring_end'>&quot;</span></span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_tag_score'>tag_score</span><span class='period'>.</span><span class='id identifier rubyid_delete'>delete</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>content</span><span class='tstring_end'>&quot;</span></span><span class='rparen'>)</span> <span class='rbrace'>}</span>
1483
+ <span class='kw'>end</span></pre>
1484
+ </td>
1485
+ </tr>
1486
+ </table>
1487
+ </div>
1488
+
1489
+ <div class="method_details ">
1490
+ <h3 class="signature " id="pretty_url-instance_method">
1491
+
1492
+ - (<tt>Object</tt>) <strong>pretty_url</strong>
1493
+
1494
+
1495
+
1496
+
1497
+
1498
+ </h3><table class="source_code">
1499
+ <tr>
1500
+ <td>
1501
+ <pre class="lines">
1502
+
1503
+
1504
+ 354
1505
+ 355
1506
+ 356</pre>
1507
+ </td>
1508
+ <td>
1509
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 354</span>
1510
+
1511
+ <span class='kw'>def</span> <span class='id identifier rubyid_pretty_url'>pretty_url</span>
1512
+ <span class='ivar'>@pretty_url</span> <span class='op'>||=</span> <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_urls_getUserProfile'>urls_getUserProfile</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>url</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span>
1513
+ <span class='kw'>end</span></pre>
1514
+ </td>
1515
+ </tr>
1516
+ </table>
1517
+ </div>
1518
+
1519
+ <div class="method_details ">
1520
+ <h3 class="signature " id="tag-instance_method">
1521
+
1522
+ - (<tt>Object</tt>) <strong>tag</strong>(tag)
1523
+
1524
+
1525
+
1526
+
1527
+
1528
+ </h3><div class="docstring">
1529
+ <div class="discussion">
1530
+
1531
+ <p>Gets photos with a given tag</p>
1532
+
1533
+
1534
+ </div>
1535
+ </div>
1536
+ <div class="tags">
1537
+
1538
+
1539
+ </div><table class="source_code">
1540
+ <tr>
1541
+ <td>
1542
+ <pre class="lines">
1543
+
1544
+
1545
+ 377
1546
+ 378
1547
+ 379</pre>
1548
+ </td>
1549
+ <td>
1550
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 377</span>
1551
+
1552
+ <span class='kw'>def</span> <span class='id identifier rubyid_tag'>tag</span><span class='lparen'>(</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
1553
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_photos'>photos</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='comma'>,</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tags</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='id identifier rubyid_tag'>tag</span><span class='rparen'>)</span>
1554
+ <span class='kw'>end</span></pre>
1555
+ </td>
1556
+ </tr>
1557
+ </table>
1558
+ </div>
1559
+
1560
+ <div class="method_details ">
1561
+ <h3 class="signature " id="tags-instance_method">
1562
+
1563
+ - (<tt>Object</tt>) <strong>tags</strong>
1564
+
1565
+
1566
+
1567
+
1568
+
1569
+ </h3><div class="docstring">
1570
+ <div class="discussion">
1571
+
1572
+ <p>Implements flickr.tags.getListUser</p>
1573
+
1574
+
1575
+ </div>
1576
+ </div>
1577
+ <div class="tags">
1578
+
1579
+
1580
+ </div><table class="source_code">
1581
+ <tr>
1582
+ <td>
1583
+ <pre class="lines">
1584
+
1585
+
1586
+ 398
1587
+ 399
1588
+ 400</pre>
1589
+ </td>
1590
+ <td>
1591
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 398</span>
1592
+
1593
+ <span class='kw'>def</span> <span class='id identifier rubyid_tags'>tags</span>
1594
+ <span class='ivar'>@client</span><span class='period'>.</span><span class='id identifier rubyid_tags_getListUser'>tags_getListUser</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>user_id</span><span class='tstring_end'>&#39;</span></span><span class='op'>=&gt;</span><span class='ivar'>@id</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>who</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tags</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>tag</span><span class='tstring_end'>&#39;</span></span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_collect'>collect</span> <span class='lbrace'>{</span> <span class='op'>|</span><span class='id identifier rubyid_tag'>tag</span><span class='op'>|</span> <span class='id identifier rubyid_tag'>tag</span> <span class='rbrace'>}</span>
1595
+ <span class='kw'>end</span></pre>
1596
+ </td>
1597
+ </tr>
1598
+ </table>
1599
+ </div>
1600
+
1601
+ <div class="method_details ">
1602
+ <h3 class="signature " id="to_s-instance_method">
1603
+
1604
+ - (<tt>Object</tt>) <strong>to_s</strong>
1605
+
1606
+
1607
+
1608
+
1609
+
1610
+ </h3><table class="source_code">
1611
+ <tr>
1612
+ <td>
1613
+ <pre class="lines">
1614
+
1615
+
1616
+ 412
1617
+ 413
1618
+ 414</pre>
1619
+ </td>
1620
+ <td>
1621
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 412</span>
1622
+
1623
+ <span class='kw'>def</span> <span class='id identifier rubyid_to_s'>to_s</span>
1624
+ <span class='ivar'>@name</span>
1625
+ <span class='kw'>end</span></pre>
1626
+ </td>
1627
+ </tr>
1628
+ </table>
1629
+ </div>
1630
+
1631
+ <div class="method_details ">
1632
+ <h3 class="signature " id="username-instance_method">
1633
+
1634
+ - (<tt>Object</tt>) <strong>username</strong>
1635
+
1636
+
1637
+
1638
+
1639
+
1640
+ </h3><table class="source_code">
1641
+ <tr>
1642
+ <td>
1643
+ <pre class="lines">
1644
+
1645
+
1646
+ 323
1647
+ 324
1648
+ 325</pre>
1649
+ </td>
1650
+ <td>
1651
+ <pre class="code"><span class="info file"># File 'lib/flickr.rb', line 323</span>
1652
+
1653
+ <span class='kw'>def</span> <span class='id identifier rubyid_username'>username</span>
1654
+ <span class='ivar'>@username</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='period'>.</span><span class='id identifier rubyid_username'>username</span> <span class='op'>:</span> <span class='ivar'>@username</span>
1655
+ <span class='kw'>end</span></pre>
1656
+ </td>
1657
+ </tr>
1658
+ </table>
1659
+ </div>
1660
+
1661
+ </div>
1662
+
1663
+ </div>
1664
+
1665
+ <div id="footer">
1666
+ Generated on Tue May 13 13:49:26 2014 by
1667
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
1668
+ 0.8.7.4 (ruby-2.0.0).
1669
+ </div>
1670
+
1671
+ </body>
1672
+ </html>