flickr.rb 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog.txt +7 -2
- data/Gemfile +4 -0
- data/Gemfile.lock +24 -0
- data/LICENSE +16 -17
- data/Manifest.txt +2 -2
- data/README.txt +3 -1
- data/Rakefile +3 -24
- data/flickr.gemspec +22 -17
- data/lib/flickr.rb +104 -104
- data/rdoc/Flickr.html +1003 -0
- data/rdoc/Flickr/Config.html +267 -0
- data/rdoc/Flickr/Group.html +343 -0
- data/rdoc/Flickr/Photo.html +1396 -0
- data/rdoc/Flickr/PhotoCollection.html +229 -0
- data/rdoc/Flickr/Photoset.html +359 -0
- data/rdoc/Flickr/User.html +745 -0
- data/rdoc/README_txt.html +199 -0
- data/rdoc/created.rid +3 -1
- data/rdoc/fonts.css +167 -0
- data/rdoc/fonts/Lato-Light.ttf +0 -0
- data/rdoc/fonts/Lato-LightItalic.ttf +0 -0
- data/rdoc/fonts/Lato-Regular.ttf +0 -0
- data/rdoc/fonts/Lato-RegularItalic.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- 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 +101 -21
- data/rdoc/js/darkfish.js +140 -0
- data/rdoc/js/jquery.js +18 -0
- data/rdoc/js/navigation.js +142 -0
- data/rdoc/js/search.js +109 -0
- data/rdoc/js/search_index.js +1 -0
- data/rdoc/js/searcher.js +228 -0
- data/rdoc/rdoc.css +580 -0
- data/rdoc/table_of_contents.html +473 -0
- data/test/flickr_test.rb +229 -227
- metadata +132 -68
- data/rdoc/classes/Flickr.html +0 -807
- data/rdoc/classes/Flickr/Config.html +0 -240
- data/rdoc/classes/Flickr/Group.html +0 -251
- data/rdoc/classes/Flickr/Photo.html +0 -1101
- data/rdoc/classes/Flickr/PhotoCollection.html +0 -194
- data/rdoc/classes/Flickr/Photoset.html +0 -266
- data/rdoc/classes/Flickr/User.html +0 -738
- data/rdoc/files/README_txt.html +0 -209
- data/rdoc/files/lib/flickr_rb.html +0 -162
- data/rdoc/fr_class_index.html +0 -33
- data/rdoc/fr_file_index.html +0 -28
- data/rdoc/fr_method_index.html +0 -112
- data/rdoc/rdoc-style.css +0 -208
@@ -1,240 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Flickr::Config</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Flickr::Config</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/flickr_rb.html">
|
59
|
-
lib/flickr.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
This class supports external configuration
|
84
|
-
</p>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
|
89
|
-
</div>
|
90
|
-
|
91
|
-
<div id="method-list">
|
92
|
-
<h3 class="section-bar">Methods</h3>
|
93
|
-
|
94
|
-
<div class="name-list">
|
95
|
-
<a href="#M000046">get</a>
|
96
|
-
<a href="#M000044">load_from_file</a>
|
97
|
-
<a href="#M000045">parse_in_rails_env!</a>
|
98
|
-
<a href="#M000047">parsed?</a>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if includes -->
|
106
|
-
|
107
|
-
<div id="section">
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
<!-- if method_list -->
|
117
|
-
<div id="methods">
|
118
|
-
<h3 class="section-bar">Public Class methods</h3>
|
119
|
-
|
120
|
-
<div id="method-M000046" class="method-detail">
|
121
|
-
<a name="M000046"></a>
|
122
|
-
|
123
|
-
<div class="method-heading">
|
124
|
-
<a href="#M000046" class="method-signature">
|
125
|
-
<span class="method-name">get</span><span class="method-args">()</span>
|
126
|
-
</a>
|
127
|
-
</div>
|
128
|
-
|
129
|
-
<div class="method-description">
|
130
|
-
<p>
|
131
|
-
Returns configuration Hash
|
132
|
-
</p>
|
133
|
-
<p><a class="source-toggle" href="#"
|
134
|
-
onclick="toggleCode('M000046-source');return false;">[Source]</a></p>
|
135
|
-
<div class="method-source-code" id="M000046-source">
|
136
|
-
<pre>
|
137
|
-
<span class="ruby-comment cmt"># File lib/flickr.rb, line 257</span>
|
138
|
-
257: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">get</span>
|
139
|
-
258: <span class="ruby-ivar">@@configuration</span>
|
140
|
-
259: <span class="ruby-keyword kw">end</span>
|
141
|
-
</pre>
|
142
|
-
</div>
|
143
|
-
</div>
|
144
|
-
</div>
|
145
|
-
|
146
|
-
<div id="method-M000044" class="method-detail">
|
147
|
-
<a name="M000044"></a>
|
148
|
-
|
149
|
-
<div class="method-heading">
|
150
|
-
<a href="#M000044" class="method-signature">
|
151
|
-
<span class="method-name">load_from_file</span><span class="method-args">(file)</span>
|
152
|
-
</a>
|
153
|
-
</div>
|
154
|
-
|
155
|
-
<div class="method-description">
|
156
|
-
<p>
|
157
|
-
parses file and prepare @@configuration for access from outside to fetch
|
158
|
-
configuration hash
|
159
|
-
</p>
|
160
|
-
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('M000044-source');return false;">[Source]</a></p>
|
162
|
-
<div class="method-source-code" id="M000044-source">
|
163
|
-
<pre>
|
164
|
-
<span class="ruby-comment cmt"># File lib/flickr.rb, line 244</span>
|
165
|
-
244: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">load_from_file</span> <span class="ruby-identifier">file</span>
|
166
|
-
245: <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span>(<span class="ruby-identifier">file</span>)
|
167
|
-
246: <span class="ruby-ivar">@@configuration</span> = <span class="ruby-constant">YAML</span>.<span class="ruby-identifier">load</span>(<span class="ruby-constant">ERB</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">file</span>)).<span class="ruby-identifier">result</span>)
|
168
|
-
247: <span class="ruby-ivar">@@parsed</span> = <span class="ruby-keyword kw">true</span>
|
169
|
-
248: <span class="ruby-identifier">parse_in_rails_env!</span>
|
170
|
-
249: <span class="ruby-keyword kw">end</span>
|
171
|
-
</pre>
|
172
|
-
</div>
|
173
|
-
</div>
|
174
|
-
</div>
|
175
|
-
|
176
|
-
<div id="method-M000045" class="method-detail">
|
177
|
-
<a name="M000045"></a>
|
178
|
-
|
179
|
-
<div class="method-heading">
|
180
|
-
<a href="#M000045" class="method-signature">
|
181
|
-
<span class="method-name">parse_in_rails_env!</span><span class="method-args">()</span>
|
182
|
-
</a>
|
183
|
-
</div>
|
184
|
-
|
185
|
-
<div class="method-description">
|
186
|
-
<p>
|
187
|
-
Excludes specific configuration for choosed environment in Rails
|
188
|
-
</p>
|
189
|
-
<p><a class="source-toggle" href="#"
|
190
|
-
onclick="toggleCode('M000045-source');return false;">[Source]</a></p>
|
191
|
-
<div class="method-source-code" id="M000045-source">
|
192
|
-
<pre>
|
193
|
-
<span class="ruby-comment cmt"># File lib/flickr.rb, line 252</span>
|
194
|
-
252: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parse_in_rails_env!</span>
|
195
|
-
253: <span class="ruby-ivar">@@configuration</span> = <span class="ruby-ivar">@@configuration</span>[<span class="ruby-constant">RAILS_ENV</span>].<span class="ruby-identifier">symbolize_keys</span> <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">defined?</span> <span class="ruby-constant">RAILS_ENV</span>
|
196
|
-
254: <span class="ruby-keyword kw">end</span>
|
197
|
-
</pre>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<div id="method-M000047" class="method-detail">
|
203
|
-
<a name="M000047"></a>
|
204
|
-
|
205
|
-
<div class="method-heading">
|
206
|
-
<a href="#M000047" class="method-signature">
|
207
|
-
<span class="method-name">parsed?</span><span class="method-args">()</span>
|
208
|
-
</a>
|
209
|
-
</div>
|
210
|
-
|
211
|
-
<div class="method-description">
|
212
|
-
<p>
|
213
|
-
Returns true if configuration has been parsed
|
214
|
-
</p>
|
215
|
-
<p><a class="source-toggle" href="#"
|
216
|
-
onclick="toggleCode('M000047-source');return false;">[Source]</a></p>
|
217
|
-
<div class="method-source-code" id="M000047-source">
|
218
|
-
<pre>
|
219
|
-
<span class="ruby-comment cmt"># File lib/flickr.rb, line 262</span>
|
220
|
-
262: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">parsed?</span>
|
221
|
-
263: <span class="ruby-ivar">@@parsed</span>
|
222
|
-
264: <span class="ruby-keyword kw">end</span>
|
223
|
-
</pre>
|
224
|
-
</div>
|
225
|
-
</div>
|
226
|
-
</div>
|
227
|
-
|
228
|
-
|
229
|
-
</div>
|
230
|
-
|
231
|
-
|
232
|
-
</div>
|
233
|
-
|
234
|
-
|
235
|
-
<div id="validator-badges">
|
236
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
237
|
-
</div>
|
238
|
-
|
239
|
-
</body>
|
240
|
-
</html>
|
@@ -1,251 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="iso-8859-1"?>
|
2
|
-
<!DOCTYPE html
|
3
|
-
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
4
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
5
|
-
|
6
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
7
|
-
<head>
|
8
|
-
<title>Class: Flickr::Group</title>
|
9
|
-
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
10
|
-
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
11
|
-
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
12
|
-
<script type="text/javascript">
|
13
|
-
// <![CDATA[
|
14
|
-
|
15
|
-
function popupCode( url ) {
|
16
|
-
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
17
|
-
}
|
18
|
-
|
19
|
-
function toggleCode( id ) {
|
20
|
-
if ( document.getElementById )
|
21
|
-
elem = document.getElementById( id );
|
22
|
-
else if ( document.all )
|
23
|
-
elem = eval( "document.all." + id );
|
24
|
-
else
|
25
|
-
return false;
|
26
|
-
|
27
|
-
elemStyle = elem.style;
|
28
|
-
|
29
|
-
if ( elemStyle.display != "block" ) {
|
30
|
-
elemStyle.display = "block"
|
31
|
-
} else {
|
32
|
-
elemStyle.display = "none"
|
33
|
-
}
|
34
|
-
|
35
|
-
return true;
|
36
|
-
}
|
37
|
-
|
38
|
-
// Make codeblocks hidden by default
|
39
|
-
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
40
|
-
|
41
|
-
// ]]>
|
42
|
-
</script>
|
43
|
-
|
44
|
-
</head>
|
45
|
-
<body>
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
<div id="classHeader">
|
50
|
-
<table class="header-table">
|
51
|
-
<tr class="top-aligned-row">
|
52
|
-
<td><strong>Class</strong></td>
|
53
|
-
<td class="class-name-in-header">Flickr::Group</td>
|
54
|
-
</tr>
|
55
|
-
<tr class="top-aligned-row">
|
56
|
-
<td><strong>In:</strong></td>
|
57
|
-
<td>
|
58
|
-
<a href="../../files/lib/flickr_rb.html">
|
59
|
-
lib/flickr.rb
|
60
|
-
</a>
|
61
|
-
<br />
|
62
|
-
</td>
|
63
|
-
</tr>
|
64
|
-
|
65
|
-
<tr class="top-aligned-row">
|
66
|
-
<td><strong>Parent:</strong></td>
|
67
|
-
<td>
|
68
|
-
Object
|
69
|
-
</td>
|
70
|
-
</tr>
|
71
|
-
</table>
|
72
|
-
</div>
|
73
|
-
<!-- banner header -->
|
74
|
-
|
75
|
-
<div id="bodyContent">
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<div id="contextContent">
|
80
|
-
|
81
|
-
<div id="description">
|
82
|
-
<p>
|
83
|
-
Todo: flickr.groups.pools.add flickr.groups.pools.getContext
|
84
|
-
flickr.groups.pools.getGroups flickr.groups.pools.getPhotos
|
85
|
-
flickr.groups.pools.remove
|
86
|
-
</p>
|
87
|
-
|
88
|
-
</div>
|
89
|
-
|
90
|
-
|
91
|
-
</div>
|
92
|
-
|
93
|
-
<div id="method-list">
|
94
|
-
<h3 class="section-bar">Methods</h3>
|
95
|
-
|
96
|
-
<div class="name-list">
|
97
|
-
<a href="#M000023">getInfo</a>
|
98
|
-
<a href="#M000022">new</a>
|
99
|
-
</div>
|
100
|
-
</div>
|
101
|
-
|
102
|
-
</div>
|
103
|
-
|
104
|
-
|
105
|
-
<!-- if includes -->
|
106
|
-
|
107
|
-
<div id="section">
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
<div id="attribute-list">
|
114
|
-
<h3 class="section-bar">Attributes</h3>
|
115
|
-
|
116
|
-
<div class="name-list">
|
117
|
-
<table>
|
118
|
-
<tr class="top-aligned-row context-row">
|
119
|
-
<td class="context-item-name">client</td>
|
120
|
-
<td class="context-item-value"> [R] </td>
|
121
|
-
<td class="context-item-desc"></td>
|
122
|
-
</tr>
|
123
|
-
<tr class="top-aligned-row context-row">
|
124
|
-
<td class="context-item-name">description</td>
|
125
|
-
<td class="context-item-value"> [R] </td>
|
126
|
-
<td class="context-item-desc"></td>
|
127
|
-
</tr>
|
128
|
-
<tr class="top-aligned-row context-row">
|
129
|
-
<td class="context-item-name">eighteenplus</td>
|
130
|
-
<td class="context-item-value"> [R] </td>
|
131
|
-
<td class="context-item-desc"></td>
|
132
|
-
</tr>
|
133
|
-
<tr class="top-aligned-row context-row">
|
134
|
-
<td class="context-item-name">id</td>
|
135
|
-
<td class="context-item-value"> [R] </td>
|
136
|
-
<td class="context-item-desc"></td>
|
137
|
-
</tr>
|
138
|
-
<tr class="top-aligned-row context-row">
|
139
|
-
<td class="context-item-name">members</td>
|
140
|
-
<td class="context-item-value"> [R] </td>
|
141
|
-
<td class="context-item-desc"></td>
|
142
|
-
</tr>
|
143
|
-
<tr class="top-aligned-row context-row">
|
144
|
-
<td class="context-item-name">name</td>
|
145
|
-
<td class="context-item-value"> [R] </td>
|
146
|
-
<td class="context-item-desc"></td>
|
147
|
-
</tr>
|
148
|
-
<tr class="top-aligned-row context-row">
|
149
|
-
<td class="context-item-name">online</td>
|
150
|
-
<td class="context-item-value"> [R] </td>
|
151
|
-
<td class="context-item-desc"></td>
|
152
|
-
</tr>
|
153
|
-
<tr class="top-aligned-row context-row">
|
154
|
-
<td class="context-item-name">privacy</td>
|
155
|
-
<td class="context-item-value"> [R] </td>
|
156
|
-
<td class="context-item-desc"></td>
|
157
|
-
</tr>
|
158
|
-
<tr class="top-aligned-row context-row">
|
159
|
-
<td class="context-item-name">url</td>
|
160
|
-
<td class="context-item-value"> [R] </td>
|
161
|
-
<td class="context-item-desc"></td>
|
162
|
-
</tr>
|
163
|
-
</table>
|
164
|
-
</div>
|
165
|
-
</div>
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
<!-- if method_list -->
|
170
|
-
<div id="methods">
|
171
|
-
<h3 class="section-bar">Public Class methods</h3>
|
172
|
-
|
173
|
-
<div id="method-M000022" class="method-detail">
|
174
|
-
<a name="M000022"></a>
|
175
|
-
|
176
|
-
<div class="method-heading">
|
177
|
-
<a href="#M000022" class="method-signature">
|
178
|
-
<span class="method-name">new</span><span class="method-args">(id_or_params_hash=nil, api_key={})</span>
|
179
|
-
</a>
|
180
|
-
</div>
|
181
|
-
|
182
|
-
<div class="method-description">
|
183
|
-
<p><a class="source-toggle" href="#"
|
184
|
-
onclick="toggleCode('M000022-source');return false;">[Source]</a></p>
|
185
|
-
<div class="method-source-code" id="M000022-source">
|
186
|
-
<pre>
|
187
|
-
<span class="ruby-comment cmt"># File lib/flickr.rb, line 672</span>
|
188
|
-
672: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">id_or_params_hash</span>=<span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">api_key</span>={})
|
189
|
-
673: <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">id_or_params_hash</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>)
|
190
|
-
674: <span class="ruby-identifier">id_or_params_hash</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 kw">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 cmt"># convert extra_params into instance variables</span>
|
191
|
-
675: <span class="ruby-keyword kw">else</span>
|
192
|
-
676: <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">id_or_params_hash</span>
|
193
|
-
677: <span class="ruby-ivar">@api_key</span> = <span class="ruby-identifier">api_key</span>
|
194
|
-
678: <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>
|
195
|
-
679: <span class="ruby-keyword kw">end</span>
|
196
|
-
680: <span class="ruby-keyword kw">end</span>
|
197
|
-
</pre>
|
198
|
-
</div>
|
199
|
-
</div>
|
200
|
-
</div>
|
201
|
-
|
202
|
-
<h3 class="section-bar">Public Instance methods</h3>
|
203
|
-
|
204
|
-
<div id="method-M000023" class="method-detail">
|
205
|
-
<a name="M000023"></a>
|
206
|
-
|
207
|
-
<div class="method-heading">
|
208
|
-
<a href="#M000023" class="method-signature">
|
209
|
-
<span class="method-name">getInfo</span><span class="method-args">()</span>
|
210
|
-
</a>
|
211
|
-
</div>
|
212
|
-
|
213
|
-
<div class="method-description">
|
214
|
-
<p>
|
215
|
-
Implements flickr.groups.<a href="Group.html#M000023">getInfo</a> and
|
216
|
-
flickr.urls.getGroup private, once we can call it as needed
|
217
|
-
</p>
|
218
|
-
<p><a class="source-toggle" href="#"
|
219
|
-
onclick="toggleCode('M000023-source');return false;">[Source]</a></p>
|
220
|
-
<div class="method-source-code" id="M000023-source">
|
221
|
-
<pre>
|
222
|
-
<span class="ruby-comment cmt"># File lib/flickr.rb, line 684</span>
|
223
|
-
684: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">getInfo</span>
|
224
|
-
685: <span class="ruby-identifier">info</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">groups_getInfo</span>(<span class="ruby-value str">'group_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'group'</span>]
|
225
|
-
686: <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'name'</span>]
|
226
|
-
687: <span class="ruby-ivar">@members</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'members'</span>]
|
227
|
-
688: <span class="ruby-ivar">@online</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'online'</span>]
|
228
|
-
689: <span class="ruby-ivar">@privacy</span> = <span class="ruby-identifier">info</span>[<span class="ruby-value str">'privacy'</span>]
|
229
|
-
690: <span class="ruby-comment cmt"># @chatid = info['chatid']</span>
|
230
|
-
691: <span class="ruby-comment cmt"># @chatcount = info['chatcount']</span>
|
231
|
-
692: <span class="ruby-ivar">@url</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">urls_getGroup</span>(<span class="ruby-value str">'group_id'</span>=<span class="ruby-operator">></span><span class="ruby-ivar">@id</span>)[<span class="ruby-value str">'group'</span>][<span class="ruby-value str">'url'</span>]
|
232
|
-
693: <span class="ruby-keyword kw">self</span>
|
233
|
-
694: <span class="ruby-keyword kw">end</span>
|
234
|
-
</pre>
|
235
|
-
</div>
|
236
|
-
</div>
|
237
|
-
</div>
|
238
|
-
|
239
|
-
|
240
|
-
</div>
|
241
|
-
|
242
|
-
|
243
|
-
</div>
|
244
|
-
|
245
|
-
|
246
|
-
<div id="validator-badges">
|
247
|
-
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
248
|
-
</div>
|
249
|
-
|
250
|
-
</body>
|
251
|
-
</html>
|