flickrie 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (72) hide show
  1. data/CHANGELOG.md +4 -0
  2. data/lib/flickrie/version.rb +1 -1
  3. metadata +9 -78
  4. data/doc/Flickrie.html +0 -364
  5. data/doc/Flickrie/.DS_Store +0 -0
  6. data/doc/Flickrie/ApiMethods.html +0 -1692
  7. data/doc/Flickrie/Client.html +0 -914
  8. data/doc/Flickrie/Error.html +0 -187
  9. data/doc/Flickrie/Instance.html +0 -344
  10. data/doc/Flickrie/License.html +0 -288
  11. data/doc/Flickrie/Location.html +0 -233
  12. data/doc/Flickrie/Media.html +0 -1689
  13. data/doc/Flickrie/Media/ClassMethods.html +0 -509
  14. data/doc/Flickrie/Media/Count.html +0 -314
  15. data/doc/Flickrie/Media/Exif.html +0 -276
  16. data/doc/Flickrie/Media/Note.html +0 -362
  17. data/doc/Flickrie/Media/Tag.html +0 -425
  18. data/doc/Flickrie/Media/Ticket.html +0 -425
  19. data/doc/Flickrie/Media/Visibility.html +0 -359
  20. data/doc/Flickrie/MediaCount.html +0 -314
  21. data/doc/Flickrie/OAuth.html +0 -334
  22. data/doc/Flickrie/OAuth/AccessToken.html +0 -187
  23. data/doc/Flickrie/OAuth/Error.html +0 -187
  24. data/doc/Flickrie/OAuth/ParseResponseParams.html +0 -187
  25. data/doc/Flickrie/OAuth/RequestToken.html +0 -241
  26. data/doc/Flickrie/OAuth/StatusCheck.html +0 -235
  27. data/doc/Flickrie/OAuth/Token.html +0 -227
  28. data/doc/Flickrie/OAuthStatusCheck.html +0 -236
  29. data/doc/Flickrie/Photo.html +0 -913
  30. data/doc/Flickrie/Set.html +0 -998
  31. data/doc/Flickrie/StatusCheck.html +0 -235
  32. data/doc/Flickrie/UploadClient.html +0 -284
  33. data/doc/Flickrie/UploadStatusCheck.html +0 -235
  34. data/doc/Flickrie/User.html +0 -875
  35. data/doc/Flickrie/Video.html +0 -601
  36. data/doc/Gemfile.html +0 -163
  37. data/doc/LICENSE.html +0 -165
  38. data/doc/Rakefile.html +0 -168
  39. data/doc/created.rid +0 -25
  40. data/doc/images/add.png +0 -0
  41. data/doc/images/brick.png +0 -0
  42. data/doc/images/brick_link.png +0 -0
  43. data/doc/images/bug.png +0 -0
  44. data/doc/images/bullet_black.png +0 -0
  45. data/doc/images/bullet_toggle_minus.png +0 -0
  46. data/doc/images/bullet_toggle_plus.png +0 -0
  47. data/doc/images/date.png +0 -0
  48. data/doc/images/delete.png +0 -0
  49. data/doc/images/find.png +0 -0
  50. data/doc/images/loadingAnimation.gif +0 -0
  51. data/doc/images/macFFBgHack.png +0 -0
  52. data/doc/images/package.png +0 -0
  53. data/doc/images/page_green.png +0 -0
  54. data/doc/images/page_white_text.png +0 -0
  55. data/doc/images/page_white_width.png +0 -0
  56. data/doc/images/plugin.png +0 -0
  57. data/doc/images/ruby.png +0 -0
  58. data/doc/images/tag_blue.png +0 -0
  59. data/doc/images/tag_green.png +0 -0
  60. data/doc/images/transparent.png +0 -0
  61. data/doc/images/wrench.png +0 -0
  62. data/doc/images/wrench_orange.png +0 -0
  63. data/doc/images/zoom.png +0 -0
  64. data/doc/index.html +0 -140
  65. data/doc/js/darkfish.js +0 -153
  66. data/doc/js/jquery.js +0 -18
  67. data/doc/js/navigation.js +0 -142
  68. data/doc/js/search.js +0 -94
  69. data/doc/js/search_index.js +0 -1
  70. data/doc/js/searcher.js +0 -228
  71. data/doc/rdoc.css +0 -543
  72. data/doc/table_of_contents.html +0 -642
@@ -1,314 +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 Flickrie::MediaCount - 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="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
- <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_count.rb
51
- </ul>
52
- </nav>
53
-
54
-
55
- </div>
56
-
57
- <div id="class-metadata">
58
-
59
- <nav id="parent-class-section" class="section">
60
- <h3 class="section-header">Parent</h3>
61
-
62
- <p class="link">Object
63
-
64
- </nav>
65
-
66
-
67
- <!-- Method Quickref -->
68
- <nav id="method-list-section" class="section">
69
- <h3 class="section-header">Methods</h3>
70
-
71
- <ul class="link-list">
72
-
73
- <li><a href="#method-c-new">::new</a>
74
-
75
- <li><a href="#method-i-date_range">#date_range</a>
76
-
77
- <li><a href="#method-i-value">#value</a>
78
-
79
- </ul>
80
- </nav>
81
-
82
- </div>
83
-
84
- <div id="project-metadata">
85
- <nav id="fileindex-section" class="section project-section">
86
- <h3 class="section-header">Pages</h3>
87
-
88
- <ul>
89
-
90
- <li class="file"><a href="../Gemfile.html">Gemfile</a>
91
-
92
- <li class="file"><a href="../LICENSE.html">LICENSE</a>
93
-
94
- <li class="file"><a href="../Rakefile.html">Rakefile</a>
95
-
96
- </ul>
97
- </nav>
98
-
99
- <nav id="classindex-section" class="section project-section">
100
- <h3 class="section-header">Class and Module Index</h3>
101
-
102
- <ul class="link-list">
103
-
104
- <li><a href="../Flickrie.html">Flickrie</a>
105
-
106
- <li><a href="../Flickrie/ApiMethods.html">Flickrie::ApiMethods</a>
107
-
108
- <li><a href="../Flickrie/Client.html">Flickrie::Client</a>
109
-
110
- <li><a href="../Flickrie/Error.html">Flickrie::Error</a>
111
-
112
- <li><a href="../Flickrie/Instance.html">Flickrie::Instance</a>
113
-
114
- <li><a href="../Flickrie/License.html">Flickrie::License</a>
115
-
116
- <li><a href="../Flickrie/Location.html">Flickrie::Location</a>
117
-
118
- <li><a href="../Flickrie/Media.html">Flickrie::Media</a>
119
-
120
- <li><a href="../Flickrie/Media/ClassMethods.html">Flickrie::Media::ClassMethods</a>
121
-
122
- <li><a href="../Flickrie/Media/Exif.html">Flickrie::Media::Exif</a>
123
-
124
- <li><a href="../Flickrie/Media/Note.html">Flickrie::Media::Note</a>
125
-
126
- <li><a href="../Flickrie/Media/Tag.html">Flickrie::Media::Tag</a>
127
-
128
- <li><a href="../Flickrie/Media/Ticket.html">Flickrie::Media::Ticket</a>
129
-
130
- <li><a href="../Flickrie/Media/Visibility.html">Flickrie::Media::Visibility</a>
131
-
132
- <li><a href="../Flickrie/MediaCount.html">Flickrie::MediaCount</a>
133
-
134
- <li><a href="../Flickrie/OAuth.html">Flickrie::OAuth</a>
135
-
136
- <li><a href="../Flickrie/OAuth/AccessToken.html">Flickrie::OAuth::AccessToken</a>
137
-
138
- <li><a href="../Flickrie/OAuth/Error.html">Flickrie::OAuth::Error</a>
139
-
140
- <li><a href="../Flickrie/OAuth/ParseResponseParams.html">Flickrie::OAuth::ParseResponseParams</a>
141
-
142
- <li><a href="../Flickrie/OAuth/RequestToken.html">Flickrie::OAuth::RequestToken</a>
143
-
144
- <li><a href="../Flickrie/OAuth/StatusCheck.html">Flickrie::OAuth::StatusCheck</a>
145
-
146
- <li><a href="../Flickrie/OAuth/Token.html">Flickrie::OAuth::Token</a>
147
-
148
- <li><a href="../Flickrie/OAuthStatusCheck.html">Flickrie::OAuthStatusCheck</a>
149
-
150
- <li><a href="../Flickrie/Photo.html">Flickrie::Photo</a>
151
-
152
- <li><a href="../Flickrie/Set.html">Flickrie::Set</a>
153
-
154
- <li><a href="../Flickrie/StatusCheck.html">Flickrie::StatusCheck</a>
155
-
156
- <li><a href="../Flickrie/UploadClient.html">Flickrie::UploadClient</a>
157
-
158
- <li><a href="../Flickrie/UploadStatusCheck.html">Flickrie::UploadStatusCheck</a>
159
-
160
- <li><a href="../Flickrie/User.html">Flickrie::User</a>
161
-
162
- <li><a href="../Flickrie/Video.html">Flickrie::Video</a>
163
-
164
- </ul>
165
- </nav>
166
-
167
- </div>
168
- </nav>
169
-
170
- <div id="documentation">
171
- <h1 class="class">class Flickrie::MediaCount</h1>
172
-
173
- <div id="description" class="description">
174
-
175
- </div><!-- description -->
176
-
177
-
178
-
179
-
180
- <section id="5Buntitled-5D" class="documentation-section">
181
-
182
-
183
-
184
-
185
-
186
-
187
-
188
-
189
- <!-- Methods -->
190
-
191
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
192
- <h3 class="section-header">Public Class Methods</h3>
193
-
194
-
195
- <div id="method-c-new" class="method-detail ">
196
-
197
- <div class="method-heading">
198
- <span class="method-name">new</span><span
199
- class="method-args">(info, params)</span>
200
- <span class="method-click-advice">click to toggle source</span>
201
- </div>
202
-
203
-
204
- <div class="method-description">
205
-
206
-
207
-
208
-
209
-
210
- <div class="method-source-code" id="new-source">
211
- <pre><span class="ruby-comment"># File lib/flickrie/media_count.rb, line 23</span>
212
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">info</span>, <span class="ruby-identifier">params</span>)
213
- <span class="ruby-ivar">@info</span> = <span class="ruby-identifier">info</span>
214
- <span class="ruby-ivar">@dates_kind</span> = (<span class="ruby-identifier">params</span>[<span class="ruby-value">:dates</span>].<span class="ruby-identifier">nil?</span> <span class="ruby-operator">?</span> <span class="ruby-string">&quot;mysql timestamp&quot;</span> <span class="ruby-operator">:</span> <span class="ruby-string">&quot;unix timestamp&quot;</span>)
215
- <span class="ruby-keyword">end</span></pre>
216
- </div><!-- new-source -->
217
-
218
- </div>
219
-
220
-
221
-
222
-
223
- </div><!-- new-method -->
224
-
225
-
226
- </section><!-- public-class-method-details -->
227
-
228
- <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
229
- <h3 class="section-header">Public Instance Methods</h3>
230
-
231
-
232
- <div id="method-i-date_range" class="method-detail ">
233
-
234
- <div class="method-heading">
235
- <span class="method-name">date_range</span><span
236
- class="method-args">()</span>
237
- <span class="method-click-advice">click to toggle source</span>
238
- </div>
239
-
240
-
241
- <div class="method-description">
242
-
243
-
244
-
245
-
246
-
247
- <div class="method-source-code" id="date_range-source">
248
- <pre><span class="ruby-comment"># File lib/flickrie/media_count.rb, line 9</span>
249
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">date_range</span>
250
- <span class="ruby-identifier">dates</span> =
251
- <span class="ruby-keyword">case</span> <span class="ruby-ivar">@dates_kind</span>
252
- <span class="ruby-keyword">when</span> <span class="ruby-string">&quot;mysql timestamp&quot;</span>
253
- [<span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'fromdate'</span>]).<span class="ruby-identifier">to_time</span>,
254
- <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'todate'</span>]).<span class="ruby-identifier">to_time</span>]
255
- <span class="ruby-keyword">when</span> <span class="ruby-string">&quot;unix timestamp&quot;</span>
256
- [<span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'fromdate'</span>].<span class="ruby-identifier">to_i</span>),
257
- <span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-ivar">@info</span>[<span class="ruby-string">'todate'</span>].<span class="ruby-identifier">to_i</span>)]
258
- <span class="ruby-keyword">end</span>
259
-
260
- <span class="ruby-identifier">dates</span>.<span class="ruby-identifier">first</span><span class="ruby-operator">..</span><span class="ruby-identifier">dates</span>.<span class="ruby-identifier">last</span>
261
- <span class="ruby-keyword">end</span></pre>
262
- </div><!-- date_range-source -->
263
-
264
- </div>
265
-
266
-
267
-
268
-
269
- </div><!-- date_range-method -->
270
-
271
-
272
- <div id="method-i-value" class="method-detail ">
273
-
274
- <div class="method-heading">
275
- <span class="method-name">value</span><span
276
- class="method-args">()</span>
277
- <span class="method-click-advice">click to toggle source</span>
278
- </div>
279
-
280
-
281
- <div class="method-description">
282
-
283
-
284
-
285
-
286
-
287
- <div class="method-source-code" id="value-source">
288
- <pre><span class="ruby-comment"># File lib/flickrie/media_count.rb, line 5</span>
289
- <span class="ruby-keyword">def</span> <span class="ruby-identifier">value</span>
290
- <span class="ruby-ivar">@info</span>[<span class="ruby-string">'count'</span>].<span class="ruby-identifier">to_i</span>
291
- <span class="ruby-keyword">end</span></pre>
292
- </div><!-- value-source -->
293
-
294
- </div>
295
-
296
-
297
-
298
-
299
- </div><!-- value-method -->
300
-
301
-
302
- </section><!-- public-instance-method-details -->
303
-
304
- </section><!-- 5Buntitled-5D -->
305
-
306
- </div><!-- documentation -->
307
-
308
-
309
- <footer id="validator-badges">
310
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
311
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
312
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
313
- </footer>
314
-
@@ -1,334 +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::OAuth - 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/oauth.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-c-get_access_token">::get_access_token</a>
68
-
69
- <li><a href="#method-c-get_request_token">::get_request_token</a>
70
-
71
- <li><a href="#method-c-new_connection">::new_connection</a>
72
-
73
- </ul>
74
- </nav>
75
-
76
- </div>
77
-
78
- <div id="project-metadata">
79
- <nav id="fileindex-section" class="section project-section">
80
- <h3 class="section-header">Pages</h3>
81
-
82
- <ul>
83
-
84
- <li class="file"><a href="../Gemfile.html">Gemfile</a>
85
-
86
- <li class="file"><a href="../LICENSE.html">LICENSE</a>
87
-
88
- <li class="file"><a href="../Rakefile.html">Rakefile</a>
89
-
90
- </ul>
91
- </nav>
92
-
93
- <nav id="classindex-section" class="section project-section">
94
- <h3 class="section-header">Class and Module Index</h3>
95
-
96
- <ul class="link-list">
97
-
98
- <li><a href="../Flickrie.html">Flickrie</a>
99
-
100
- <li><a href="../Flickrie/ApiMethods.html">Flickrie::ApiMethods</a>
101
-
102
- <li><a href="../Flickrie/Client.html">Flickrie::Client</a>
103
-
104
- <li><a href="../Flickrie/Error.html">Flickrie::Error</a>
105
-
106
- <li><a href="../Flickrie/Instance.html">Flickrie::Instance</a>
107
-
108
- <li><a href="../Flickrie/License.html">Flickrie::License</a>
109
-
110
- <li><a href="../Flickrie/Location.html">Flickrie::Location</a>
111
-
112
- <li><a href="../Flickrie/Media.html">Flickrie::Media</a>
113
-
114
- <li><a href="../Flickrie/Media/ClassMethods.html">Flickrie::Media::ClassMethods</a>
115
-
116
- <li><a href="../Flickrie/Media/Exif.html">Flickrie::Media::Exif</a>
117
-
118
- <li><a href="../Flickrie/Media/Note.html">Flickrie::Media::Note</a>
119
-
120
- <li><a href="../Flickrie/Media/Tag.html">Flickrie::Media::Tag</a>
121
-
122
- <li><a href="../Flickrie/Media/Ticket.html">Flickrie::Media::Ticket</a>
123
-
124
- <li><a href="../Flickrie/Media/Visibility.html">Flickrie::Media::Visibility</a>
125
-
126
- <li><a href="../Flickrie/MediaCount.html">Flickrie::MediaCount</a>
127
-
128
- <li><a href="../Flickrie/OAuth.html">Flickrie::OAuth</a>
129
-
130
- <li><a href="../Flickrie/OAuth/AccessToken.html">Flickrie::OAuth::AccessToken</a>
131
-
132
- <li><a href="../Flickrie/OAuth/Error.html">Flickrie::OAuth::Error</a>
133
-
134
- <li><a href="../Flickrie/OAuth/ParseResponseParams.html">Flickrie::OAuth::ParseResponseParams</a>
135
-
136
- <li><a href="../Flickrie/OAuth/RequestToken.html">Flickrie::OAuth::RequestToken</a>
137
-
138
- <li><a href="../Flickrie/OAuth/StatusCheck.html">Flickrie::OAuth::StatusCheck</a>
139
-
140
- <li><a href="../Flickrie/OAuth/Token.html">Flickrie::OAuth::Token</a>
141
-
142
- <li><a href="../Flickrie/OAuthStatusCheck.html">Flickrie::OAuthStatusCheck</a>
143
-
144
- <li><a href="../Flickrie/Photo.html">Flickrie::Photo</a>
145
-
146
- <li><a href="../Flickrie/Set.html">Flickrie::Set</a>
147
-
148
- <li><a href="../Flickrie/StatusCheck.html">Flickrie::StatusCheck</a>
149
-
150
- <li><a href="../Flickrie/UploadClient.html">Flickrie::UploadClient</a>
151
-
152
- <li><a href="../Flickrie/UploadStatusCheck.html">Flickrie::UploadStatusCheck</a>
153
-
154
- <li><a href="../Flickrie/User.html">Flickrie::User</a>
155
-
156
- <li><a href="../Flickrie/Video.html">Flickrie::Video</a>
157
-
158
- </ul>
159
- </nav>
160
-
161
- </div>
162
- </nav>
163
-
164
- <div id="documentation">
165
- <h1 class="module">module Flickrie::OAuth</h1>
166
-
167
- <div id="description" class="description">
168
-
169
- </div><!-- description -->
170
-
171
-
172
-
173
-
174
- <section id="5Buntitled-5D" class="documentation-section">
175
-
176
-
177
-
178
-
179
-
180
- <!-- Constants -->
181
- <section id="constants-list" class="section">
182
- <h3 class="section-header">Constants</h3>
183
- <dl>
184
-
185
- <dt id="NO_CALLBACK">NO_CALLBACK
186
-
187
- <dd class="description">
188
-
189
-
190
- <dt id="URL">URL
191
-
192
- <dd class="description">
193
-
194
-
195
- </dl>
196
- </section>
197
-
198
-
199
-
200
-
201
- <!-- Methods -->
202
-
203
- <section id="public-class-5Buntitled-5D-method-details" class="method-section section">
204
- <h3 class="section-header">Public Class Methods</h3>
205
-
206
-
207
- <div id="method-c-get_access_token" class="method-detail ">
208
-
209
- <div class="method-heading">
210
- <span class="method-name">get_access_token</span><span
211
- class="method-args">(verifier, request_token)</span>
212
- <span class="method-click-advice">click to toggle source</span>
213
- </div>
214
-
215
-
216
- <div class="method-description">
217
-
218
-
219
-
220
-
221
-
222
- <div class="method-source-code" id="get_access_token-source">
223
- <pre><span class="ruby-comment"># File lib/flickrie/oauth.rb, line 53</span>
224
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_access_token</span>(<span class="ruby-identifier">verifier</span>, <span class="ruby-identifier">request_token</span>)
225
- <span class="ruby-identifier">connection</span> = <span class="ruby-identifier">new_connection</span> <span class="ruby-value">:token</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">request_token</span>.<span class="ruby-identifier">token</span>,
226
- <span class="ruby-value">:token_secret</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">request_token</span>.<span class="ruby-identifier">secret</span>
227
-
228
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">get</span> <span class="ruby-string">&quot;access_token&quot;</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">req</span><span class="ruby-operator">|</span>
229
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">params</span>[<span class="ruby-value">:oauth_verifier</span>] = <span class="ruby-identifier">verifier</span>
230
- <span class="ruby-keyword">end</span>
231
-
232
- <span class="ruby-constant">AccessToken</span>.<span class="ruby-identifier">from_response</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>)
233
- <span class="ruby-keyword">end</span></pre>
234
- </div><!-- get_access_token-source -->
235
-
236
- </div>
237
-
238
-
239
-
240
-
241
- </div><!-- get_access_token-method -->
242
-
243
-
244
- <div id="method-c-get_request_token" class="method-detail ">
245
-
246
- <div class="method-heading">
247
- <span class="method-name">get_request_token</span><span
248
- class="method-args">(options = {})</span>
249
- <span class="method-click-advice">click to toggle source</span>
250
- </div>
251
-
252
-
253
- <div class="method-description">
254
-
255
-
256
-
257
-
258
-
259
- <div class="method-source-code" id="get_request_token-source">
260
- <pre><span class="ruby-comment"># File lib/flickrie/oauth.rb, line 43</span>
261
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">get_request_token</span>(<span class="ruby-identifier">options</span> = {})
262
- <span class="ruby-identifier">connection</span> = <span class="ruby-identifier">new_connection</span>
263
-
264
- <span class="ruby-identifier">response</span> = <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">get</span> <span class="ruby-string">&quot;request_token&quot;</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">req</span><span class="ruby-operator">|</span>
265
- <span class="ruby-identifier">req</span>.<span class="ruby-identifier">params</span>[<span class="ruby-value">:oauth_callback</span>] = <span class="ruby-identifier">options</span>[<span class="ruby-value">:callback_url</span>] <span class="ruby-operator">||</span> <span class="ruby-constant">NO_CALLBACK</span>
266
- <span class="ruby-keyword">end</span>
267
-
268
- <span class="ruby-constant">RequestToken</span>.<span class="ruby-identifier">from_response</span>(<span class="ruby-identifier">response</span>.<span class="ruby-identifier">body</span>)
269
- <span class="ruby-keyword">end</span></pre>
270
- </div><!-- get_request_token-source -->
271
-
272
- </div>
273
-
274
-
275
-
276
-
277
- </div><!-- get_request_token-method -->
278
-
279
-
280
- <div id="method-c-new_connection" class="method-detail ">
281
-
282
- <div class="method-heading">
283
- <span class="method-name">new_connection</span><span
284
- class="method-args">(additional_oauth_params = {})</span>
285
- <span class="method-click-advice">click to toggle source</span>
286
- </div>
287
-
288
-
289
- <div class="method-description">
290
-
291
-
292
-
293
-
294
-
295
- <div class="method-source-code" id="new_connection-source">
296
- <pre><span class="ruby-comment"># File lib/flickrie/oauth.rb, line 9</span>
297
- <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">new_connection</span>(<span class="ruby-identifier">additional_oauth_params</span> = {})
298
- <span class="ruby-identifier">oauth_params</span> = {
299
- <span class="ruby-value">:consumer_key</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Flickrie</span>.<span class="ruby-identifier">api_key</span>,
300
- <span class="ruby-value">:consumer_secret</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">Flickrie</span>.<span class="ruby-identifier">shared_secret</span>
301
- }.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">additional_oauth_params</span>)
302
-
303
- <span class="ruby-constant">Faraday</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">URL</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">connection</span><span class="ruby-operator">|</span>
304
- <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">request</span> <span class="ruby-value">:oauth</span>, <span class="ruby-identifier">oauth_params</span>
305
- <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">use</span> <span class="ruby-constant">ParseResponseParams</span>
306
- <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">adapter</span> <span class="ruby-constant">Faraday</span>.<span class="ruby-identifier">default_adapter</span>
307
- <span class="ruby-keyword">end</span>.
308
- <span class="ruby-identifier">tap</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">connection</span><span class="ruby-operator">|</span>
309
- <span class="ruby-identifier">connection</span>.<span class="ruby-identifier">builder</span>.<span class="ruby-identifier">insert_before</span> <span class="ruby-constant">ParseResponseParams</span>, <span class="ruby-constant">StatusCheck</span>
310
- <span class="ruby-keyword">end</span>
311
- <span class="ruby-keyword">end</span></pre>
312
- </div><!-- new_connection-source -->
313
-
314
- </div>
315
-
316
-
317
-
318
-
319
- </div><!-- new_connection-method -->
320
-
321
-
322
- </section><!-- public-class-method-details -->
323
-
324
- </section><!-- 5Buntitled-5D -->
325
-
326
- </div><!-- documentation -->
327
-
328
-
329
- <footer id="validator-badges">
330
- <p><a href="http://validator.w3.org/check/referer">[Validate]</a>
331
- <p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 3.12.
332
- <p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.
333
- </footer>
334
-