flickr.rb 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.txt +7 -4
- data/Gemfile.lock +3 -3
- data/README.md +5 -1
- data/Rakefile +6 -7
- data/doc/Flickr.html +1813 -0
- data/doc/Flickr/Config.html +468 -0
- data/doc/Flickr/Group.html +974 -0
- data/doc/Flickr/Photo.html +2467 -0
- data/doc/Flickr/PhotoCollection.html +529 -0
- data/doc/Flickr/Photoset.html +942 -0
- data/doc/Flickr/User.html +1672 -0
- data/doc/_index.html +190 -0
- data/doc/class_list.html +54 -0
- data/doc/css/common.css +1 -0
- data/doc/css/full_list.css +57 -0
- data/doc/css/style.css +339 -0
- data/doc/file.Changelog.html +73 -0
- data/doc/file.LICENSE.html +94 -0
- data/{rdoc/README_md.html → doc/file.README.html} +85 -121
- data/doc/file_list.html +62 -0
- data/doc/frames.html +26 -0
- data/doc/index.html +216 -0
- data/doc/js/app.js +219 -0
- data/doc/js/full_list.js +178 -0
- data/doc/js/jquery.js +4 -0
- data/doc/method_list.html +725 -0
- data/doc/top-level-namespace.html +112 -0
- data/flickr.gemspec +3 -3
- data/lib/flickr.rb +1 -1
- metadata +27 -46
- data/rdoc/Flickr.html +0 -1044
- data/rdoc/Flickr/Config.html +0 -300
- data/rdoc/Flickr/Group.html +0 -373
- data/rdoc/Flickr/Photo.html +0 -1427
- data/rdoc/Flickr/PhotoCollection.html +0 -261
- data/rdoc/Flickr/Photoset.html +0 -389
- data/rdoc/Flickr/User.html +0 -775
- data/rdoc/created.rid +0 -3
- data/rdoc/images/add.png +0 -0
- data/rdoc/images/arrow_up.png +0 -0
- data/rdoc/images/brick.png +0 -0
- data/rdoc/images/brick_link.png +0 -0
- data/rdoc/images/bug.png +0 -0
- data/rdoc/images/bullet_black.png +0 -0
- data/rdoc/images/bullet_toggle_minus.png +0 -0
- data/rdoc/images/bullet_toggle_plus.png +0 -0
- data/rdoc/images/date.png +0 -0
- data/rdoc/images/delete.png +0 -0
- data/rdoc/images/find.png +0 -0
- data/rdoc/images/loadingAnimation.gif +0 -0
- data/rdoc/images/macFFBgHack.png +0 -0
- data/rdoc/images/package.png +0 -0
- data/rdoc/images/page_green.png +0 -0
- data/rdoc/images/page_white_text.png +0 -0
- data/rdoc/images/page_white_width.png +0 -0
- data/rdoc/images/plugin.png +0 -0
- data/rdoc/images/ruby.png +0 -0
- data/rdoc/images/tag_blue.png +0 -0
- data/rdoc/images/tag_green.png +0 -0
- data/rdoc/images/transparent.png +0 -0
- data/rdoc/images/wrench.png +0 -0
- data/rdoc/images/wrench_orange.png +0 -0
- data/rdoc/images/zoom.png +0 -0
- data/rdoc/index.html +0 -92
- data/rdoc/js/darkfish.js +0 -155
- data/rdoc/js/jquery.js +0 -18
- data/rdoc/js/navigation.js +0 -142
- data/rdoc/js/search.js +0 -94
- data/rdoc/js/search_index.js +0 -1
- data/rdoc/js/searcher.js +0 -228
- data/rdoc/rdoc.css +0 -595
- data/rdoc/table_of_contents.html +0 -241
data/rdoc/Flickr/Photo.html
DELETED
@@ -1,1427 +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>class Flickr::Photo - Flickr</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="class">
|
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
|
-
|
47
|
-
|
48
|
-
<div id="file-metadata">
|
49
|
-
<nav id="file-list-section" class="section">
|
50
|
-
<h3 class="section-header">Defined In</h3>
|
51
|
-
<ul>
|
52
|
-
<li>lib/flickr.rb
|
53
|
-
</ul>
|
54
|
-
</nav>
|
55
|
-
|
56
|
-
|
57
|
-
</div>
|
58
|
-
|
59
|
-
<div id="class-metadata">
|
60
|
-
|
61
|
-
<nav id="parent-class-section" class="section">
|
62
|
-
<h3 class="section-header">Parent</h3>
|
63
|
-
|
64
|
-
<p class="link">Object
|
65
|
-
|
66
|
-
</nav>
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<!-- Method Quickref -->
|
71
|
-
<nav id="method-list-section" class="section">
|
72
|
-
<h3 class="section-header">Methods</h3>
|
73
|
-
|
74
|
-
<ul class="link-list">
|
75
|
-
|
76
|
-
<li ><a href="#method-c-new">::new</a>
|
77
|
-
|
78
|
-
<li ><a href="#method-i-5B-5D">#[]</a>
|
79
|
-
|
80
|
-
<li ><a href="#method-i-add_note">#add_note</a>
|
81
|
-
|
82
|
-
<li ><a href="#method-i-add_tag">#add_tag</a>
|
83
|
-
|
84
|
-
<li ><a href="#method-i-context">#context</a>
|
85
|
-
|
86
|
-
<li ><a href="#method-i-dates-3D">#dates=</a>
|
87
|
-
|
88
|
-
<li ><a href="#method-i-deleteNote">#deleteNote</a>
|
89
|
-
|
90
|
-
<li ><a href="#method-i-description">#description</a>
|
91
|
-
|
92
|
-
<li ><a href="#method-i-description-3D">#description=</a>
|
93
|
-
|
94
|
-
<li ><a href="#method-i-editNote">#editNote</a>
|
95
|
-
|
96
|
-
<li ><a href="#method-i-exif">#exif</a>
|
97
|
-
|
98
|
-
<li ><a href="#method-i-file">#file</a>
|
99
|
-
|
100
|
-
<li ><a href="#method-i-filename">#filename</a>
|
101
|
-
|
102
|
-
<li ><a href="#method-i-isfavorite">#isfavorite</a>
|
103
|
-
|
104
|
-
<li ><a href="#method-i-license">#license</a>
|
105
|
-
|
106
|
-
<li ><a href="#method-i-normalize_size">#normalize_size</a>
|
107
|
-
|
108
|
-
<li ><a href="#method-i-notes">#notes</a>
|
109
|
-
|
110
|
-
<li ><a href="#method-i-owner">#owner</a>
|
111
|
-
|
112
|
-
<li ><a href="#method-i-permissions">#permissions</a>
|
113
|
-
|
114
|
-
<li ><a href="#method-i-perms-3D">#perms=</a>
|
115
|
-
|
116
|
-
<li ><a href="#method-i-postToBlog">#postToBlog</a>
|
117
|
-
|
118
|
-
<li ><a href="#method-i-pretty_url">#pretty_url</a>
|
119
|
-
|
120
|
-
<li ><a href="#method-i-remove_tag">#remove_tag</a>
|
121
|
-
|
122
|
-
<li ><a href="#method-i-rotate">#rotate</a>
|
123
|
-
|
124
|
-
<li ><a href="#method-i-rotation">#rotation</a>
|
125
|
-
|
126
|
-
<li ><a href="#method-i-server">#server</a>
|
127
|
-
|
128
|
-
<li ><a href="#method-i-size_url">#size_url</a>
|
129
|
-
|
130
|
-
<li ><a href="#method-i-sizes">#sizes</a>
|
131
|
-
|
132
|
-
<li ><a href="#method-i-source">#source</a>
|
133
|
-
|
134
|
-
<li ><a href="#method-i-tags">#tags</a>
|
135
|
-
|
136
|
-
<li ><a href="#method-i-tags-3D">#tags=</a>
|
137
|
-
|
138
|
-
<li ><a href="#method-i-title-3D">#title=</a>
|
139
|
-
|
140
|
-
<li ><a href="#method-i-to_s">#to_s</a>
|
141
|
-
|
142
|
-
<li ><a href="#method-i-url">#url</a>
|
143
|
-
|
144
|
-
</ul>
|
145
|
-
</nav>
|
146
|
-
|
147
|
-
</div>
|
148
|
-
|
149
|
-
<div id="project-metadata">
|
150
|
-
<nav id="fileindex-section" class="section project-section">
|
151
|
-
<h3 class="section-header">Pages</h3>
|
152
|
-
|
153
|
-
<ul>
|
154
|
-
|
155
|
-
<li class="file"><a href="../README_md.html">README</a>
|
156
|
-
|
157
|
-
</ul>
|
158
|
-
</nav>
|
159
|
-
|
160
|
-
<nav id="classindex-section" class="section project-section">
|
161
|
-
<h3 class="section-header">Class and Module Index</h3>
|
162
|
-
|
163
|
-
<ul class="link-list">
|
164
|
-
|
165
|
-
<li><a href="../Flickr.html">Flickr</a>
|
166
|
-
|
167
|
-
<li><a href="../Flickr/Config.html">Flickr::Config</a>
|
168
|
-
|
169
|
-
<li><a href="../Flickr/Group.html">Flickr::Group</a>
|
170
|
-
|
171
|
-
<li><a href="../Flickr/Photo.html">Flickr::Photo</a>
|
172
|
-
|
173
|
-
<li><a href="../Flickr/PhotoCollection.html">Flickr::PhotoCollection</a>
|
174
|
-
|
175
|
-
<li><a href="../Flickr/Photoset.html">Flickr::Photoset</a>
|
176
|
-
|
177
|
-
<li><a href="../Flickr/User.html">Flickr::User</a>
|
178
|
-
|
179
|
-
</ul>
|
180
|
-
</nav>
|
181
|
-
|
182
|
-
</div>
|
183
|
-
</nav>
|
184
|
-
|
185
|
-
<div id="documentation">
|
186
|
-
<h1 class="class">class Flickr::Photo</h1>
|
187
|
-
|
188
|
-
<div id="description" class="description">
|
189
|
-
|
190
|
-
</div><!-- description -->
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
<section id="5Buntitled-5D" class="documentation-section">
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
<!-- Attributes -->
|
204
|
-
<section id="attribute-method-details" class="method-section section">
|
205
|
-
<h3 class="section-header">Attributes</h3>
|
206
|
-
|
207
|
-
|
208
|
-
<div id="attribute-i-client" class="method-detail">
|
209
|
-
<div class="method-heading attribute-method-heading">
|
210
|
-
<span class="method-name">client</span><span
|
211
|
-
class="attribute-access-type">[R]</span>
|
212
|
-
</div>
|
213
|
-
|
214
|
-
<div class="method-description">
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
</div>
|
219
|
-
</div>
|
220
|
-
|
221
|
-
<div id="attribute-i-id" class="method-detail">
|
222
|
-
<div class="method-heading attribute-method-heading">
|
223
|
-
<span class="method-name">id</span><span
|
224
|
-
class="attribute-access-type">[R]</span>
|
225
|
-
</div>
|
226
|
-
|
227
|
-
<div class="method-description">
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
</div>
|
232
|
-
</div>
|
233
|
-
|
234
|
-
<div id="attribute-i-title" class="method-detail">
|
235
|
-
<div class="method-heading attribute-method-heading">
|
236
|
-
<span class="method-name">title</span><span
|
237
|
-
class="attribute-access-type">[R]</span>
|
238
|
-
</div>
|
239
|
-
|
240
|
-
<div class="method-description">
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
</div>
|
245
|
-
</div>
|
246
|
-
|
247
|
-
</section><!-- attribute-method-details -->
|
248
|
-
|
249
|
-
|
250
|
-
<!-- Methods -->
|
251
|
-
|
252
|
-
<section id="public-class-5Buntitled-5D-method-details" class="method-section section">
|
253
|
-
<h3 class="section-header">Public Class Methods</h3>
|
254
|
-
|
255
|
-
|
256
|
-
<div id="method-c-new" class="method-detail ">
|
257
|
-
|
258
|
-
<div class="method-heading">
|
259
|
-
<span class="method-name">new</span><span
|
260
|
-
class="method-args">(id=nil, api_key={}, extra_params={})</span>
|
261
|
-
|
262
|
-
<span class="method-click-advice">click to toggle source</span>
|
263
|
-
|
264
|
-
</div>
|
265
|
-
|
266
|
-
|
267
|
-
<div class="method-description">
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
<div class="method-source-code" id="new-source">
|
275
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 436</span>
|
276
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">api_key</span>={}, <span class="ruby-identifier">extra_params</span>={})
|
277
|
-
<span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id</span>
|
278
|
-
<span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
|
279
|
-
<span class="ruby-identifier">extra_params</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>,<span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">instance_variable_set</span>(<span class="ruby-node">"@#{k}"</span>, <span class="ruby-identifier">v</span>) } <span class="ruby-comment"># convert extra_params into instance variables</span>
|
280
|
-
<span class="ruby-ivar">@client</span> = <span class="ruby-constant">Flickr</span>.<span class="ruby-identifier">new</span> <span class="ruby-ivar">@api_key</span>
|
281
|
-
<span class="ruby-keyword">end</span></pre>
|
282
|
-
</div><!-- new-source -->
|
283
|
-
|
284
|
-
</div>
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
</div><!-- new-method -->
|
290
|
-
|
291
|
-
|
292
|
-
</section><!-- public-class-method-details -->
|
293
|
-
|
294
|
-
<section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
|
295
|
-
<h3 class="section-header">Public Instance Methods</h3>
|
296
|
-
|
297
|
-
|
298
|
-
<div id="method-i-5B-5D" class="method-detail ">
|
299
|
-
|
300
|
-
<div class="method-heading">
|
301
|
-
<span class="method-name">[]</span><span
|
302
|
-
class="method-args">(param_name)</span>
|
303
|
-
|
304
|
-
<span class="method-click-advice">click to toggle source</span>
|
305
|
-
|
306
|
-
</div>
|
307
|
-
|
308
|
-
|
309
|
-
<div class="method-description">
|
310
|
-
|
311
|
-
<p>Allows access to all photos instance variables through hash like interface,
|
312
|
-
e.g. <a href="http://"datetaken"">photo</a> returns @datetaken instance
|
313
|
-
variable. Useful for accessing any weird and wonderful parameter that may
|
314
|
-
have been returned by <a href="../Flickr.html">Flickr</a> when finding the
|
315
|
-
photo, e.g. those returned by the extras argument in
|
316
|
-
flickr.people.getPublicPhotos</p>
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
<div class="method-source-code" id="5B-5D-source">
|
322
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 449</span>
|
323
|
-
<span class="ruby-keyword">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">param_name</span>)
|
324
|
-
<span class="ruby-identifier">instance_variable_get</span>(<span class="ruby-node">"@#{param_name}"</span>)
|
325
|
-
<span class="ruby-keyword">end</span></pre>
|
326
|
-
</div><!-- 5B-5D-source -->
|
327
|
-
|
328
|
-
</div>
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
</div><!-- 5B-5D-method -->
|
334
|
-
|
335
|
-
|
336
|
-
<div id="method-i-add_note" class="method-detail ">
|
337
|
-
|
338
|
-
<div class="method-heading">
|
339
|
-
<span class="method-name">add_note</span><span
|
340
|
-
class="method-args">(note)</span>
|
341
|
-
|
342
|
-
<span class="method-click-advice">click to toggle source</span>
|
343
|
-
|
344
|
-
</div>
|
345
|
-
|
346
|
-
|
347
|
-
<div class="method-description">
|
348
|
-
|
349
|
-
<p>Implements flickr.photos.notes.add</p>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
<div class="method-source-code" id="add_note-source">
|
355
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 577</span>
|
356
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_note</span>(<span class="ruby-identifier">note</span>)
|
357
|
-
<span class="ruby-keyword">end</span></pre>
|
358
|
-
</div><!-- add_note-source -->
|
359
|
-
|
360
|
-
</div>
|
361
|
-
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
</div><!-- add_note-method -->
|
366
|
-
|
367
|
-
|
368
|
-
<div id="method-i-add_tag" class="method-detail ">
|
369
|
-
|
370
|
-
<div class="method-heading">
|
371
|
-
<span class="method-name">add_tag</span><span
|
372
|
-
class="method-args">(tag)</span>
|
373
|
-
|
374
|
-
<span class="method-click-advice">click to toggle source</span>
|
375
|
-
|
376
|
-
</div>
|
377
|
-
|
378
|
-
|
379
|
-
<div class="method-description">
|
380
|
-
|
381
|
-
<p>Implements flickr.photos.addTags</p>
|
382
|
-
|
383
|
-
|
384
|
-
|
385
|
-
|
386
|
-
<div class="method-source-code" id="add_tag-source">
|
387
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 599</span>
|
388
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag</span>)
|
389
|
-
<span class="ruby-keyword">end</span></pre>
|
390
|
-
</div><!-- add_tag-source -->
|
391
|
-
|
392
|
-
</div>
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
</div><!-- add_tag-method -->
|
398
|
-
|
399
|
-
|
400
|
-
<div id="method-i-context" class="method-detail ">
|
401
|
-
|
402
|
-
<div class="method-heading">
|
403
|
-
<span class="method-name">context</span><span
|
404
|
-
class="method-args">()</span>
|
405
|
-
|
406
|
-
<span class="method-click-advice">click to toggle source</span>
|
407
|
-
|
408
|
-
</div>
|
409
|
-
|
410
|
-
|
411
|
-
<div class="method-description">
|
412
|
-
|
413
|
-
<p>Implements flickr.photos.getContext</p>
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
<div class="method-source-code" id="context-source">
|
419
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 546</span>
|
420
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">context</span>
|
421
|
-
<span class="ruby-identifier">context</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getContext</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)
|
422
|
-
<span class="ruby-ivar">@previousPhoto</span> = <span class="ruby-constant">Photo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">context</span>[<span class="ruby-string">'prevphoto'</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">'id'</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-string">'prevphoto'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-string">'prevphoto'</span>][<span class="ruby-string">'id'</span>]<span class="ruby-operator">!=</span><span class="ruby-string">'0'</span>
|
423
|
-
<span class="ruby-ivar">@nextPhoto</span> = <span class="ruby-constant">Photo</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">context</span>[<span class="ruby-string">'nextphoto'</span>].<span class="ruby-identifier">delete</span>(<span class="ruby-string">'id'</span>), <span class="ruby-ivar">@api_key</span>, <span class="ruby-identifier">context</span>[<span class="ruby-string">'nextphoto'</span>]) <span class="ruby-keyword">if</span> <span class="ruby-identifier">context</span>[<span class="ruby-string">'nextphoto'</span>][<span class="ruby-string">'id'</span>]<span class="ruby-operator">!=</span><span class="ruby-string">'0'</span>
|
424
|
-
<span class="ruby-keyword">return</span> [<span class="ruby-ivar">@previousPhoto</span>, <span class="ruby-ivar">@nextPhoto</span>]
|
425
|
-
<span class="ruby-keyword">end</span></pre>
|
426
|
-
</div><!-- context-source -->
|
427
|
-
|
428
|
-
</div>
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
</div><!-- context-method -->
|
434
|
-
|
435
|
-
|
436
|
-
<div id="method-i-dates-3D" class="method-detail ">
|
437
|
-
|
438
|
-
<div class="method-heading">
|
439
|
-
<span class="method-name">dates=</span><span
|
440
|
-
class="method-args">(dates)</span>
|
441
|
-
|
442
|
-
<span class="method-click-advice">click to toggle source</span>
|
443
|
-
|
444
|
-
</div>
|
445
|
-
|
446
|
-
|
447
|
-
<div class="method-description">
|
448
|
-
|
449
|
-
<p>Implements flickr.photos.setDates</p>
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
<div class="method-source-code" id="dates-3D-source">
|
455
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 581</span>
|
456
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">dates=</span>(<span class="ruby-identifier">dates</span>)
|
457
|
-
<span class="ruby-keyword">end</span></pre>
|
458
|
-
</div><!-- dates-3D-source -->
|
459
|
-
|
460
|
-
</div>
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
</div><!-- dates-3D-method -->
|
466
|
-
|
467
|
-
|
468
|
-
<div id="method-i-deleteNote" class="method-detail ">
|
469
|
-
|
470
|
-
<div class="method-heading">
|
471
|
-
<span class="method-name">deleteNote</span><span
|
472
|
-
class="method-args">(note_id)</span>
|
473
|
-
|
474
|
-
<span class="method-click-advice">click to toggle source</span>
|
475
|
-
|
476
|
-
</div>
|
477
|
-
|
478
|
-
|
479
|
-
<div class="method-description">
|
480
|
-
|
481
|
-
<p>Implements flickr.photos.notes.delete</p>
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
<div class="method-source-code" id="deleteNote-source">
|
487
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 616</span>
|
488
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">deleteNote</span>(<span class="ruby-identifier">note_id</span>)
|
489
|
-
<span class="ruby-keyword">end</span></pre>
|
490
|
-
</div><!-- deleteNote-source -->
|
491
|
-
|
492
|
-
</div>
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
</div><!-- deleteNote-method -->
|
498
|
-
|
499
|
-
|
500
|
-
<div id="method-i-description" class="method-detail ">
|
501
|
-
|
502
|
-
<div class="method-heading">
|
503
|
-
<span class="method-name">description</span><span
|
504
|
-
class="method-args">()</span>
|
505
|
-
|
506
|
-
<span class="method-click-advice">click to toggle source</span>
|
507
|
-
|
508
|
-
</div>
|
509
|
-
|
510
|
-
|
511
|
-
<div class="method-description">
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
|
517
|
-
|
518
|
-
<div class="method-source-code" id="description-source">
|
519
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 488</span>
|
520
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">description</span>
|
521
|
-
<span class="ruby-ivar">@description</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"description"</span>)
|
522
|
-
<span class="ruby-keyword">end</span></pre>
|
523
|
-
</div><!-- description-source -->
|
524
|
-
|
525
|
-
</div>
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
</div><!-- description-method -->
|
531
|
-
|
532
|
-
|
533
|
-
<div id="method-i-description-3D" class="method-detail ">
|
534
|
-
|
535
|
-
<div class="method-heading">
|
536
|
-
<span class="method-name">description=</span><span
|
537
|
-
class="method-args">(title)</span>
|
538
|
-
|
539
|
-
<span class="method-click-advice">click to toggle source</span>
|
540
|
-
|
541
|
-
</div>
|
542
|
-
|
543
|
-
|
544
|
-
<div class="method-description">
|
545
|
-
|
546
|
-
|
547
|
-
|
548
|
-
|
549
|
-
|
550
|
-
|
551
|
-
<div class="method-source-code" id="description-3D-source">
|
552
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 595</span>
|
553
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">description=</span>(<span class="ruby-identifier">title</span>)
|
554
|
-
<span class="ruby-keyword">end</span></pre>
|
555
|
-
</div><!-- description-3D-source -->
|
556
|
-
|
557
|
-
</div>
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
</div><!-- description-3D-method -->
|
563
|
-
|
564
|
-
|
565
|
-
<div id="method-i-editNote" class="method-detail ">
|
566
|
-
|
567
|
-
<div class="method-heading">
|
568
|
-
<span class="method-name">editNote</span><span
|
569
|
-
class="method-args">(note_id)</span>
|
570
|
-
|
571
|
-
<span class="method-click-advice">click to toggle source</span>
|
572
|
-
|
573
|
-
</div>
|
574
|
-
|
575
|
-
|
576
|
-
<div class="method-description">
|
577
|
-
|
578
|
-
<p>Implements flickr.photos.notes.edit</p>
|
579
|
-
|
580
|
-
|
581
|
-
|
582
|
-
|
583
|
-
<div class="method-source-code" id="editNote-source">
|
584
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 620</span>
|
585
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">editNote</span>(<span class="ruby-identifier">note_id</span>)
|
586
|
-
<span class="ruby-keyword">end</span></pre>
|
587
|
-
</div><!-- editNote-source -->
|
588
|
-
|
589
|
-
</div>
|
590
|
-
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
</div><!-- editNote-method -->
|
595
|
-
|
596
|
-
|
597
|
-
<div id="method-i-exif" class="method-detail ">
|
598
|
-
|
599
|
-
<div class="method-heading">
|
600
|
-
<span class="method-name">exif</span><span
|
601
|
-
class="method-args">()</span>
|
602
|
-
|
603
|
-
<span class="method-click-advice">click to toggle source</span>
|
604
|
-
|
605
|
-
</div>
|
606
|
-
|
607
|
-
|
608
|
-
<div class="method-description">
|
609
|
-
|
610
|
-
<p>Implements flickr.photos.getExif</p>
|
611
|
-
|
612
|
-
|
613
|
-
|
614
|
-
|
615
|
-
<div class="method-source-code" id="exif-source">
|
616
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 554</span>
|
617
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">exif</span>
|
618
|
-
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getExif</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'photo'</span>]
|
619
|
-
<span class="ruby-keyword">end</span></pre>
|
620
|
-
</div><!-- exif-source -->
|
621
|
-
|
622
|
-
</div>
|
623
|
-
|
624
|
-
|
625
|
-
|
626
|
-
|
627
|
-
</div><!-- exif-method -->
|
628
|
-
|
629
|
-
|
630
|
-
<div id="method-i-file" class="method-detail ">
|
631
|
-
|
632
|
-
<div class="method-heading">
|
633
|
-
<span class="method-name">file</span><span
|
634
|
-
class="method-args">(size='Medium')</span>
|
635
|
-
|
636
|
-
<span class="method-click-advice">click to toggle source</span>
|
637
|
-
|
638
|
-
</div>
|
639
|
-
|
640
|
-
|
641
|
-
<div class="method-description">
|
642
|
-
|
643
|
-
<p>Returns the photo file data itself, in any specified size. Example:
|
644
|
-
File.open(photo.title, 'w') { |f| f.puts photo.file }</p>
|
645
|
-
|
646
|
-
|
647
|
-
|
648
|
-
|
649
|
-
<div class="method-source-code" id="file-source">
|
650
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 536</span>
|
651
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">file</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">'Medium'</span>)
|
652
|
-
<span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get_response</span>(<span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">source</span>(<span class="ruby-identifier">size</span>))).<span class="ruby-identifier">body</span>
|
653
|
-
<span class="ruby-keyword">end</span></pre>
|
654
|
-
</div><!-- file-source -->
|
655
|
-
|
656
|
-
</div>
|
657
|
-
|
658
|
-
|
659
|
-
|
660
|
-
|
661
|
-
</div><!-- file-method -->
|
662
|
-
|
663
|
-
|
664
|
-
<div id="method-i-filename" class="method-detail ">
|
665
|
-
|
666
|
-
<div class="method-heading">
|
667
|
-
<span class="method-name">filename</span><span
|
668
|
-
class="method-args">()</span>
|
669
|
-
|
670
|
-
<span class="method-click-advice">click to toggle source</span>
|
671
|
-
|
672
|
-
</div>
|
673
|
-
|
674
|
-
|
675
|
-
<div class="method-description">
|
676
|
-
|
677
|
-
<p>Unique filename for the image, based on the <a
|
678
|
-
href="../Flickr.html">Flickr</a> NSID</p>
|
679
|
-
|
680
|
-
|
681
|
-
|
682
|
-
|
683
|
-
<div class="method-source-code" id="filename-source">
|
684
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 541</span>
|
685
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">filename</span>
|
686
|
-
<span class="ruby-node">"#{@id}.jpg"</span>
|
687
|
-
<span class="ruby-keyword">end</span></pre>
|
688
|
-
</div><!-- filename-source -->
|
689
|
-
|
690
|
-
</div>
|
691
|
-
|
692
|
-
|
693
|
-
|
694
|
-
|
695
|
-
</div><!-- filename-method -->
|
696
|
-
|
697
|
-
|
698
|
-
<div id="method-i-isfavorite" class="method-detail ">
|
699
|
-
|
700
|
-
<div class="method-heading">
|
701
|
-
<span class="method-name">isfavorite</span><span
|
702
|
-
class="method-args">()</span>
|
703
|
-
|
704
|
-
<span class="method-click-advice">click to toggle source</span>
|
705
|
-
|
706
|
-
</div>
|
707
|
-
|
708
|
-
|
709
|
-
<div class="method-description">
|
710
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
716
|
-
<div class="method-source-code" id="isfavorite-source">
|
717
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 476</span>
|
718
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">isfavorite</span>
|
719
|
-
<span class="ruby-ivar">@isfavorite</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"isfavorite"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@isfavorite</span>
|
720
|
-
<span class="ruby-keyword">end</span></pre>
|
721
|
-
</div><!-- isfavorite-source -->
|
722
|
-
|
723
|
-
</div>
|
724
|
-
|
725
|
-
|
726
|
-
|
727
|
-
|
728
|
-
</div><!-- isfavorite-method -->
|
729
|
-
|
730
|
-
|
731
|
-
<div id="method-i-license" class="method-detail ">
|
732
|
-
|
733
|
-
<div class="method-heading">
|
734
|
-
<span class="method-name">license</span><span
|
735
|
-
class="method-args">()</span>
|
736
|
-
|
737
|
-
<span class="method-click-advice">click to toggle source</span>
|
738
|
-
|
739
|
-
</div>
|
740
|
-
|
741
|
-
|
742
|
-
<div class="method-description">
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
<div class="method-source-code" id="license-source">
|
750
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 480</span>
|
751
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">license</span>
|
752
|
-
<span class="ruby-ivar">@license</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"license"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@license</span>
|
753
|
-
<span class="ruby-keyword">end</span></pre>
|
754
|
-
</div><!-- license-source -->
|
755
|
-
|
756
|
-
</div>
|
757
|
-
|
758
|
-
|
759
|
-
|
760
|
-
|
761
|
-
</div><!-- license-method -->
|
762
|
-
|
763
|
-
|
764
|
-
<div id="method-i-normalize_size" class="method-detail ">
|
765
|
-
|
766
|
-
<div class="method-heading">
|
767
|
-
<span class="method-name">normalize_size</span><span
|
768
|
-
class="method-args">(size)</span>
|
769
|
-
|
770
|
-
<span class="method-click-advice">click to toggle source</span>
|
771
|
-
|
772
|
-
</div>
|
773
|
-
|
774
|
-
|
775
|
-
<div class="method-description">
|
776
|
-
|
777
|
-
<p>converts string or symbol size to a capitalized string</p>
|
778
|
-
|
779
|
-
|
780
|
-
|
781
|
-
|
782
|
-
<div class="method-source-code" id="normalize_size-source">
|
783
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 504</span>
|
784
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
|
785
|
-
<span class="ruby-identifier">size</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">capitalize</span> <span class="ruby-operator">:</span> <span class="ruby-identifier">size</span>
|
786
|
-
<span class="ruby-keyword">end</span></pre>
|
787
|
-
</div><!-- normalize_size-source -->
|
788
|
-
|
789
|
-
</div>
|
790
|
-
|
791
|
-
|
792
|
-
|
793
|
-
|
794
|
-
</div><!-- normalize_size-method -->
|
795
|
-
|
796
|
-
|
797
|
-
<div id="method-i-notes" class="method-detail ">
|
798
|
-
|
799
|
-
<div class="method-heading">
|
800
|
-
<span class="method-name">notes</span><span
|
801
|
-
class="method-args">()</span>
|
802
|
-
|
803
|
-
<span class="method-click-advice">click to toggle source</span>
|
804
|
-
|
805
|
-
</div>
|
806
|
-
|
807
|
-
|
808
|
-
<div class="method-description">
|
809
|
-
|
810
|
-
|
811
|
-
|
812
|
-
|
813
|
-
|
814
|
-
|
815
|
-
<div class="method-source-code" id="notes-source">
|
816
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 492</span>
|
817
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">notes</span>
|
818
|
-
<span class="ruby-ivar">@notes</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"notes"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@notes</span>
|
819
|
-
<span class="ruby-keyword">end</span></pre>
|
820
|
-
</div><!-- notes-source -->
|
821
|
-
|
822
|
-
</div>
|
823
|
-
|
824
|
-
|
825
|
-
|
826
|
-
|
827
|
-
</div><!-- notes-method -->
|
828
|
-
|
829
|
-
|
830
|
-
<div id="method-i-owner" class="method-detail ">
|
831
|
-
|
832
|
-
<div class="method-heading">
|
833
|
-
<span class="method-name">owner</span><span
|
834
|
-
class="method-args">()</span>
|
835
|
-
|
836
|
-
<span class="method-click-advice">click to toggle source</span>
|
837
|
-
|
838
|
-
</div>
|
839
|
-
|
840
|
-
|
841
|
-
<div class="method-description">
|
842
|
-
|
843
|
-
<p>Returns the owner of the photo as a <a href="User.html">Flickr::User</a>.
|
844
|
-
If we have no info about the owner, we make an API call to get it. If we
|
845
|
-
already have the owner's id, create a user based on that. Either way,
|
846
|
-
we cache the result so we don't need to check again</p>
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
<div class="method-source-code" id="owner-source">
|
852
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 461</span>
|
853
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">owner</span>
|
854
|
-
<span class="ruby-keyword">case</span> <span class="ruby-ivar">@owner</span>
|
855
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">Flickr</span><span class="ruby-operator">::</span><span class="ruby-constant">User</span>
|
856
|
-
<span class="ruby-ivar">@owner</span>
|
857
|
-
<span class="ruby-keyword">when</span> <span class="ruby-constant">String</span>
|
858
|
-
<span class="ruby-ivar">@owner</span> = <span class="ruby-constant">Flickr</span><span class="ruby-operator">::</span><span class="ruby-constant">User</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@owner</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-keyword">nil</span>, <span class="ruby-ivar">@api_key</span>)
|
859
|
-
<span class="ruby-keyword">else</span>
|
860
|
-
<span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"owner"</span>)
|
861
|
-
<span class="ruby-keyword">end</span>
|
862
|
-
<span class="ruby-keyword">end</span></pre>
|
863
|
-
</div><!-- owner-source -->
|
864
|
-
|
865
|
-
</div>
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
|
870
|
-
</div><!-- owner-method -->
|
871
|
-
|
872
|
-
|
873
|
-
<div id="method-i-permissions" class="method-detail ">
|
874
|
-
|
875
|
-
<div class="method-heading">
|
876
|
-
<span class="method-name">permissions</span><span
|
877
|
-
class="method-args">()</span>
|
878
|
-
|
879
|
-
<span class="method-click-advice">click to toggle source</span>
|
880
|
-
|
881
|
-
</div>
|
882
|
-
|
883
|
-
|
884
|
-
<div class="method-description">
|
885
|
-
|
886
|
-
<p>Implements flickr.photos.getPerms</p>
|
887
|
-
|
888
|
-
|
889
|
-
|
890
|
-
|
891
|
-
<div class="method-source-code" id="permissions-source">
|
892
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 559</span>
|
893
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">permissions</span>
|
894
|
-
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getPerms</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'perms'</span>]
|
895
|
-
<span class="ruby-keyword">end</span></pre>
|
896
|
-
</div><!-- permissions-source -->
|
897
|
-
|
898
|
-
</div>
|
899
|
-
|
900
|
-
|
901
|
-
|
902
|
-
|
903
|
-
</div><!-- permissions-method -->
|
904
|
-
|
905
|
-
|
906
|
-
<div id="method-i-perms-3D" class="method-detail ">
|
907
|
-
|
908
|
-
<div class="method-heading">
|
909
|
-
<span class="method-name">perms=</span><span
|
910
|
-
class="method-args">(perms)</span>
|
911
|
-
|
912
|
-
<span class="method-click-advice">click to toggle source</span>
|
913
|
-
|
914
|
-
</div>
|
915
|
-
|
916
|
-
|
917
|
-
<div class="method-description">
|
918
|
-
|
919
|
-
<p>Implements flickr.photos.setPerms</p>
|
920
|
-
|
921
|
-
|
922
|
-
|
923
|
-
|
924
|
-
<div class="method-source-code" id="perms-3D-source">
|
925
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 585</span>
|
926
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">perms=</span>(<span class="ruby-identifier">perms</span>)
|
927
|
-
<span class="ruby-keyword">end</span></pre>
|
928
|
-
</div><!-- perms-3D-source -->
|
929
|
-
|
930
|
-
</div>
|
931
|
-
|
932
|
-
|
933
|
-
|
934
|
-
|
935
|
-
</div><!-- perms-3D-method -->
|
936
|
-
|
937
|
-
|
938
|
-
<div id="method-i-postToBlog" class="method-detail ">
|
939
|
-
|
940
|
-
<div class="method-heading">
|
941
|
-
<span class="method-name">postToBlog</span><span
|
942
|
-
class="method-args">(blog_id, title='', description='')</span>
|
943
|
-
|
944
|
-
<span class="method-click-advice">click to toggle source</span>
|
945
|
-
|
946
|
-
</div>
|
947
|
-
|
948
|
-
|
949
|
-
<div class="method-description">
|
950
|
-
|
951
|
-
<p>Implements flickr.blogs.postPhoto</p>
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
<div class="method-source-code" id="postToBlog-source">
|
957
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 611</span>
|
958
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">postToBlog</span>(<span class="ruby-identifier">blog_id</span>, <span class="ruby-identifier">title</span>=<span class="ruby-string">''</span>, <span class="ruby-identifier">description</span>=<span class="ruby-string">''</span>)
|
959
|
-
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">blogs_postPhoto</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>, <span class="ruby-string">'title'</span>=<span class="ruby-operator">></span><span class="ruby-identifier">title</span>, <span class="ruby-string">'description'</span>=<span class="ruby-operator">></span><span class="ruby-identifier">description</span>)
|
960
|
-
<span class="ruby-keyword">end</span></pre>
|
961
|
-
</div><!-- postToBlog-source -->
|
962
|
-
|
963
|
-
</div>
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
|
968
|
-
</div><!-- postToBlog-method -->
|
969
|
-
|
970
|
-
|
971
|
-
<div id="method-i-pretty_url" class="method-detail ">
|
972
|
-
|
973
|
-
<div class="method-heading">
|
974
|
-
<span class="method-name">pretty_url</span><span
|
975
|
-
class="method-args">()</span>
|
976
|
-
|
977
|
-
<span class="method-click-advice">click to toggle source</span>
|
978
|
-
|
979
|
-
</div>
|
980
|
-
|
981
|
-
|
982
|
-
<div class="method-description">
|
983
|
-
|
984
|
-
<p>the 'pretty' url for a photo (if the user has set up a custom name)
|
985
|
-
eg, <a
|
986
|
-
href="http://flickr.com/photos/granth/2584402507">flickr.com/photos/granth/2584402507</a>/
|
987
|
-
instead of</p>
|
988
|
-
|
989
|
-
<pre>http://flickr.com/photos/23386158@N00/2584402507/</pre>
|
990
|
-
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
<div class="method-source-code" id="pretty_url-source">
|
995
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 526</span>
|
996
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">pretty_url</span>
|
997
|
-
<span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"pretty_url"</span>)
|
998
|
-
<span class="ruby-keyword">end</span></pre>
|
999
|
-
</div><!-- pretty_url-source -->
|
1000
|
-
|
1001
|
-
</div>
|
1002
|
-
|
1003
|
-
|
1004
|
-
|
1005
|
-
|
1006
|
-
</div><!-- pretty_url-method -->
|
1007
|
-
|
1008
|
-
|
1009
|
-
<div id="method-i-remove_tag" class="method-detail ">
|
1010
|
-
|
1011
|
-
<div class="method-heading">
|
1012
|
-
<span class="method-name">remove_tag</span><span
|
1013
|
-
class="method-args">(tag)</span>
|
1014
|
-
|
1015
|
-
<span class="method-click-advice">click to toggle source</span>
|
1016
|
-
|
1017
|
-
</div>
|
1018
|
-
|
1019
|
-
|
1020
|
-
<div class="method-description">
|
1021
|
-
|
1022
|
-
<p>Implements flickr.photos.removeTag</p>
|
1023
|
-
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
<div class="method-source-code" id="remove_tag-source">
|
1028
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 603</span>
|
1029
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">remove_tag</span>(<span class="ruby-identifier">tag</span>)
|
1030
|
-
<span class="ruby-keyword">end</span></pre>
|
1031
|
-
</div><!-- remove_tag-source -->
|
1032
|
-
|
1033
|
-
</div>
|
1034
|
-
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
</div><!-- remove_tag-method -->
|
1039
|
-
|
1040
|
-
|
1041
|
-
<div id="method-i-rotate" class="method-detail ">
|
1042
|
-
|
1043
|
-
<div class="method-heading">
|
1044
|
-
<span class="method-name">rotate</span><span
|
1045
|
-
class="method-args">()</span>
|
1046
|
-
|
1047
|
-
<span class="method-click-advice">click to toggle source</span>
|
1048
|
-
|
1049
|
-
</div>
|
1050
|
-
|
1051
|
-
|
1052
|
-
<div class="method-description">
|
1053
|
-
|
1054
|
-
<p>Implements flickr.photos.transform.rotate</p>
|
1055
|
-
|
1056
|
-
|
1057
|
-
|
1058
|
-
|
1059
|
-
<div class="method-source-code" id="rotate-source">
|
1060
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 607</span>
|
1061
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rotate</span>
|
1062
|
-
<span class="ruby-keyword">end</span></pre>
|
1063
|
-
</div><!-- rotate-source -->
|
1064
|
-
|
1065
|
-
</div>
|
1066
|
-
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
</div><!-- rotate-method -->
|
1071
|
-
|
1072
|
-
|
1073
|
-
<div id="method-i-rotation" class="method-detail ">
|
1074
|
-
|
1075
|
-
<div class="method-heading">
|
1076
|
-
<span class="method-name">rotation</span><span
|
1077
|
-
class="method-args">()</span>
|
1078
|
-
|
1079
|
-
<span class="method-click-advice">click to toggle source</span>
|
1080
|
-
|
1081
|
-
</div>
|
1082
|
-
|
1083
|
-
|
1084
|
-
<div class="method-description">
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1091
|
-
<div class="method-source-code" id="rotation-source">
|
1092
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 484</span>
|
1093
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">rotation</span>
|
1094
|
-
<span class="ruby-ivar">@rotation</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"rotation"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@rotation</span>
|
1095
|
-
<span class="ruby-keyword">end</span></pre>
|
1096
|
-
</div><!-- rotation-source -->
|
1097
|
-
|
1098
|
-
</div>
|
1099
|
-
|
1100
|
-
|
1101
|
-
|
1102
|
-
|
1103
|
-
</div><!-- rotation-method -->
|
1104
|
-
|
1105
|
-
|
1106
|
-
<div id="method-i-server" class="method-detail ">
|
1107
|
-
|
1108
|
-
<div class="method-heading">
|
1109
|
-
<span class="method-name">server</span><span
|
1110
|
-
class="method-args">()</span>
|
1111
|
-
|
1112
|
-
<span class="method-click-advice">click to toggle source</span>
|
1113
|
-
|
1114
|
-
</div>
|
1115
|
-
|
1116
|
-
|
1117
|
-
<div class="method-description">
|
1118
|
-
|
1119
|
-
|
1120
|
-
|
1121
|
-
|
1122
|
-
|
1123
|
-
|
1124
|
-
<div class="method-source-code" id="server-source">
|
1125
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 472</span>
|
1126
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">server</span>
|
1127
|
-
<span class="ruby-ivar">@server</span>.<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-identifier">getInfo</span>(<span class="ruby-string">"server"</span>) <span class="ruby-operator">:</span> <span class="ruby-ivar">@server</span>
|
1128
|
-
<span class="ruby-keyword">end</span></pre>
|
1129
|
-
</div><!-- server-source -->
|
1130
|
-
|
1131
|
-
</div>
|
1132
|
-
|
1133
|
-
|
1134
|
-
|
1135
|
-
|
1136
|
-
</div><!-- server-method -->
|
1137
|
-
|
1138
|
-
|
1139
|
-
<div id="method-i-size_url" class="method-detail ">
|
1140
|
-
|
1141
|
-
<div class="method-heading">
|
1142
|
-
<span class="method-name">size_url</span><span
|
1143
|
-
class="method-args">(size='Medium')</span>
|
1144
|
-
|
1145
|
-
<span class="method-click-advice">click to toggle source</span>
|
1146
|
-
|
1147
|
-
</div>
|
1148
|
-
|
1149
|
-
|
1150
|
-
<div class="method-description">
|
1151
|
-
|
1152
|
-
<p>Returns the URL for the photo size page defaults to 'Medium' other
|
1153
|
-
valid sizes are in the VALID_SIZES hash</p>
|
1154
|
-
|
1155
|
-
|
1156
|
-
|
1157
|
-
|
1158
|
-
<div class="method-source-code" id="size_url-source">
|
1159
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 499</span>
|
1160
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">'Medium'</span>)
|
1161
|
-
<span class="ruby-identifier">uri_for_photo_from_self</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>)[<span class="ruby-string">'url'</span>]
|
1162
|
-
<span class="ruby-keyword">end</span></pre>
|
1163
|
-
</div><!-- size_url-source -->
|
1164
|
-
|
1165
|
-
</div>
|
1166
|
-
|
1167
|
-
|
1168
|
-
|
1169
|
-
|
1170
|
-
</div><!-- size_url-method -->
|
1171
|
-
|
1172
|
-
|
1173
|
-
<div id="method-i-sizes" class="method-detail ">
|
1174
|
-
|
1175
|
-
<div class="method-heading">
|
1176
|
-
<span class="method-name">sizes</span><span
|
1177
|
-
class="method-args">(size=nil)</span>
|
1178
|
-
|
1179
|
-
<span class="method-click-advice">click to toggle source</span>
|
1180
|
-
|
1181
|
-
</div>
|
1182
|
-
|
1183
|
-
|
1184
|
-
<div class="method-description">
|
1185
|
-
|
1186
|
-
<p>Implements flickr.photos.getSizes</p>
|
1187
|
-
|
1188
|
-
|
1189
|
-
|
1190
|
-
|
1191
|
-
<div class="method-source-code" id="sizes-source">
|
1192
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 564</span>
|
1193
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>=<span class="ruby-keyword">nil</span>)
|
1194
|
-
<span class="ruby-identifier">size</span> = <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>)
|
1195
|
-
<span class="ruby-identifier">sizes</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">photos_getSizes</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'sizes'</span>][<span class="ruby-string">'size'</span>]
|
1196
|
-
<span class="ruby-identifier">sizes</span> = <span class="ruby-identifier">sizes</span>.<span class="ruby-identifier">find</span>{<span class="ruby-operator">|</span><span class="ruby-identifier">asize</span><span class="ruby-operator">|</span> <span class="ruby-identifier">asize</span>[<span class="ruby-string">'label'</span>]<span class="ruby-operator">==</span><span class="ruby-identifier">size</span>} <span class="ruby-keyword">if</span> <span class="ruby-identifier">size</span>
|
1197
|
-
<span class="ruby-keyword">return</span> <span class="ruby-identifier">sizes</span>
|
1198
|
-
<span class="ruby-keyword">end</span></pre>
|
1199
|
-
</div><!-- sizes-source -->
|
1200
|
-
|
1201
|
-
</div>
|
1202
|
-
|
1203
|
-
|
1204
|
-
|
1205
|
-
|
1206
|
-
</div><!-- sizes-method -->
|
1207
|
-
|
1208
|
-
|
1209
|
-
<div id="method-i-source" class="method-detail ">
|
1210
|
-
|
1211
|
-
<div class="method-heading">
|
1212
|
-
<span class="method-name">source</span><span
|
1213
|
-
class="method-args">(size='Medium')</span>
|
1214
|
-
|
1215
|
-
<span class="method-click-advice">click to toggle source</span>
|
1216
|
-
|
1217
|
-
</div>
|
1218
|
-
|
1219
|
-
|
1220
|
-
<div class="method-description">
|
1221
|
-
|
1222
|
-
<p>Returns the URL for the image (default or any specified size)</p>
|
1223
|
-
|
1224
|
-
|
1225
|
-
|
1226
|
-
|
1227
|
-
<div class="method-source-code" id="source-source">
|
1228
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 531</span>
|
1229
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">source</span>(<span class="ruby-identifier">size</span>=<span class="ruby-string">'Medium'</span>)
|
1230
|
-
<span class="ruby-identifier">image_source_uri_from_self</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">||</span> <span class="ruby-identifier">sizes</span>(<span class="ruby-identifier">size</span>)[<span class="ruby-string">'source'</span>]
|
1231
|
-
<span class="ruby-keyword">end</span></pre>
|
1232
|
-
</div><!-- source-source -->
|
1233
|
-
|
1234
|
-
</div>
|
1235
|
-
|
1236
|
-
|
1237
|
-
|
1238
|
-
|
1239
|
-
</div><!-- source-method -->
|
1240
|
-
|
1241
|
-
|
1242
|
-
<div id="method-i-tags" class="method-detail ">
|
1243
|
-
|
1244
|
-
<div class="method-heading">
|
1245
|
-
<span class="method-name">tags</span><span
|
1246
|
-
class="method-args">()</span>
|
1247
|
-
|
1248
|
-
<span class="method-click-advice">click to toggle source</span>
|
1249
|
-
|
1250
|
-
</div>
|
1251
|
-
|
1252
|
-
|
1253
|
-
<div class="method-description">
|
1254
|
-
|
1255
|
-
<p>flickr.tags.getListPhoto</p>
|
1256
|
-
|
1257
|
-
|
1258
|
-
|
1259
|
-
|
1260
|
-
<div class="method-source-code" id="tags-source">
|
1261
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 572</span>
|
1262
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tags</span>
|
1263
|
-
<span class="ruby-ivar">@client</span>.<span class="ruby-identifier">tags_getListPhoto</span>(<span class="ruby-string">'photo_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-string">'photo'</span>][<span class="ruby-string">'tags'</span>]
|
1264
|
-
<span class="ruby-keyword">end</span></pre>
|
1265
|
-
</div><!-- tags-source -->
|
1266
|
-
|
1267
|
-
</div>
|
1268
|
-
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
</div><!-- tags-method -->
|
1273
|
-
|
1274
|
-
|
1275
|
-
<div id="method-i-tags-3D" class="method-detail ">
|
1276
|
-
|
1277
|
-
<div class="method-heading">
|
1278
|
-
<span class="method-name">tags=</span><span
|
1279
|
-
class="method-args">(tags)</span>
|
1280
|
-
|
1281
|
-
<span class="method-click-advice">click to toggle source</span>
|
1282
|
-
|
1283
|
-
</div>
|
1284
|
-
|
1285
|
-
|
1286
|
-
<div class="method-description">
|
1287
|
-
|
1288
|
-
<p>Implements flickr.photos.setTags</p>
|
1289
|
-
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
<div class="method-source-code" id="tags-3D-source">
|
1294
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 589</span>
|
1295
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">tags=</span>(<span class="ruby-identifier">tags</span>)
|
1296
|
-
<span class="ruby-keyword">end</span></pre>
|
1297
|
-
</div><!-- tags-3D-source -->
|
1298
|
-
|
1299
|
-
</div>
|
1300
|
-
|
1301
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
</div><!-- tags-3D-method -->
|
1305
|
-
|
1306
|
-
|
1307
|
-
<div id="method-i-title-3D" class="method-detail ">
|
1308
|
-
|
1309
|
-
<div class="method-heading">
|
1310
|
-
<span class="method-name">title=</span><span
|
1311
|
-
class="method-args">(title)</span>
|
1312
|
-
|
1313
|
-
<span class="method-click-advice">click to toggle source</span>
|
1314
|
-
|
1315
|
-
</div>
|
1316
|
-
|
1317
|
-
|
1318
|
-
<div class="method-description">
|
1319
|
-
|
1320
|
-
<p>Implements flickr.photos.setMeta</p>
|
1321
|
-
|
1322
|
-
|
1323
|
-
|
1324
|
-
|
1325
|
-
<div class="method-source-code" id="title-3D-source">
|
1326
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 593</span>
|
1327
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">title=</span>(<span class="ruby-identifier">title</span>)
|
1328
|
-
<span class="ruby-keyword">end</span></pre>
|
1329
|
-
</div><!-- title-3D-source -->
|
1330
|
-
|
1331
|
-
</div>
|
1332
|
-
|
1333
|
-
|
1334
|
-
|
1335
|
-
|
1336
|
-
</div><!-- title-3D-method -->
|
1337
|
-
|
1338
|
-
|
1339
|
-
<div id="method-i-to_s" class="method-detail ">
|
1340
|
-
|
1341
|
-
<div class="method-heading">
|
1342
|
-
<span class="method-name">to_s</span><span
|
1343
|
-
class="method-args">()</span>
|
1344
|
-
|
1345
|
-
<span class="method-click-advice">click to toggle source</span>
|
1346
|
-
|
1347
|
-
</div>
|
1348
|
-
|
1349
|
-
|
1350
|
-
<div class="method-description">
|
1351
|
-
|
1352
|
-
<p>Converts the <a href="Photo.html">Photo</a> to a string by returning its
|
1353
|
-
title</p>
|
1354
|
-
|
1355
|
-
|
1356
|
-
|
1357
|
-
|
1358
|
-
<div class="method-source-code" id="to_s-source">
|
1359
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 624</span>
|
1360
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span>
|
1361
|
-
<span class="ruby-identifier">title</span>
|
1362
|
-
<span class="ruby-keyword">end</span></pre>
|
1363
|
-
</div><!-- to_s-source -->
|
1364
|
-
|
1365
|
-
</div>
|
1366
|
-
|
1367
|
-
|
1368
|
-
|
1369
|
-
|
1370
|
-
</div><!-- to_s-method -->
|
1371
|
-
|
1372
|
-
|
1373
|
-
<div id="method-i-url" class="method-detail ">
|
1374
|
-
|
1375
|
-
<div class="method-heading">
|
1376
|
-
<span class="method-name">url</span><span
|
1377
|
-
class="method-args">(size = nil)</span>
|
1378
|
-
|
1379
|
-
<span class="method-click-advice">click to toggle source</span>
|
1380
|
-
|
1381
|
-
</div>
|
1382
|
-
|
1383
|
-
|
1384
|
-
<div class="method-description">
|
1385
|
-
|
1386
|
-
<p>the URL for the main photo page if getInfo has already been called, this
|
1387
|
-
will return the pretty url</p>
|
1388
|
-
|
1389
|
-
<p>for historical reasons, an optional size can be given 'Medium'
|
1390
|
-
returns the regular url; any other size returns a size page use <a
|
1391
|
-
href="Photo.html#method-i-size_url">#size_url</a> instead</p>
|
1392
|
-
|
1393
|
-
|
1394
|
-
|
1395
|
-
|
1396
|
-
<div class="method-source-code" id="url-source">
|
1397
|
-
<pre><span class="ruby-comment"># File lib/flickr.rb, line 514</span>
|
1398
|
-
<span class="ruby-keyword">def</span> <span class="ruby-identifier">url</span>(<span class="ruby-identifier">size</span> = <span class="ruby-keyword">nil</span>)
|
1399
|
-
<span class="ruby-keyword">if</span> <span class="ruby-identifier">normalize_size</span>(<span class="ruby-identifier">size</span>) <span class="ruby-operator">!=</span> <span class="ruby-string">'Medium'</span>
|
1400
|
-
<span class="ruby-identifier">size_url</span>(<span class="ruby-identifier">size</span>)
|
1401
|
-
<span class="ruby-keyword">else</span>
|
1402
|
-
<span class="ruby-ivar">@url</span> <span class="ruby-operator">||</span> <span class="ruby-identifier">uri_for_photo_from_self</span>
|
1403
|
-
<span class="ruby-keyword">end</span>
|
1404
|
-
<span class="ruby-keyword">end</span></pre>
|
1405
|
-
</div><!-- url-source -->
|
1406
|
-
|
1407
|
-
</div>
|
1408
|
-
|
1409
|
-
|
1410
|
-
|
1411
|
-
|
1412
|
-
</div><!-- url-method -->
|
1413
|
-
|
1414
|
-
|
1415
|
-
</section><!-- public-instance-method-details -->
|
1416
|
-
|
1417
|
-
</section><!-- 5Buntitled-5D -->
|
1418
|
-
|
1419
|
-
</div><!-- documentation -->
|
1420
|
-
|
1421
|
-
|
1422
|
-
<footer id="validator-badges">
|
1423
|
-
<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
|
1424
|
-
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
|
1425
|
-
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
|
1426
|
-
</footer>
|
1427
|
-
|