flickrie 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/lib/flickrie/version.rb +1 -1
- metadata +9 -78
- data/doc/Flickrie.html +0 -364
- data/doc/Flickrie/.DS_Store +0 -0
- data/doc/Flickrie/ApiMethods.html +0 -1692
- data/doc/Flickrie/Client.html +0 -914
- data/doc/Flickrie/Error.html +0 -187
- data/doc/Flickrie/Instance.html +0 -344
- data/doc/Flickrie/License.html +0 -288
- data/doc/Flickrie/Location.html +0 -233
- data/doc/Flickrie/Media.html +0 -1689
- data/doc/Flickrie/Media/ClassMethods.html +0 -509
- data/doc/Flickrie/Media/Count.html +0 -314
- data/doc/Flickrie/Media/Exif.html +0 -276
- data/doc/Flickrie/Media/Note.html +0 -362
- data/doc/Flickrie/Media/Tag.html +0 -425
- data/doc/Flickrie/Media/Ticket.html +0 -425
- data/doc/Flickrie/Media/Visibility.html +0 -359
- data/doc/Flickrie/MediaCount.html +0 -314
- data/doc/Flickrie/OAuth.html +0 -334
- data/doc/Flickrie/OAuth/AccessToken.html +0 -187
- data/doc/Flickrie/OAuth/Error.html +0 -187
- data/doc/Flickrie/OAuth/ParseResponseParams.html +0 -187
- data/doc/Flickrie/OAuth/RequestToken.html +0 -241
- data/doc/Flickrie/OAuth/StatusCheck.html +0 -235
- data/doc/Flickrie/OAuth/Token.html +0 -227
- data/doc/Flickrie/OAuthStatusCheck.html +0 -236
- data/doc/Flickrie/Photo.html +0 -913
- data/doc/Flickrie/Set.html +0 -998
- data/doc/Flickrie/StatusCheck.html +0 -235
- data/doc/Flickrie/UploadClient.html +0 -284
- data/doc/Flickrie/UploadStatusCheck.html +0 -235
- data/doc/Flickrie/User.html +0 -875
- data/doc/Flickrie/Video.html +0 -601
- data/doc/Gemfile.html +0 -163
- data/doc/LICENSE.html +0 -165
- data/doc/Rakefile.html +0 -168
- data/doc/created.rid +0 -25
- data/doc/images/add.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +0 -140
- data/doc/js/darkfish.js +0 -153
- data/doc/js/jquery.js +0 -18
- data/doc/js/navigation.js +0 -142
- data/doc/js/search.js +0 -94
- data/doc/js/search_index.js +0 -1
- data/doc/js/searcher.js +0 -228
- data/doc/rdoc.css +0 -543
- data/doc/table_of_contents.html +0 -642
@@ -1,509 +0,0 @@
|
|
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::ClassMethods - 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.rb
|
51
|
-
</ul>
|
52
|
-
</nav>
|
53
|
-
|
54
|
-
|
55
|
-
</div>
|
56
|
-
|
57
|
-
<div id="class-metadata">
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
<!-- Method Quickref -->
|
62
|
-
<nav id="method-list-section" class="section">
|
63
|
-
<h3 class="section-header">Methods</h3>
|
64
|
-
|
65
|
-
<ul class="link-list">
|
66
|
-
|
67
|
-
<li><a href="#method-i-from_contacts">#from_contacts</a>
|
68
|
-
|
69
|
-
<li><a href="#method-i-from_context">#from_context</a>
|
70
|
-
|
71
|
-
<li><a href="#method-i-from_exif">#from_exif</a>
|
72
|
-
|
73
|
-
<li><a href="#method-i-from_info">#from_info</a>
|
74
|
-
|
75
|
-
<li><a href="#method-i-from_search">#from_search</a>
|
76
|
-
|
77
|
-
<li><a href="#method-i-from_set">#from_set</a>
|
78
|
-
|
79
|
-
<li><a href="#method-i-from_sizes">#from_sizes</a>
|
80
|
-
|
81
|
-
<li><a href="#method-i-from_user">#from_user</a>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
</nav>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<div id="project-metadata">
|
89
|
-
<nav id="fileindex-section" class="section project-section">
|
90
|
-
<h3 class="section-header">Pages</h3>
|
91
|
-
|
92
|
-
<ul>
|
93
|
-
|
94
|
-
<li class="file"><a href="../../Gemfile.html">Gemfile</a>
|
95
|
-
|
96
|
-
<li class="file"><a href="../../LICENSE.html">LICENSE</a>
|
97
|
-
|
98
|
-
<li class="file"><a href="../../Rakefile.html">Rakefile</a>
|
99
|
-
|
100
|
-
</ul>
|
101
|
-
</nav>
|
102
|
-
|
103
|
-
<nav id="classindex-section" class="section project-section">
|
104
|
-
<h3 class="section-header">Class and Module Index</h3>
|
105
|
-
|
106
|
-
<ul class="link-list">
|
107
|
-
|
108
|
-
<li><a href="../../Flickrie.html">Flickrie</a>
|
109
|
-
|
110
|
-
<li><a href="../../Flickrie/ApiMethods.html">Flickrie::ApiMethods</a>
|
111
|
-
|
112
|
-
<li><a href="../../Flickrie/Client.html">Flickrie::Client</a>
|
113
|
-
|
114
|
-
<li><a href="../../Flickrie/Error.html">Flickrie::Error</a>
|
115
|
-
|
116
|
-
<li><a href="../../Flickrie/Instance.html">Flickrie::Instance</a>
|
117
|
-
|
118
|
-
<li><a href="../../Flickrie/License.html">Flickrie::License</a>
|
119
|
-
|
120
|
-
<li><a href="../../Flickrie/Location.html">Flickrie::Location</a>
|
121
|
-
|
122
|
-
<li><a href="../../Flickrie/Media.html">Flickrie::Media</a>
|
123
|
-
|
124
|
-
<li><a href="../../Flickrie/Media/ClassMethods.html">Flickrie::Media::ClassMethods</a>
|
125
|
-
|
126
|
-
<li><a href="../../Flickrie/Media/Exif.html">Flickrie::Media::Exif</a>
|
127
|
-
|
128
|
-
<li><a href="../../Flickrie/Media/Note.html">Flickrie::Media::Note</a>
|
129
|
-
|
130
|
-
<li><a href="../../Flickrie/Media/Tag.html">Flickrie::Media::Tag</a>
|
131
|
-
|
132
|
-
<li><a href="../../Flickrie/Media/Ticket.html">Flickrie::Media::Ticket</a>
|
133
|
-
|
134
|
-
<li><a href="../../Flickrie/Media/Visibility.html">Flickrie::Media::Visibility</a>
|
135
|
-
|
136
|
-
<li><a href="../../Flickrie/MediaCount.html">Flickrie::MediaCount</a>
|
137
|
-
|
138
|
-
<li><a href="../../Flickrie/OAuth.html">Flickrie::OAuth</a>
|
139
|
-
|
140
|
-
<li><a href="../../Flickrie/OAuth/AccessToken.html">Flickrie::OAuth::AccessToken</a>
|
141
|
-
|
142
|
-
<li><a href="../../Flickrie/OAuth/Error.html">Flickrie::OAuth::Error</a>
|
143
|
-
|
144
|
-
<li><a href="../../Flickrie/OAuth/ParseResponseParams.html">Flickrie::OAuth::ParseResponseParams</a>
|
145
|
-
|
146
|
-
<li><a href="../../Flickrie/OAuth/RequestToken.html">Flickrie::OAuth::RequestToken</a>
|
147
|
-
|
148
|
-
<li><a href="../../Flickrie/OAuth/StatusCheck.html">Flickrie::OAuth::StatusCheck</a>
|
149
|
-
|
150
|
-
<li><a href="../../Flickrie/OAuth/Token.html">Flickrie::OAuth::Token</a>
|
151
|
-
|
152
|
-
<li><a href="../../Flickrie/OAuthStatusCheck.html">Flickrie::OAuthStatusCheck</a>
|
153
|
-
|
154
|
-
<li><a href="../../Flickrie/Photo.html">Flickrie::Photo</a>
|
155
|
-
|
156
|
-
<li><a href="../../Flickrie/Set.html">Flickrie::Set</a>
|
157
|
-
|
158
|
-
<li><a href="../../Flickrie/StatusCheck.html">Flickrie::StatusCheck</a>
|
159
|
-
|
160
|
-
<li><a href="../../Flickrie/UploadClient.html">Flickrie::UploadClient</a>
|
161
|
-
|
162
|
-
<li><a href="../../Flickrie/UploadStatusCheck.html">Flickrie::UploadStatusCheck</a>
|
163
|
-
|
164
|
-
<li><a href="../../Flickrie/User.html">Flickrie::User</a>
|
165
|
-
|
166
|
-
<li><a href="../../Flickrie/Video.html">Flickrie::Video</a>
|
167
|
-
|
168
|
-
</ul>
|
169
|
-
</nav>
|
170
|
-
|
171
|
-
</div>
|
172
|
-
</nav>
|
173
|
-
|
174
|
-
<div id="documentation">
|
175
|
-
<h1 class="module">module Flickrie::Media::ClassMethods</h1>
|
176
|
-
|
177
|
-
<div id="description" class="description">
|
178
|
-
|
179
|
-
</div><!-- description -->
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
<!-- Methods -->
|
194
|
-
|
195
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
196
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
197
|
-
|
198
|
-
|
199
|
-
<div id="method-i-from_contacts" class="method-detail ">
|
200
|
-
|
201
|
-
<div class="method-heading">
|
202
|
-
<span class="method-name">from_contacts</span><span
|
203
|
-
class="method-args">(hash)</span>
|
204
|
-
<span class="method-click-advice">click to toggle source</span>
|
205
|
-
</div>
|
206
|
-
|
207
|
-
|
208
|
-
<div class="method-description">
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
<div class="method-source-code" id="from_contacts-source">
|
215
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 219</span>
|
216
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_contacts</span>(<span class="ruby-identifier">hash</span>)
|
217
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-string">'photo'</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">info</span><span class="ruby-operator">|</span>
|
218
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'ownername'</span>] = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'username'</span>)
|
219
|
-
<span class="ruby-keyword">end</span>
|
220
|
-
|
221
|
-
<span class="ruby-identifier">from_user</span>(<span class="ruby-identifier">hash</span>)
|
222
|
-
<span class="ruby-keyword">end</span></pre>
|
223
|
-
</div><!-- from_contacts-source -->
|
224
|
-
|
225
|
-
</div>
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
</div><!-- from_contacts-method -->
|
231
|
-
|
232
|
-
|
233
|
-
<div id="method-i-from_context" class="method-detail ">
|
234
|
-
|
235
|
-
<div class="method-heading">
|
236
|
-
<span class="method-name">from_context</span><span
|
237
|
-
class="method-args">(hash)</span>
|
238
|
-
<span class="method-click-advice">click to toggle source</span>
|
239
|
-
</div>
|
240
|
-
|
241
|
-
|
242
|
-
<div class="method-description">
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
<div class="method-source-code" id="from_context-source">
|
249
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 227</span>
|
250
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_context</span>(<span class="ruby-identifier">hash</span>)
|
251
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-string">'count'</span>] = <span class="ruby-identifier">hash</span>[<span class="ruby-string">'count'</span>][<span class="ruby-string">'_content'</span>].<span class="ruby-identifier">to_i</span>
|
252
|
-
|
253
|
-
[<span class="ruby-string">'prevphoto'</span>, <span class="ruby-string">'nextphoto'</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">media</span><span class="ruby-operator">|</span>
|
254
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">media</span>][<span class="ruby-string">'media'</span>].<span class="ruby-identifier">nil?</span>
|
255
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">media</span>] = <span class="ruby-identifier">new</span>(<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">media</span>])
|
256
|
-
<span class="ruby-keyword">else</span>
|
257
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-identifier">media</span>] = <span class="ruby-keyword">nil</span>
|
258
|
-
<span class="ruby-keyword">end</span>
|
259
|
-
<span class="ruby-keyword">end</span>
|
260
|
-
|
261
|
-
<span class="ruby-identifier">hash</span>
|
262
|
-
<span class="ruby-keyword">end</span></pre>
|
263
|
-
</div><!-- from_context-source -->
|
264
|
-
|
265
|
-
</div>
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
</div><!-- from_context-method -->
|
271
|
-
|
272
|
-
|
273
|
-
<div id="method-i-from_exif" class="method-detail ">
|
274
|
-
|
275
|
-
<div class="method-heading">
|
276
|
-
<span class="method-name">from_exif</span><span
|
277
|
-
class="method-args">(info)</span>
|
278
|
-
<span class="method-click-advice">click to toggle source</span>
|
279
|
-
</div>
|
280
|
-
|
281
|
-
|
282
|
-
<div class="method-description">
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
<div class="method-source-code" id="from_exif-source">
|
289
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 241</span>
|
290
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_exif</span>(<span class="ruby-identifier">info</span>)
|
291
|
-
<span class="ruby-identifier">new</span>.<span class="ruby-identifier">get_exif</span>({}, <span class="ruby-identifier">info</span>)
|
292
|
-
<span class="ruby-keyword">end</span></pre>
|
293
|
-
</div><!-- from_exif-source -->
|
294
|
-
|
295
|
-
</div>
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
</div><!-- from_exif-method -->
|
301
|
-
|
302
|
-
|
303
|
-
<div id="method-i-from_info" class="method-detail ">
|
304
|
-
|
305
|
-
<div class="method-heading">
|
306
|
-
<span class="method-name">from_info</span><span
|
307
|
-
class="method-args">(info)</span>
|
308
|
-
<span class="method-click-advice">click to toggle source</span>
|
309
|
-
</div>
|
310
|
-
|
311
|
-
|
312
|
-
<div class="method-description">
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
<div class="method-source-code" id="from_info-source">
|
319
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 193</span>
|
320
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_info</span>(<span class="ruby-identifier">info</span>)
|
321
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-string">'media'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'media'</span>]).<span class="ruby-identifier">get_info</span>(<span class="ruby-identifier">info</span>)
|
322
|
-
<span class="ruby-keyword">end</span></pre>
|
323
|
-
</div><!-- from_info-source -->
|
324
|
-
|
325
|
-
</div>
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
</div><!-- from_info-method -->
|
331
|
-
|
332
|
-
|
333
|
-
<div id="method-i-from_search" class="method-detail ">
|
334
|
-
|
335
|
-
<div class="method-heading">
|
336
|
-
<span class="method-name">from_search</span><span
|
337
|
-
class="method-args">(hash)</span>
|
338
|
-
<span class="method-click-advice">click to toggle source</span>
|
339
|
-
</div>
|
340
|
-
|
341
|
-
|
342
|
-
<div class="method-description">
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
<div class="method-source-code" id="from_search-source">
|
349
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 215</span>
|
350
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_search</span>(<span class="ruby-identifier">hash</span>)
|
351
|
-
<span class="ruby-identifier">from_user</span>(<span class="ruby-identifier">hash</span>)
|
352
|
-
<span class="ruby-keyword">end</span></pre>
|
353
|
-
</div><!-- from_search-source -->
|
354
|
-
|
355
|
-
</div>
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
</div><!-- from_search-method -->
|
361
|
-
|
362
|
-
|
363
|
-
<div id="method-i-from_set" class="method-detail ">
|
364
|
-
|
365
|
-
<div class="method-heading">
|
366
|
-
<span class="method-name">from_set</span><span
|
367
|
-
class="method-args">(hash)</span>
|
368
|
-
<span class="method-click-advice">click to toggle source</span>
|
369
|
-
</div>
|
370
|
-
|
371
|
-
|
372
|
-
<div class="method-description">
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
378
|
-
<div class="method-source-code" id="from_set-source">
|
379
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 155</span>
|
380
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_set</span>(<span class="ruby-identifier">hash</span>)
|
381
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-string">'photo'</span>].<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">info</span><span class="ruby-operator">|</span>
|
382
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'owner'</span>] = {
|
383
|
-
<span class="ruby-string">'nsid'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">hash</span>[<span class="ruby-string">'owner'</span>],
|
384
|
-
<span class="ruby-string">'username'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">hash</span>[<span class="ruby-string">'ownername'</span>],
|
385
|
-
<span class="ruby-string">'iconserver'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'iconserver'</span>),
|
386
|
-
<span class="ruby-string">'iconfarm'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'iconfarm'</span>)
|
387
|
-
}
|
388
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'place_id'</span>]
|
389
|
-
<span class="ruby-identifier">geo_info</span> = <span class="ruby-node">%w[latitude longitude accuracy context place_id woeid]</span>
|
390
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'location'</span>] = <span class="ruby-identifier">geo_info</span>.<span class="ruby-identifier">inject</span>({}) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">location</span>, <span class="ruby-identifier">geo</span><span class="ruby-operator">|</span>
|
391
|
-
<span class="ruby-identifier">location</span>.<span class="ruby-identifier">update</span>(<span class="ruby-identifier">geo</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">geo</span>))
|
392
|
-
<span class="ruby-keyword">end</span>
|
393
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'geoperms'</span>] = {
|
394
|
-
<span class="ruby-string">'isfamily'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'geo_is_family'</span>],
|
395
|
-
<span class="ruby-string">'isfriend'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'geo_is_friend'</span>],
|
396
|
-
<span class="ruby-string">'iscontact'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'geo_is_contact'</span>],
|
397
|
-
<span class="ruby-string">'ispublic'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'geo_is_public'</span>]
|
398
|
-
}
|
399
|
-
<span class="ruby-keyword">end</span>
|
400
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'dates'</span>] = {
|
401
|
-
<span class="ruby-string">'uploaded'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'dateupload'</span>),
|
402
|
-
<span class="ruby-string">'lastupdate'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'lastupdate'</span>),
|
403
|
-
<span class="ruby-string">'taken'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'datetaken'</span>),
|
404
|
-
<span class="ruby-string">'takengranularity'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'datetakengranularity'</span>),
|
405
|
-
}
|
406
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'usage'</span>] = {}
|
407
|
-
|
408
|
-
<span class="ruby-keyword">unless</span> <span class="ruby-identifier">info</span>[<span class="ruby-string">'tags'</span>].<span class="ruby-identifier">nil?</span>
|
409
|
-
<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-identifier">split</span>(<span class="ruby-string">' '</span>).<span class="ruby-identifier">map</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">tag_content</span><span class="ruby-operator">|</span>
|
410
|
-
<span class="ruby-constant">Tag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'_content'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">tag_content</span>)
|
411
|
-
<span class="ruby-keyword">end</span>
|
412
|
-
<span class="ruby-keyword">end</span>
|
413
|
-
|
414
|
-
<span class="ruby-identifier">new</span>(<span class="ruby-identifier">info</span>)
|
415
|
-
<span class="ruby-keyword">end</span>
|
416
|
-
<span class="ruby-keyword">end</span></pre>
|
417
|
-
</div><!-- from_set-source -->
|
418
|
-
|
419
|
-
</div>
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
</div><!-- from_set-method -->
|
425
|
-
|
426
|
-
|
427
|
-
<div id="method-i-from_sizes" class="method-detail ">
|
428
|
-
|
429
|
-
<div class="method-heading">
|
430
|
-
<span class="method-name">from_sizes</span><span
|
431
|
-
class="method-args">(info)</span>
|
432
|
-
<span class="method-click-advice">click to toggle source</span>
|
433
|
-
</div>
|
434
|
-
|
435
|
-
|
436
|
-
<div class="method-description">
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
<div class="method-source-code" id="from_sizes-source">
|
443
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 211</span>
|
444
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_sizes</span>(<span class="ruby-identifier">info</span>)
|
445
|
-
<span class="ruby-identifier">new</span>.<span class="ruby-identifier">get_sizes</span>(<span class="ruby-identifier">info</span>)
|
446
|
-
<span class="ruby-keyword">end</span></pre>
|
447
|
-
</div><!-- from_sizes-source -->
|
448
|
-
|
449
|
-
</div>
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
</div><!-- from_sizes-method -->
|
455
|
-
|
456
|
-
|
457
|
-
<div id="method-i-from_user" class="method-detail ">
|
458
|
-
|
459
|
-
<div class="method-heading">
|
460
|
-
<span class="method-name">from_user</span><span
|
461
|
-
class="method-args">(hash)</span>
|
462
|
-
<span class="method-click-advice">click to toggle source</span>
|
463
|
-
</div>
|
464
|
-
|
465
|
-
|
466
|
-
<div class="method-description">
|
467
|
-
|
468
|
-
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
<div class="method-source-code" id="from_user-source">
|
473
|
-
<pre><span class="ruby-comment"># File lib/flickrie/media.rb, line 197</span>
|
474
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">from_user</span>(<span class="ruby-identifier">hash</span>)
|
475
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-string">'owner'</span>] = <span class="ruby-identifier">hash</span>[<span class="ruby-string">'photo'</span>].<span class="ruby-identifier">first</span>[<span class="ruby-string">'owner'</span>]
|
476
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-string">'ownername'</span>] = <span class="ruby-identifier">hash</span>[<span class="ruby-string">'photo'</span>].<span class="ruby-identifier">first</span>[<span class="ruby-string">'ownername'</span>]
|
477
|
-
<span class="ruby-identifier">hash</span>[<span class="ruby-string">'photo'</span>].<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">info</span><span class="ruby-operator">|</span>
|
478
|
-
<span class="ruby-identifier">info</span>[<span class="ruby-string">'visibility'</span>] = {
|
479
|
-
<span class="ruby-string">'ispublic'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'ispublic'</span>),
|
480
|
-
<span class="ruby-string">'isfriend'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'isfriend'</span>),
|
481
|
-
<span class="ruby-string">'isfamily'</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">info</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-string">'isfamily'</span>)
|
482
|
-
}
|
483
|
-
<span class="ruby-keyword">end</span>
|
484
|
-
|
485
|
-
<span class="ruby-identifier">from_set</span>(<span class="ruby-identifier">hash</span>)
|
486
|
-
<span class="ruby-keyword">end</span></pre>
|
487
|
-
</div><!-- from_user-source -->
|
488
|
-
|
489
|
-
</div>
|
490
|
-
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
</div><!-- from_user-method -->
|
495
|
-
|
496
|
-
|
497
|
-
</section><!-- public-instance-method-details -->
|
498
|
-
|
499
|
-
</section><!-- 5Buntitled-5D -->
|
500
|
-
|
501
|
-
</div><!-- documentation -->
|
502
|
-
|
503
|
-
|
504
|
-
<footer id="validator-badges">
|
505
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
506
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
|
507
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
508
|
-
</footer>
|
509
|
-
|