flickrie 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README.md +6 -4
  3. data/Rakefile +9 -8
  4. data/api_methods.md +297 -0
  5. data/doc/Flickrie.html +364 -0
  6. data/doc/Flickrie/.DS_Store +0 -0
  7. data/doc/Flickrie/ApiMethods.html +1692 -0
  8. data/doc/Flickrie/Client.html +914 -0
  9. data/doc/Flickrie/Error.html +187 -0
  10. data/doc/Flickrie/Instance.html +344 -0
  11. data/doc/Flickrie/License.html +288 -0
  12. data/doc/Flickrie/Location.html +233 -0
  13. data/doc/Flickrie/Media.html +1689 -0
  14. data/doc/Flickrie/Media/ClassMethods.html +509 -0
  15. data/doc/Flickrie/Media/Count.html +314 -0
  16. data/doc/Flickrie/Media/Exif.html +276 -0
  17. data/doc/Flickrie/Media/Note.html +362 -0
  18. data/doc/Flickrie/Media/Tag.html +425 -0
  19. data/doc/Flickrie/Media/Ticket.html +425 -0
  20. data/doc/Flickrie/Media/Visibility.html +359 -0
  21. data/doc/Flickrie/MediaCount.html +314 -0
  22. data/doc/Flickrie/OAuth.html +334 -0
  23. data/doc/Flickrie/OAuth/AccessToken.html +187 -0
  24. data/doc/Flickrie/OAuth/Error.html +187 -0
  25. data/doc/Flickrie/OAuth/ParseResponseParams.html +187 -0
  26. data/doc/Flickrie/OAuth/RequestToken.html +241 -0
  27. data/doc/Flickrie/OAuth/StatusCheck.html +235 -0
  28. data/doc/Flickrie/OAuth/Token.html +227 -0
  29. data/doc/Flickrie/OAuthStatusCheck.html +236 -0
  30. data/doc/Flickrie/Photo.html +913 -0
  31. data/doc/Flickrie/Set.html +998 -0
  32. data/doc/Flickrie/StatusCheck.html +235 -0
  33. data/doc/Flickrie/UploadClient.html +284 -0
  34. data/doc/Flickrie/UploadStatusCheck.html +235 -0
  35. data/doc/Flickrie/User.html +875 -0
  36. data/doc/Flickrie/Video.html +601 -0
  37. data/doc/Gemfile.html +163 -0
  38. data/doc/LICENSE.html +165 -0
  39. data/doc/Rakefile.html +168 -0
  40. data/doc/created.rid +25 -0
  41. data/doc/images/add.png +0 -0
  42. data/doc/images/brick.png +0 -0
  43. data/doc/images/brick_link.png +0 -0
  44. data/doc/images/bug.png +0 -0
  45. data/doc/images/bullet_black.png +0 -0
  46. data/doc/images/bullet_toggle_minus.png +0 -0
  47. data/doc/images/bullet_toggle_plus.png +0 -0
  48. data/doc/images/date.png +0 -0
  49. data/doc/images/delete.png +0 -0
  50. data/doc/images/find.png +0 -0
  51. data/doc/images/loadingAnimation.gif +0 -0
  52. data/doc/images/macFFBgHack.png +0 -0
  53. data/doc/images/package.png +0 -0
  54. data/doc/images/page_green.png +0 -0
  55. data/doc/images/page_white_text.png +0 -0
  56. data/doc/images/page_white_width.png +0 -0
  57. data/doc/images/plugin.png +0 -0
  58. data/doc/images/ruby.png +0 -0
  59. data/doc/images/tag_blue.png +0 -0
  60. data/doc/images/tag_green.png +0 -0
  61. data/doc/images/transparent.png +0 -0
  62. data/doc/images/wrench.png +0 -0
  63. data/doc/images/wrench_orange.png +0 -0
  64. data/doc/images/zoom.png +0 -0
  65. data/doc/index.html +140 -0
  66. data/doc/js/darkfish.js +153 -0
  67. data/doc/js/jquery.js +18 -0
  68. data/doc/js/navigation.js +142 -0
  69. data/doc/js/search.js +94 -0
  70. data/doc/js/search_index.js +1 -0
  71. data/doc/js/searcher.js +228 -0
  72. data/doc/rdoc.css +543 -0
  73. data/doc/table_of_contents.html +642 -0
  74. data/flickrie.gemspec +7 -6
  75. data/lib/flickrie/api_methods.rb +26 -1
  76. data/lib/flickrie/client.rb +8 -0
  77. data/lib/flickrie/media.rb +24 -0
  78. data/lib/flickrie/media/exif.rb +18 -0
  79. data/lib/flickrie/media_count.rb +28 -0
  80. data/lib/flickrie/version.rb +1 -1
  81. data/test/license_test.rb +0 -1
  82. data/test/location_test.rb +0 -1
  83. data/test/media_count_test.rb +17 -0
  84. data/test/media_test.rb +0 -1
  85. data/test/oauth_test.rb +1 -2
  86. data/test/photo_test.rb +13 -1
  87. data/test/set_test.rb +0 -1
  88. data/test/test.rb +1 -1
  89. data/test/user_test.rb +0 -1
  90. data/test/video_test.rb +12 -1
  91. metadata +87 -13
@@ -0,0 +1,1689 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
6
+
7
+ <title>module Flickrie::Media - RDoc Documentation</title>
8
+
9
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet">
10
+
11
+ <script type="text/javascript">
12
+ var rdoc_rel_prefix = "../";
13
+ </script>
14
+
15
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
16
+ <script type="text/javascript" charset="utf-8" src="../js/navigation.js"></script>
17
+ <script type="text/javascript" charset="utf-8" src="../js/search_index.js"></script>
18
+ <script type="text/javascript" charset="utf-8" src="../js/search.js"></script>
19
+ <script type="text/javascript" charset="utf-8" src="../js/searcher.js"></script>
20
+ <script type="text/javascript" charset="utf-8" src="../js/darkfish.js"></script>
21
+
22
+
23
+ <body id="top" class="module">
24
+ <nav id="metadata">
25
+ <nav id="home-section" class="section">
26
+ <h3 class="section-header">
27
+ <a href="../index.html">Home</a>
28
+ <a href="../table_of_contents.html#classes">Classes</a>
29
+ <a href="../table_of_contents.html#methods">Methods</a>
30
+ </h3>
31
+ </nav>
32
+
33
+
34
+ <nav id="search-section" class="section project-section" class="initially-hidden">
35
+ <form action="#" method="get" accept-charset="utf-8">
36
+ <h3 class="section-header">
37
+ <input type="text" name="search" placeholder="Search" id="search-field"
38
+ title="Type to search, Up and Down to navigate, Enter to load">
39
+ </h3>
40
+ </form>
41
+
42
+ <ul id="search-results" class="initially-hidden"></ul>
43
+ </nav>
44
+
45
+
46
+ <div id="file-metadata">
47
+ <nav id="file-list-section" class="section">
48
+ <h3 class="section-header">Defined In</h3>
49
+ <ul>
50
+ <li>lib/flickrie/media/exif.rb
51
+ <li>lib/flickrie/media/note.rb
52
+ <li>lib/flickrie/media/tag.rb
53
+ <li>lib/flickrie/media/ticket.rb
54
+ <li>lib/flickrie/media/visibility.rb
55
+ <li>lib/flickrie/media.rb
56
+ </ul>
57
+ </nav>
58
+
59
+
60
+ </div>
61
+
62
+ <div id="class-metadata">
63
+
64
+
65
+
66
+ <!-- Method Quickref -->
67
+ <nav id="method-list-section" class="section">
68
+ <h3 class="section-header">Methods</h3>
69
+
70
+ <ul class="link-list">
71
+
72
+ <li><a href="#method-c-included">::included</a>
73
+
74
+ <li><a href="#method-c-new">::new</a>
75
+
76
+ <li><a href="#method-c-new">::new</a>
77
+
78
+ <li><a href="#method-i-camera">#camera</a>
79
+
80
+ <li><a href="#method-i-can_add_meta-3F">#can_add_meta?</a>
81
+
82
+ <li><a href="#method-i-can_blog-3F">#can_blog?</a>
83
+
84
+ <li><a href="#method-i-can_comment-3F">#can_comment?</a>
85
+
86
+ <li><a href="#method-i-can_download-3F">#can_download?</a>
87
+
88
+ <li><a href="#method-i-can_everyone_add_meta-3F">#can_everyone_add_meta?</a>
89
+
90
+ <li><a href="#method-i-can_everyone_comment-3F">#can_everyone_comment?</a>
91
+
92
+ <li><a href="#method-i-can_print-3F">#can_print?</a>
93
+
94
+ <li><a href="#method-i-can_share-3F">#can_share?</a>
95
+
96
+ <li><a href="#method-i-comments_count">#comments_count</a>
97
+
98
+ <li><a href="#method-i-description">#description</a>
99
+
100
+ <li><a href="#method-i-exif">#exif</a>
101
+
102
+ <li><a href="#method-i-farm">#farm</a>
103
+
104
+ <li><a href="#method-i-faved-3F">#faved?</a>
105
+
106
+ <li><a href="#method-i-favorite-3F">#favorite?</a>
107
+
108
+ <li><a href="#method-i-geo_permissions">#geo_permissions</a>
109
+
110
+ <li><a href="#method-i-get_exif">#get_exif</a>
111
+
112
+ <li><a href="#method-i-get_info">#get_info</a>
113
+
114
+ <li><a href="#method-i-has_people-3F">#has_people?</a>
115
+
116
+ <li><a href="#method-i-id">#id</a>
117
+
118
+ <li><a href="#method-i-license">#license</a>
119
+
120
+ <li><a href="#method-i-location">#location</a>
121
+
122
+ <li><a href="#method-i-machine_tags">#machine_tags</a>
123
+
124
+ <li><a href="#method-i-media_status">#media_status</a>
125
+
126
+ <li><a href="#method-i-moderate-3F">#moderate?</a>
127
+
128
+ <li><a href="#method-i-notes">#notes</a>
129
+
130
+ <li><a href="#method-i-owner">#owner</a>
131
+
132
+ <li><a href="#method-i-path_alias">#path_alias</a>
133
+
134
+ <li><a href="#method-i-posted_at">#posted_at</a>
135
+
136
+ <li><a href="#method-i-primary-3F">#primary?</a>
137
+
138
+ <li><a href="#method-i-restricted-3F">#restricted?</a>
139
+
140
+ <li><a href="#method-i-safe-3F">#safe?</a>
141
+
142
+ <li><a href="#method-i-safety_level">#safety_level</a>
143
+
144
+ <li><a href="#method-i-secret">#secret</a>
145
+
146
+ <li><a href="#method-i-server">#server</a>
147
+
148
+ <li><a href="#method-i-tags">#tags</a>
149
+
150
+ <li><a href="#method-i-taken_at">#taken_at</a>
151
+
152
+ <li><a href="#method-i-taken_at_granularity">#taken_at_granularity</a>
153
+
154
+ <li><a href="#method-i-title">#title</a>
155
+
156
+ <li><a href="#method-i-updated_at">#updated_at</a>
157
+
158
+ <li><a href="#method-i-uploaded_at">#uploaded_at</a>
159
+
160
+ <li><a href="#method-i-url">#url</a>
161
+
162
+ <li><a href="#method-i-views_count">#views_count</a>
163
+
164
+ <li><a href="#method-i-visibility">#visibility</a>
165
+
166
+ </ul>
167
+ </nav>
168
+
169
+ </div>
170
+
171
+ <div id="project-metadata">
172
+ <nav id="fileindex-section" class="section project-section">
173
+ <h3 class="section-header">Pages</h3>
174
+
175
+ <ul>
176
+
177
+ <li class="file"><a href="../Gemfile.html">Gemfile</a>
178
+
179
+ <li class="file"><a href="../LICENSE.html">LICENSE</a>
180
+
181
+ <li class="file"><a href="../Rakefile.html">Rakefile</a>
182
+
183
+ </ul>
184
+ </nav>
185
+
186
+ <nav id="classindex-section" class="section project-section">
187
+ <h3 class="section-header">Class and Module Index</h3>
188
+
189
+ <ul class="link-list">
190
+
191
+ <li><a href="../Flickrie.html">Flickrie</a>
192
+
193
+ <li><a href="../Flickrie/ApiMethods.html">Flickrie::ApiMethods</a>
194
+
195
+ <li><a href="../Flickrie/Client.html">Flickrie::Client</a>
196
+
197
+ <li><a href="../Flickrie/Error.html">Flickrie::Error</a>
198
+
199
+ <li><a href="../Flickrie/Instance.html">Flickrie::Instance</a>
200
+
201
+ <li><a href="../Flickrie/License.html">Flickrie::License</a>
202
+
203
+ <li><a href="../Flickrie/Location.html">Flickrie::Location</a>
204
+
205
+ <li><a href="../Flickrie/Media.html">Flickrie::Media</a>
206
+
207
+ <li><a href="../Flickrie/Media/ClassMethods.html">Flickrie::Media::ClassMethods</a>
208
+
209
+ <li><a href="../Flickrie/Media/Exif.html">Flickrie::Media::Exif</a>
210
+
211
+ <li><a href="../Flickrie/Media/Note.html">Flickrie::Media::Note</a>
212
+
213
+ <li><a href="../Flickrie/Media/Tag.html">Flickrie::Media::Tag</a>
214
+
215
+ <li><a href="../Flickrie/Media/Ticket.html">Flickrie::Media::Ticket</a>
216
+
217
+ <li><a href="../Flickrie/Media/Visibility.html">Flickrie::Media::Visibility</a>
218
+
219
+ <li><a href="../Flickrie/MediaCount.html">Flickrie::MediaCount</a>
220
+
221
+ <li><a href="../Flickrie/OAuth.html">Flickrie::OAuth</a>
222
+
223
+ <li><a href="../Flickrie/OAuth/AccessToken.html">Flickrie::OAuth::AccessToken</a>
224
+
225
+ <li><a href="../Flickrie/OAuth/Error.html">Flickrie::OAuth::Error</a>
226
+
227
+ <li><a href="../Flickrie/OAuth/ParseResponseParams.html">Flickrie::OAuth::ParseResponseParams</a>
228
+
229
+ <li><a href="../Flickrie/OAuth/RequestToken.html">Flickrie::OAuth::RequestToken</a>
230
+
231
+ <li><a href="../Flickrie/OAuth/StatusCheck.html">Flickrie::OAuth::StatusCheck</a>
232
+
233
+ <li><a href="../Flickrie/OAuth/Token.html">Flickrie::OAuth::Token</a>
234
+
235
+ <li><a href="../Flickrie/OAuthStatusCheck.html">Flickrie::OAuthStatusCheck</a>
236
+
237
+ <li><a href="../Flickrie/Photo.html">Flickrie::Photo</a>
238
+
239
+ <li><a href="../Flickrie/Set.html">Flickrie::Set</a>
240
+
241
+ <li><a href="../Flickrie/StatusCheck.html">Flickrie::StatusCheck</a>
242
+
243
+ <li><a href="../Flickrie/UploadClient.html">Flickrie::UploadClient</a>
244
+
245
+ <li><a href="../Flickrie/UploadStatusCheck.html">Flickrie::UploadStatusCheck</a>
246
+
247
+ <li><a href="../Flickrie/User.html">Flickrie::User</a>
248
+
249
+ <li><a href="../Flickrie/Video.html">Flickrie::Video</a>
250
+
251
+ </ul>
252
+ </nav>
253
+
254
+ </div>
255
+ </nav>
256
+
257
+ <div id="documentation">
258
+ <h1 class="module">module Flickrie::Media</h1>
259
+
260
+ <div id="description" class="description">
261
+
262
+ </div><!-- description -->
263
+
264
+
265
+
266
+
267
+ <section id="5Buntitled-5D" class="documentation-section">
268
+
269
+
270
+
271
+
272
+
273
+
274
+
275
+
276
+ <!-- Methods -->
277
+
278
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
279
+ <h3 class="section-header">Public Class Methods</h3>
280
+
281
+
282
+ <div id="method-c-included" class="method-detail ">
283
+
284
+ <div class="method-heading">
285
+ <span class="method-name">included</span><span
286
+ class="method-args">(klass)</span>
287
+ <span class="method-click-advice">click to toggle source</span>
288
+ </div>
289
+
290
+
291
+ <div class="method-description">
292
+
293
+
294
+
295
+
296
+
297
+ <div class="method-source-code" id="included-source">
298
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 247</span>
299
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">klass</span>)
300
+ <span class="ruby-identifier">klass</span>.<span class="ruby-identifier">extend</span>(<span class="ruby-constant">ClassMethods</span>)
301
+ <span class="ruby-keyword">end</span></pre>
302
+ </div><!-- included-source -->
303
+
304
+ </div>
305
+
306
+
307
+
308
+
309
+ </div><!-- included-method -->
310
+
311
+
312
+ <div id="method-c-new" class="method-detail ">
313
+
314
+ <div class="method-heading">
315
+ <span class="method-name">new</span><span
316
+ class="method-args">(info)</span>
317
+ <span class="method-click-advice">click to toggle source</span>
318
+ </div>
319
+
320
+
321
+ <div class="method-description">
322
+
323
+
324
+
325
+
326
+
327
+ <div class="method-source-code" id="new-source">
328
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 251</span>
329
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>)
330
+ <span class="ruby-identifier">eval</span>(<span class="ruby-identifier">info</span>[<span class="ruby-string">'media'</span>].<span class="ruby-identifier">capitalize</span>).<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>)
331
+ <span class="ruby-keyword">end</span></pre>
332
+ </div><!-- new-source -->
333
+
334
+ </div>
335
+
336
+
337
+
338
+
339
+ </div><!-- new-method -->
340
+
341
+
342
+ <div id="method-c-new" class="method-detail ">
343
+
344
+ <div class="method-heading">
345
+ <span class="method-name">new</span><span
346
+ class="method-args">(info = {})</span>
347
+ <span class="method-click-advice">click to toggle source</span>
348
+ </div>
349
+
350
+
351
+ <div class="method-description">
352
+
353
+
354
+
355
+
356
+
357
+ <div class="method-source-code" id="new-source">
358
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 148</span>
359
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">info</span> = {})
360
+ <span class="ruby-ivar">@info</span> = <span class="ruby-identifier">info</span>
361
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>] <span class="ruby-operator">||=</span> {}
362
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>] <span class="ruby-operator">||=</span> {}
363
+ <span class="ruby-keyword">end</span></pre>
364
+ </div><!-- new-source -->
365
+
366
+ </div>
367
+
368
+
369
+
370
+
371
+ </div><!-- new-method -->
372
+
373
+
374
+ </section><!-- public-class-method-details -->
375
+
376
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
377
+ <h3 class="section-header">Public Instance Methods</h3>
378
+
379
+
380
+ <div id="method-i-camera" class="method-detail ">
381
+
382
+ <div class="method-heading">
383
+ <span class="method-name">camera</span><span
384
+ class="method-args">()</span>
385
+ <span class="method-click-advice">click to toggle source</span>
386
+ </div>
387
+
388
+
389
+ <div class="method-description">
390
+
391
+
392
+
393
+
394
+
395
+ <div class="method-source-code" id="camera-source">
396
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 20</span>
397
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">camera</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'camera'</span>] <span class="ruby-keyword">end</span></pre>
398
+ </div><!-- camera-source -->
399
+
400
+ </div>
401
+
402
+
403
+
404
+
405
+ </div><!-- camera-method -->
406
+
407
+
408
+ <div id="method-i-can_add_meta-3F" class="method-detail ">
409
+
410
+ <div class="method-heading">
411
+ <span class="method-name">can_add_meta?</span><span
412
+ class="method-args">()</span>
413
+ <span class="method-click-advice">click to toggle source</span>
414
+ </div>
415
+
416
+
417
+ <div class="method-description">
418
+
419
+
420
+
421
+
422
+
423
+ <div class="method-source-code" id="can_add_meta-3F-source">
424
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 102</span>
425
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_add_meta?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'editability'</span>][<span class="ruby-string">'canaddmeta'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'editability'</span>] <span class="ruby-keyword">end</span></pre>
426
+ </div><!-- can_add_meta-3F-source -->
427
+
428
+ </div>
429
+
430
+
431
+
432
+
433
+ </div><!-- can_add_meta-3F-method -->
434
+
435
+
436
+ <div id="method-i-can_blog-3F" class="method-detail ">
437
+
438
+ <div class="method-heading">
439
+ <span class="method-name">can_blog?</span><span
440
+ class="method-args">()</span>
441
+ <span class="method-click-advice">click to toggle source</span>
442
+ </div>
443
+
444
+
445
+ <div class="method-description">
446
+
447
+
448
+
449
+
450
+
451
+ <div class="method-source-code" id="can_blog-3F-source">
452
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 113</span>
453
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_blog?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'canblog'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'canblog'</span>] <span class="ruby-keyword">end</span></pre>
454
+ </div><!-- can_blog-3F-source -->
455
+
456
+ </div>
457
+
458
+
459
+
460
+
461
+ </div><!-- can_blog-3F-method -->
462
+
463
+
464
+ <div id="method-i-can_comment-3F" class="method-detail ">
465
+
466
+ <div class="method-heading">
467
+ <span class="method-name">can_comment?</span><span
468
+ class="method-args">()</span>
469
+ <span class="method-click-advice">click to toggle source</span>
470
+ </div>
471
+
472
+
473
+ <div class="method-description">
474
+
475
+
476
+
477
+
478
+
479
+ <div class="method-source-code" id="can_comment-3F-source">
480
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 101</span>
481
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_comment?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'editability'</span>][<span class="ruby-string">'cancomment'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'editability'</span>] <span class="ruby-keyword">end</span></pre>
482
+ </div><!-- can_comment-3F-source -->
483
+
484
+ </div>
485
+
486
+
487
+
488
+
489
+ </div><!-- can_comment-3F-method -->
490
+
491
+
492
+ <div id="method-i-can_download-3F" class="method-detail ">
493
+
494
+ <div class="method-heading">
495
+ <span class="method-name">can_download?</span><span
496
+ class="method-args">()</span>
497
+ <span class="method-click-advice">click to toggle source</span>
498
+ </div>
499
+
500
+
501
+ <div class="method-description">
502
+
503
+
504
+
505
+
506
+
507
+ <div class="method-source-code" id="can_download-3F-source">
508
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 112</span>
509
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_download?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'candownload'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'candownload'</span>] <span class="ruby-keyword">end</span></pre>
510
+ </div><!-- can_download-3F-source -->
511
+
512
+ </div>
513
+
514
+
515
+
516
+
517
+ </div><!-- can_download-3F-method -->
518
+
519
+
520
+ <div id="method-i-can_everyone_add_meta-3F" class="method-detail ">
521
+
522
+ <div class="method-heading">
523
+ <span class="method-name">can_everyone_add_meta?</span><span
524
+ class="method-args">()</span>
525
+ <span class="method-click-advice">click to toggle source</span>
526
+ </div>
527
+
528
+
529
+ <div class="method-description">
530
+
531
+
532
+
533
+
534
+
535
+ <div class="method-source-code" id="can_everyone_add_meta-3F-source">
536
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 108</span>
537
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_everyone_add_meta?</span>
538
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'publiceditability'</span>][<span class="ruby-string">'canaddmeta'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'publiceditability'</span>]
539
+ <span class="ruby-keyword">end</span></pre>
540
+ </div><!-- can_everyone_add_meta-3F-source -->
541
+
542
+ </div>
543
+
544
+
545
+
546
+
547
+ </div><!-- can_everyone_add_meta-3F-method -->
548
+
549
+
550
+ <div id="method-i-can_everyone_comment-3F" class="method-detail ">
551
+
552
+ <div class="method-heading">
553
+ <span class="method-name">can_everyone_comment?</span><span
554
+ class="method-args">()</span>
555
+ <span class="method-click-advice">click to toggle source</span>
556
+ </div>
557
+
558
+
559
+ <div class="method-description">
560
+
561
+
562
+
563
+
564
+
565
+ <div class="method-source-code" id="can_everyone_comment-3F-source">
566
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 104</span>
567
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_everyone_comment?</span>
568
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'publiceditability'</span>][<span class="ruby-string">'cancomment'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'publiceditability'</span>]
569
+ <span class="ruby-keyword">end</span></pre>
570
+ </div><!-- can_everyone_comment-3F-source -->
571
+
572
+ </div>
573
+
574
+
575
+
576
+
577
+ </div><!-- can_everyone_comment-3F-method -->
578
+
579
+
580
+ <div id="method-i-can_print-3F" class="method-detail ">
581
+
582
+ <div class="method-heading">
583
+ <span class="method-name">can_print?</span><span
584
+ class="method-args">()</span>
585
+ <span class="method-click-advice">click to toggle source</span>
586
+ </div>
587
+
588
+
589
+ <div class="method-description">
590
+
591
+
592
+
593
+
594
+
595
+ <div class="method-source-code" id="can_print-3F-source">
596
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 114</span>
597
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_print?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'canprint'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'canprint'</span>] <span class="ruby-keyword">end</span></pre>
598
+ </div><!-- can_print-3F-source -->
599
+
600
+ </div>
601
+
602
+
603
+
604
+
605
+ </div><!-- can_print-3F-method -->
606
+
607
+
608
+ <div id="method-i-can_share-3F" class="method-detail ">
609
+
610
+ <div class="method-heading">
611
+ <span class="method-name">can_share?</span><span
612
+ class="method-args">()</span>
613
+ <span class="method-click-advice">click to toggle source</span>
614
+ </div>
615
+
616
+
617
+ <div class="method-description">
618
+
619
+
620
+
621
+
622
+
623
+ <div class="method-source-code" id="can_share-3F-source">
624
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 115</span>
625
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">can_share?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'canshare'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'usage'</span>][<span class="ruby-string">'canshare'</span>] <span class="ruby-keyword">end</span></pre>
626
+ </div><!-- can_share-3F-source -->
627
+
628
+ </div>
629
+
630
+
631
+
632
+
633
+ </div><!-- can_share-3F-method -->
634
+
635
+
636
+ <div id="method-i-comments_count" class="method-detail ">
637
+
638
+ <div class="method-heading">
639
+ <span class="method-name">comments_count</span><span
640
+ class="method-args">()</span>
641
+ <span class="method-click-advice">click to toggle source</span>
642
+ </div>
643
+
644
+
645
+ <div class="method-description">
646
+
647
+
648
+
649
+
650
+
651
+ <div class="method-source-code" id="comments_count-source">
652
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 35</span>
653
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">comments_count</span>
654
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'comments_count'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'comments_count'</span>]
655
+ <span class="ruby-keyword">end</span></pre>
656
+ </div><!-- comments_count-source -->
657
+
658
+ </div>
659
+
660
+
661
+
662
+
663
+ </div><!-- comments_count-method -->
664
+
665
+
666
+ <div id="method-i-description" class="method-detail ">
667
+
668
+ <div class="method-heading">
669
+ <span class="method-name">description</span><span
670
+ class="method-args">()</span>
671
+ <span class="method-click-advice">click to toggle source</span>
672
+ </div>
673
+
674
+
675
+ <div class="method-description">
676
+
677
+
678
+
679
+
680
+
681
+ <div class="method-source-code" id="description-source">
682
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 16</span>
683
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">description</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'description'</span>] <span class="ruby-keyword">end</span></pre>
684
+ </div><!-- description-source -->
685
+
686
+ </div>
687
+
688
+
689
+
690
+
691
+ </div><!-- description-method -->
692
+
693
+
694
+ <div id="method-i-exif" class="method-detail ">
695
+
696
+ <div class="method-heading">
697
+ <span class="method-name">exif</span><span
698
+ class="method-args">()</span>
699
+ <span class="method-click-advice">click to toggle source</span>
700
+ </div>
701
+
702
+
703
+ <div class="method-description">
704
+
705
+ <h4 id="method-i-exif-label-Example">Example</h4>
706
+
707
+ <pre class="ruby"><span class="ruby-identifier">photo</span>.<span class="ruby-identifier">exif</span>.<span class="ruby-identifier">get</span>(<span class="ruby-string">'Model'</span>) <span class="ruby-comment"># =&gt; 'Canon PowerShot G12'</span>
708
+
709
+ <span class="ruby-identifier">photo</span>.<span class="ruby-identifier">exif</span>.<span class="ruby-identifier">get</span>(<span class="ruby-string">'X-Resolution'</span>, :<span class="ruby-identifier">data</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'raw'</span>) <span class="ruby-comment"># =&gt; '180'</span>
710
+ <span class="ruby-identifier">photo</span>.<span class="ruby-identifier">exif</span>.<span class="ruby-identifier">get</span>(<span class="ruby-string">'X-Resolution'</span>, :<span class="ruby-identifier">data</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'clean'</span>) <span class="ruby-comment"># =&gt; '180 dpi'</span>
711
+ <span class="ruby-identifier">photo</span>.<span class="ruby-identifier">exif</span>.<span class="ruby-identifier">get</span>(<span class="ruby-string">'X-Resolution'</span>) <span class="ruby-comment"># =&gt; '180 dpi'</span>
712
+ </pre>
713
+
714
+
715
+
716
+ <div class="method-source-code" id="exif-source">
717
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 29</span>
718
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">exif</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'exif'</span>] <span class="ruby-keyword">end</span></pre>
719
+ </div><!-- exif-source -->
720
+
721
+ </div>
722
+
723
+
724
+
725
+
726
+ </div><!-- exif-method -->
727
+
728
+
729
+ <div id="method-i-farm" class="method-detail ">
730
+
731
+ <div class="method-heading">
732
+ <span class="method-name">farm</span><span
733
+ class="method-args">()</span>
734
+ <span class="method-click-advice">click to toggle source</span>
735
+ </div>
736
+
737
+
738
+ <div class="method-description">
739
+
740
+
741
+
742
+
743
+
744
+ <div class="method-source-code" id="farm-source">
745
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 14</span>
746
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">farm</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'farm'</span>] <span class="ruby-keyword">end</span></pre>
747
+ </div><!-- farm-source -->
748
+
749
+ </div>
750
+
751
+
752
+
753
+
754
+ </div><!-- farm-method -->
755
+
756
+
757
+ <div id="method-i-faved-3F" class="method-detail ">
758
+
759
+ <div class="method-heading">
760
+ <span class="method-name">faved?</span><span
761
+ class="method-args">()</span>
762
+ <span class="method-click-advice">click to toggle source</span>
763
+ </div>
764
+
765
+
766
+ <div class="method-description">
767
+
768
+
769
+
770
+
771
+
772
+ <div class="method-source-code" id="faved-3F-source">
773
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 119</span>
774
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">faved?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'is_faved'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'is_faved'</span>] <span class="ruby-keyword">end</span></pre>
775
+ </div><!-- faved-3F-source -->
776
+
777
+ </div>
778
+
779
+
780
+
781
+
782
+ </div><!-- faved-3F-method -->
783
+
784
+
785
+ <div id="method-i-favorite-3F" class="method-detail ">
786
+
787
+ <div class="method-heading">
788
+ <span class="method-name">favorite?</span><span
789
+ class="method-args">()</span>
790
+ <span class="method-click-advice">click to toggle source</span>
791
+ </div>
792
+
793
+
794
+ <div class="method-description">
795
+
796
+
797
+
798
+
799
+
800
+ <div class="method-source-code" id="favorite-3F-source">
801
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 99</span>
802
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">favorite?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'isfavorite'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'isfavorite'</span>] <span class="ruby-keyword">end</span></pre>
803
+ </div><!-- favorite-3F-source -->
804
+
805
+ </div>
806
+
807
+
808
+
809
+
810
+ </div><!-- favorite-3F-method -->
811
+
812
+
813
+ <div id="method-i-geo_permissions" class="method-detail ">
814
+
815
+ <div class="method-heading">
816
+ <span class="method-name">geo_permissions</span><span
817
+ class="method-args">()</span>
818
+ <span class="method-click-advice">click to toggle source</span>
819
+ </div>
820
+
821
+
822
+ <div class="method-description">
823
+
824
+
825
+
826
+
827
+
828
+ <div class="method-source-code" id="geo_permissions-source">
829
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 47</span>
830
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">geo_permissions</span>
831
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'geoperms'</span>]
832
+ <span class="ruby-constant">Visibility</span>.<span class="ruby-identifier">new</span> *[<span class="ruby-ivar">@info</span>[<span class="ruby-string">'geoperms'</span>][<span class="ruby-string">'ispublic'</span>],
833
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'geoperms'</span>][<span class="ruby-string">'isfriend'</span>],
834
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'geoperms'</span>][<span class="ruby-string">'isfamily'</span>],
835
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'geoperms'</span>][<span class="ruby-string">'iscontact'</span>]]
836
+ <span class="ruby-keyword">end</span>
837
+ <span class="ruby-keyword">end</span></pre>
838
+ </div><!-- geo_permissions-source -->
839
+
840
+ </div>
841
+
842
+
843
+
844
+
845
+ </div><!-- geo_permissions-method -->
846
+
847
+
848
+ <div id="method-i-get_exif" class="method-detail ">
849
+
850
+ <div class="method-heading">
851
+ <span class="method-name">get_exif</span><span
852
+ class="method-args">(params = {}, info = nil)</span>
853
+ <span class="method-click-advice">click to toggle source</span>
854
+ </div>
855
+
856
+
857
+ <div class="method-description">
858
+
859
+
860
+
861
+
862
+
863
+ <div class="method-source-code" id="get_exif-source">
864
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 139</span>
865
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_exif</span>(<span class="ruby-identifier">params</span> = {}, <span class="ruby-identifier">info</span> = <span class="ruby-keyword">nil</span>)
866
+ <span class="ruby-identifier">info</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Flickrie</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">get_media_exif</span>(<span class="ruby-identifier">id</span>, <span class="ruby-identifier">params</span>).<span class="ruby-identifier">body</span>[<span class="ruby-string">'photo'</span>]
867
+
868
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'camera'</span>] = <span class="ruby-identifier">info</span>[<span class="ruby-string">'camera'</span>] <span class="ruby-keyword">unless</span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'camera'</span>].<span class="ruby-identifier">empty?</span>
869
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'exif'</span>] = <span class="ruby-constant">Exif</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>[<span class="ruby-string">'exif'</span>]) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'exif'</span>].<span class="ruby-identifier">empty?</span>
870
+
871
+ <span class="ruby-keyword">self</span>
872
+ <span class="ruby-keyword">end</span></pre>
873
+ </div><!-- get_exif-source -->
874
+
875
+ </div>
876
+
877
+
878
+
879
+
880
+ </div><!-- get_exif-method -->
881
+
882
+
883
+ <div id="method-i-get_info" class="method-detail ">
884
+
885
+ <div class="method-heading">
886
+ <span class="method-name">get_info</span><span
887
+ class="method-args">(info = nil)</span>
888
+ <span class="method-click-advice">click to toggle source</span>
889
+ </div>
890
+
891
+
892
+ <div class="method-description">
893
+
894
+
895
+
896
+
897
+
898
+ <div class="method-source-code" id="get_info-source">
899
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 125</span>
900
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_info</span>(<span class="ruby-identifier">info</span> = <span class="ruby-keyword">nil</span>)
901
+ <span class="ruby-identifier">info</span> <span class="ruby-operator">||=</span> <span class="ruby-constant">Flickrie</span>.<span class="ruby-identifier">client</span>.<span class="ruby-identifier">get_media_info</span>(<span class="ruby-identifier">id</span>).<span class="ruby-identifier">body</span>[<span class="ruby-string">'photo'</span>]
902
+
903
+ <span class="ruby-comment"># Fixes</span>
904
+ <span class="ruby-identifier">info</span>[<span class="ruby-string">'title'</span>] = <span class="ruby-identifier">info</span>[<span class="ruby-string">'title'</span>][<span class="ruby-string">'_content'</span>]
905
+ <span class="ruby-identifier">info</span>[<span class="ruby-string">'description'</span>] = <span class="ruby-identifier">info</span>[<span class="ruby-string">'description'</span>][<span class="ruby-string">'_content'</span>]
906
+ <span class="ruby-identifier">info</span>[<span class="ruby-string">'comments_count'</span>] = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'comments'</span>)[<span class="ruby-string">'_content'</span>]
907
+ <span class="ruby-identifier">info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'uploaded'</span>] = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'dateuploaded'</span>)
908
+ <span class="ruby-identifier">info</span>[<span class="ruby-string">'tags'</span>] = <span class="ruby-identifier">info</span>[<span class="ruby-string">'tags'</span>][<span class="ruby-string">'tag'</span>].<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">info</span><span class="ruby-operator">|</span> <span class="ruby-constant">Tag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>) }
909
+
910
+ <span class="ruby-ivar">@info</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">info</span>)
911
+ <span class="ruby-keyword">self</span>
912
+ <span class="ruby-keyword">end</span></pre>
913
+ </div><!-- get_info-source -->
914
+
915
+ </div>
916
+
917
+
918
+
919
+
920
+ </div><!-- get_info-method -->
921
+
922
+
923
+ <div id="method-i-has_people-3F" class="method-detail ">
924
+
925
+ <div class="method-heading">
926
+ <span class="method-name">has_people?</span><span
927
+ class="method-args">()</span>
928
+ <span class="method-click-advice">click to toggle source</span>
929
+ </div>
930
+
931
+
932
+ <div class="method-description">
933
+
934
+
935
+
936
+
937
+
938
+ <div class="method-source-code" id="has_people-3F-source">
939
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 117</span>
940
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">has_people?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'people'</span>][<span class="ruby-string">'haspeople'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'people'</span>] <span class="ruby-keyword">end</span></pre>
941
+ </div><!-- has_people-3F-source -->
942
+
943
+ </div>
944
+
945
+
946
+
947
+
948
+ </div><!-- has_people-3F-method -->
949
+
950
+
951
+ <div id="method-i-id" class="method-detail ">
952
+
953
+ <div class="method-heading">
954
+ <span class="method-name">id</span><span
955
+ class="method-args">()</span>
956
+ <span class="method-click-advice">click to toggle source</span>
957
+ </div>
958
+
959
+
960
+ <div class="method-description">
961
+
962
+
963
+
964
+
965
+
966
+ <div class="method-source-code" id="id-source">
967
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 11</span>
968
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">id</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'id'</span>] <span class="ruby-keyword">end</span></pre>
969
+ </div><!-- id-source -->
970
+
971
+ </div>
972
+
973
+
974
+
975
+
976
+ </div><!-- id-method -->
977
+
978
+
979
+ <div id="method-i-license" class="method-detail ">
980
+
981
+ <div class="method-heading">
982
+ <span class="method-name">license</span><span
983
+ class="method-args">()</span>
984
+ <span class="method-click-advice">click to toggle source</span>
985
+ </div>
986
+
987
+
988
+ <div class="method-description">
989
+
990
+
991
+
992
+
993
+
994
+ <div class="method-source-code" id="license-source">
995
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 57</span>
996
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">license</span>
997
+ <span class="ruby-constant">License</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'license'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'license'</span>]
998
+ <span class="ruby-keyword">end</span></pre>
999
+ </div><!-- license-source -->
1000
+
1001
+ </div>
1002
+
1003
+
1004
+
1005
+
1006
+ </div><!-- license-method -->
1007
+
1008
+
1009
+ <div id="method-i-location" class="method-detail ">
1010
+
1011
+ <div class="method-heading">
1012
+ <span class="method-name">location</span><span
1013
+ class="method-args">()</span>
1014
+ <span class="method-click-advice">click to toggle source</span>
1015
+ </div>
1016
+
1017
+
1018
+ <div class="method-description">
1019
+
1020
+
1021
+
1022
+
1023
+
1024
+ <div class="method-source-code" id="location-source">
1025
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 39</span>
1026
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">location</span>
1027
+ <span class="ruby-constant">Location</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'location'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'location'</span>]
1028
+ <span class="ruby-keyword">end</span></pre>
1029
+ </div><!-- location-source -->
1030
+
1031
+ </div>
1032
+
1033
+
1034
+
1035
+
1036
+ </div><!-- location-method -->
1037
+
1038
+
1039
+ <div id="method-i-machine_tags" class="method-detail ">
1040
+
1041
+ <div class="method-heading">
1042
+ <span class="method-name">machine_tags</span><span
1043
+ class="method-args">()</span>
1044
+ <span class="method-click-advice">click to toggle source</span>
1045
+ </div>
1046
+
1047
+
1048
+ <div class="method-description">
1049
+
1050
+
1051
+
1052
+
1053
+
1054
+ <div class="method-source-code" id="machine_tags-source">
1055
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 43</span>
1056
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">machine_tags</span>
1057
+ <span class="ruby-identifier">tags</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">tag</span><span class="ruby-operator">|</span> <span class="ruby-identifier">tag</span>.<span class="ruby-identifier">machine_tag?</span> } <span class="ruby-keyword">if</span> <span class="ruby-identifier">tags</span>
1058
+ <span class="ruby-keyword">end</span></pre>
1059
+ </div><!-- machine_tags-source -->
1060
+
1061
+ </div>
1062
+
1063
+
1064
+
1065
+
1066
+ </div><!-- machine_tags-method -->
1067
+
1068
+
1069
+ <div id="method-i-media_status" class="method-detail ">
1070
+
1071
+ <div class="method-heading">
1072
+ <span class="method-name">media_status</span><span
1073
+ class="method-args">()</span>
1074
+ <span class="method-click-advice">click to toggle source</span>
1075
+ </div>
1076
+
1077
+
1078
+ <div class="method-description">
1079
+
1080
+
1081
+
1082
+
1083
+
1084
+ <div class="method-source-code" id="media_status-source">
1085
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 18</span>
1086
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">media_status</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'media_status'</span>] <span class="ruby-keyword">end</span></pre>
1087
+ </div><!-- media_status-source -->
1088
+
1089
+ </div>
1090
+
1091
+
1092
+
1093
+
1094
+ </div><!-- media_status-method -->
1095
+
1096
+
1097
+ <div id="method-i-moderate-3F" class="method-detail ">
1098
+
1099
+ <div class="method-heading">
1100
+ <span class="method-name">moderate?</span><span
1101
+ class="method-args">()</span>
1102
+ <span class="method-click-advice">click to toggle source</span>
1103
+ </div>
1104
+
1105
+
1106
+ <div class="method-description">
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+ <div class="method-source-code" id="moderate-3F-source">
1113
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 77</span>
1114
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">moderate?</span>; <span class="ruby-identifier">safety_level</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">safety_level</span> <span class="ruby-keyword">end</span></pre>
1115
+ </div><!-- moderate-3F-source -->
1116
+
1117
+ </div>
1118
+
1119
+
1120
+
1121
+
1122
+ </div><!-- moderate-3F-method -->
1123
+
1124
+
1125
+ <div id="method-i-notes" class="method-detail ">
1126
+
1127
+ <div class="method-heading">
1128
+ <span class="method-name">notes</span><span
1129
+ class="method-args">()</span>
1130
+ <span class="method-click-advice">click to toggle source</span>
1131
+ </div>
1132
+
1133
+
1134
+ <div class="method-description">
1135
+
1136
+
1137
+
1138
+
1139
+
1140
+ <div class="method-source-code" id="notes-source">
1141
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 121</span>
1142
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">notes</span>
1143
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'notes'</span>][<span class="ruby-string">'note'</span>].<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">hash</span><span class="ruby-operator">|</span> <span class="ruby-constant">Note</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">hash</span>) } <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'notes'</span>]
1144
+ <span class="ruby-keyword">end</span></pre>
1145
+ </div><!-- notes-source -->
1146
+
1147
+ </div>
1148
+
1149
+
1150
+
1151
+
1152
+ </div><!-- notes-method -->
1153
+
1154
+
1155
+ <div id="method-i-owner" class="method-detail ">
1156
+
1157
+ <div class="method-heading">
1158
+ <span class="method-name">owner</span><span
1159
+ class="method-args">()</span>
1160
+ <span class="method-click-advice">click to toggle source</span>
1161
+ </div>
1162
+
1163
+
1164
+ <div class="method-description">
1165
+
1166
+
1167
+
1168
+
1169
+
1170
+ <div class="method-source-code" id="owner-source">
1171
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 70</span>
1172
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">owner</span>
1173
+ <span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'owner'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'owner'</span>]
1174
+ <span class="ruby-keyword">end</span></pre>
1175
+ </div><!-- owner-source -->
1176
+
1177
+ </div>
1178
+
1179
+
1180
+
1181
+
1182
+ </div><!-- owner-method -->
1183
+
1184
+
1185
+ <div id="method-i-path_alias" class="method-detail ">
1186
+
1187
+ <div class="method-heading">
1188
+ <span class="method-name">path_alias</span><span
1189
+ class="method-args">()</span>
1190
+ <span class="method-click-advice">click to toggle source</span>
1191
+ </div>
1192
+
1193
+
1194
+ <div class="method-description">
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+ <div class="method-source-code" id="path_alias-source">
1201
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 19</span>
1202
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">path_alias</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'pathalias'</span>] <span class="ruby-keyword">end</span></pre>
1203
+ </div><!-- path_alias-source -->
1204
+
1205
+ </div>
1206
+
1207
+
1208
+
1209
+
1210
+ </div><!-- path_alias-method -->
1211
+
1212
+
1213
+ <div id="method-i-posted_at" class="method-detail ">
1214
+
1215
+ <div class="method-heading">
1216
+ <span class="method-name">posted_at</span><span
1217
+ class="method-args">()</span>
1218
+ <span class="method-click-advice">click to toggle source</span>
1219
+ </div>
1220
+
1221
+
1222
+ <div class="method-description">
1223
+
1224
+
1225
+
1226
+
1227
+
1228
+ <div class="method-source-code" id="posted_at-source">
1229
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 61</span>
1230
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">posted_at</span>; <span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'posted'</span>].<span class="ruby-identifier">to_i</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'posted'</span>] <span class="ruby-keyword">end</span></pre>
1231
+ </div><!-- posted_at-source -->
1232
+
1233
+ </div>
1234
+
1235
+
1236
+
1237
+
1238
+ </div><!-- posted_at-method -->
1239
+
1240
+
1241
+ <div id="method-i-primary-3F" class="method-detail ">
1242
+
1243
+ <div class="method-heading">
1244
+ <span class="method-name">primary?</span><span
1245
+ class="method-args">()</span>
1246
+ <span class="method-click-advice">click to toggle source</span>
1247
+ </div>
1248
+
1249
+
1250
+ <div class="method-description">
1251
+
1252
+
1253
+
1254
+
1255
+
1256
+ <div class="method-source-code" id="primary-3F-source">
1257
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 97</span>
1258
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">primary?</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'isprimary'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'isprimary'</span>] <span class="ruby-keyword">end</span></pre>
1259
+ </div><!-- primary-3F-source -->
1260
+
1261
+ </div>
1262
+
1263
+
1264
+
1265
+
1266
+ </div><!-- primary-3F-method -->
1267
+
1268
+
1269
+ <div id="method-i-restricted-3F" class="method-detail ">
1270
+
1271
+ <div class="method-heading">
1272
+ <span class="method-name">restricted?</span><span
1273
+ class="method-args">()</span>
1274
+ <span class="method-click-advice">click to toggle source</span>
1275
+ </div>
1276
+
1277
+
1278
+ <div class="method-description">
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+ <div class="method-source-code" id="restricted-3F-source">
1285
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 78</span>
1286
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">restricted?</span>; <span class="ruby-identifier">safety_level</span> <span class="ruby-operator">==</span> <span class="ruby-value">3</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">safety_level</span> <span class="ruby-keyword">end</span></pre>
1287
+ </div><!-- restricted-3F-source -->
1288
+
1289
+ </div>
1290
+
1291
+
1292
+
1293
+
1294
+ </div><!-- restricted-3F-method -->
1295
+
1296
+
1297
+ <div id="method-i-safe-3F" class="method-detail ">
1298
+
1299
+ <div class="method-heading">
1300
+ <span class="method-name">safe?</span><span
1301
+ class="method-args">()</span>
1302
+ <span class="method-click-advice">click to toggle source</span>
1303
+ </div>
1304
+
1305
+
1306
+ <div class="method-description">
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+ <div class="method-source-code" id="safe-3F-source">
1313
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 76</span>
1314
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">safe?</span>; <span class="ruby-identifier">safety_level</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">safety_level</span> <span class="ruby-keyword">end</span></pre>
1315
+ </div><!-- safe-3F-source -->
1316
+
1317
+ </div>
1318
+
1319
+
1320
+
1321
+
1322
+ </div><!-- safe-3F-method -->
1323
+
1324
+
1325
+ <div id="method-i-safety_level" class="method-detail ">
1326
+
1327
+ <div class="method-heading">
1328
+ <span class="method-name">safety_level</span><span
1329
+ class="method-args">()</span>
1330
+ <span class="method-click-advice">click to toggle source</span>
1331
+ </div>
1332
+
1333
+
1334
+ <div class="method-description">
1335
+
1336
+
1337
+
1338
+
1339
+
1340
+ <div class="method-source-code" id="safety_level-source">
1341
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 74</span>
1342
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">safety_level</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'safety_level'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'safety_level'</span>] <span class="ruby-keyword">end</span></pre>
1343
+ </div><!-- safety_level-source -->
1344
+
1345
+ </div>
1346
+
1347
+
1348
+
1349
+
1350
+ </div><!-- safety_level-method -->
1351
+
1352
+
1353
+ <div id="method-i-secret" class="method-detail ">
1354
+
1355
+ <div class="method-heading">
1356
+ <span class="method-name">secret</span><span
1357
+ class="method-args">()</span>
1358
+ <span class="method-click-advice">click to toggle source</span>
1359
+ </div>
1360
+
1361
+
1362
+ <div class="method-description">
1363
+
1364
+
1365
+
1366
+
1367
+
1368
+ <div class="method-source-code" id="secret-source">
1369
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 12</span>
1370
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">secret</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'secret'</span>] <span class="ruby-keyword">end</span></pre>
1371
+ </div><!-- secret-source -->
1372
+
1373
+ </div>
1374
+
1375
+
1376
+
1377
+
1378
+ </div><!-- secret-method -->
1379
+
1380
+
1381
+ <div id="method-i-server" class="method-detail ">
1382
+
1383
+ <div class="method-heading">
1384
+ <span class="method-name">server</span><span
1385
+ class="method-args">()</span>
1386
+ <span class="method-click-advice">click to toggle source</span>
1387
+ </div>
1388
+
1389
+
1390
+ <div class="method-description">
1391
+
1392
+
1393
+
1394
+
1395
+
1396
+ <div class="method-source-code" id="server-source">
1397
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 13</span>
1398
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">server</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'server'</span>] <span class="ruby-keyword">end</span></pre>
1399
+ </div><!-- server-source -->
1400
+
1401
+ </div>
1402
+
1403
+
1404
+
1405
+
1406
+ </div><!-- server-method -->
1407
+
1408
+
1409
+ <div id="method-i-tags" class="method-detail ">
1410
+
1411
+ <div class="method-heading">
1412
+ <span class="method-name">tags</span><span
1413
+ class="method-args">()</span>
1414
+ <span class="method-click-advice">click to toggle source</span>
1415
+ </div>
1416
+
1417
+
1418
+ <div class="method-description">
1419
+
1420
+
1421
+
1422
+
1423
+
1424
+ <div class="method-source-code" id="tags-source">
1425
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 17</span>
1426
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">tags</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'tags'</span>] <span class="ruby-keyword">end</span></pre>
1427
+ </div><!-- tags-source -->
1428
+
1429
+ </div>
1430
+
1431
+
1432
+
1433
+
1434
+ </div><!-- tags-method -->
1435
+
1436
+
1437
+ <div id="method-i-taken_at" class="method-detail ">
1438
+
1439
+ <div class="method-heading">
1440
+ <span class="method-name">taken_at</span><span
1441
+ class="method-args">()</span>
1442
+ <span class="method-click-advice">click to toggle source</span>
1443
+ </div>
1444
+
1445
+
1446
+ <div class="method-description">
1447
+
1448
+
1449
+
1450
+
1451
+
1452
+ <div class="method-source-code" id="taken_at-source">
1453
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 64</span>
1454
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">taken_at</span>; <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'taken'</span>]).<span class="ruby-identifier">to_time</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'taken'</span>] <span class="ruby-keyword">end</span></pre>
1455
+ </div><!-- taken_at-source -->
1456
+
1457
+ </div>
1458
+
1459
+
1460
+
1461
+
1462
+ </div><!-- taken_at-method -->
1463
+
1464
+
1465
+ <div id="method-i-taken_at_granularity" class="method-detail ">
1466
+
1467
+ <div class="method-heading">
1468
+ <span class="method-name">taken_at_granularity</span><span
1469
+ class="method-args">()</span>
1470
+ <span class="method-click-advice">click to toggle source</span>
1471
+ </div>
1472
+
1473
+
1474
+ <div class="method-description">
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+ <div class="method-source-code" id="taken_at_granularity-source">
1481
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 66</span>
1482
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">taken_at_granularity</span>
1483
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'takengranularity'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'takengranularity'</span>]
1484
+ <span class="ruby-keyword">end</span></pre>
1485
+ </div><!-- taken_at_granularity-source -->
1486
+
1487
+ </div>
1488
+
1489
+
1490
+
1491
+
1492
+ </div><!-- taken_at_granularity-method -->
1493
+
1494
+
1495
+ <div id="method-i-title" class="method-detail ">
1496
+
1497
+ <div class="method-heading">
1498
+ <span class="method-name">title</span><span
1499
+ class="method-args">()</span>
1500
+ <span class="method-click-advice">click to toggle source</span>
1501
+ </div>
1502
+
1503
+
1504
+ <div class="method-description">
1505
+
1506
+
1507
+
1508
+
1509
+
1510
+ <div class="method-source-code" id="title-source">
1511
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 15</span>
1512
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">title</span>; <span class="ruby-ivar">@info</span>[<span class="ruby-string">'title'</span>] <span class="ruby-keyword">end</span></pre>
1513
+ </div><!-- title-source -->
1514
+
1515
+ </div>
1516
+
1517
+
1518
+
1519
+
1520
+ </div><!-- title-method -->
1521
+
1522
+
1523
+ <div id="method-i-updated_at" class="method-detail ">
1524
+
1525
+ <div class="method-heading">
1526
+ <span class="method-name">updated_at</span><span
1527
+ class="method-args">()</span>
1528
+ <span class="method-click-advice">click to toggle source</span>
1529
+ </div>
1530
+
1531
+
1532
+ <div class="method-description">
1533
+
1534
+
1535
+
1536
+
1537
+
1538
+ <div class="method-source-code" id="updated_at-source">
1539
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 63</span>
1540
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">updated_at</span>; <span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'lastupdate'</span>].<span class="ruby-identifier">to_i</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'lastupdate'</span>] <span class="ruby-keyword">end</span></pre>
1541
+ </div><!-- updated_at-source -->
1542
+
1543
+ </div>
1544
+
1545
+
1546
+
1547
+
1548
+ </div><!-- updated_at-method -->
1549
+
1550
+
1551
+ <div id="method-i-uploaded_at" class="method-detail ">
1552
+
1553
+ <div class="method-heading">
1554
+ <span class="method-name">uploaded_at</span><span
1555
+ class="method-args">()</span>
1556
+ <span class="method-click-advice">click to toggle source</span>
1557
+ </div>
1558
+
1559
+
1560
+ <div class="method-description">
1561
+
1562
+
1563
+
1564
+
1565
+
1566
+ <div class="method-source-code" id="uploaded_at-source">
1567
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 62</span>
1568
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">uploaded_at</span>; <span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'uploaded'</span>].<span class="ruby-identifier">to_i</span>) <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'dates'</span>][<span class="ruby-string">'uploaded'</span>] <span class="ruby-keyword">end</span></pre>
1569
+ </div><!-- uploaded_at-source -->
1570
+
1571
+ </div>
1572
+
1573
+
1574
+
1575
+
1576
+ </div><!-- uploaded_at-method -->
1577
+
1578
+
1579
+ <div id="method-i-url" class="method-detail ">
1580
+
1581
+ <div class="method-heading">
1582
+ <span class="method-name">url</span><span
1583
+ class="method-args">()</span>
1584
+ <span class="method-click-advice">click to toggle source</span>
1585
+ </div>
1586
+
1587
+
1588
+ <div class="method-description">
1589
+
1590
+
1591
+
1592
+
1593
+
1594
+ <div class="method-source-code" id="url-source">
1595
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 80</span>
1596
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">url</span>
1597
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">owner</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">id</span>
1598
+ <span class="ruby-node">&quot;http://www.flickr.com/photos/#{owner.nsid}/#{id}&quot;</span>
1599
+ <span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'url'</span>]
1600
+ <span class="ruby-string">&quot;http://www.flickr.com&quot;</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'url'</span>]
1601
+ <span class="ruby-keyword">end</span>
1602
+ <span class="ruby-keyword">end</span></pre>
1603
+ </div><!-- url-source -->
1604
+
1605
+ </div>
1606
+
1607
+
1608
+
1609
+
1610
+ </div><!-- url-method -->
1611
+
1612
+
1613
+ <div id="method-i-views_count" class="method-detail ">
1614
+
1615
+ <div class="method-heading">
1616
+ <span class="method-name">views_count</span><span
1617
+ class="method-args">()</span>
1618
+ <span class="method-click-advice">click to toggle source</span>
1619
+ </div>
1620
+
1621
+
1622
+ <div class="method-description">
1623
+
1624
+
1625
+
1626
+
1627
+
1628
+ <div class="method-source-code" id="views_count-source">
1629
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 31</span>
1630
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">views_count</span>
1631
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'views'</span>].<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'views'</span>]
1632
+ <span class="ruby-keyword">end</span></pre>
1633
+ </div><!-- views_count-source -->
1634
+
1635
+ </div>
1636
+
1637
+
1638
+
1639
+
1640
+ </div><!-- views_count-method -->
1641
+
1642
+
1643
+ <div id="method-i-visibility" class="method-detail ">
1644
+
1645
+ <div class="method-heading">
1646
+ <span class="method-name">visibility</span><span
1647
+ class="method-args">()</span>
1648
+ <span class="method-click-advice">click to toggle source</span>
1649
+ </div>
1650
+
1651
+
1652
+ <div class="method-description">
1653
+
1654
+
1655
+
1656
+
1657
+
1658
+ <div class="method-source-code" id="visibility-source">
1659
+ <pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 88</span>
1660
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">visibility</span>
1661
+ <span class="ruby-keyword">if</span> <span class="ruby-ivar">@info</span>[<span class="ruby-string">'visibility'</span>]
1662
+ <span class="ruby-constant">Visibility</span>.<span class="ruby-identifier">new</span> *[<span class="ruby-ivar">@info</span>[<span class="ruby-string">'visibility'</span>][<span class="ruby-string">'ispublic'</span>],
1663
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'visibility'</span>][<span class="ruby-string">'isfriend'</span>],
1664
+ <span class="ruby-ivar">@info</span>[<span class="ruby-string">'visibility'</span>][<span class="ruby-string">'isfamily'</span>]]
1665
+ <span class="ruby-keyword">end</span>
1666
+ <span class="ruby-keyword">end</span></pre>
1667
+ </div><!-- visibility-source -->
1668
+
1669
+ </div>
1670
+
1671
+
1672
+
1673
+
1674
+ </div><!-- visibility-method -->
1675
+
1676
+
1677
+ </section><!-- public-instance-method-details -->
1678
+
1679
+ </section><!-- 5Buntitled-5D -->
1680
+
1681
+ </div><!-- documentation -->
1682
+
1683
+
1684
+ <footer id="validator-badges">
1685
+ <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
1686
+ <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
1687
+ <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
1688
+ </footer>
1689
+