badgeville_berlin 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/.yardoc/checksums +17 -17
- data/.yardoc/object_types +0 -0
- data/.yardoc/objects/root.dat +0 -0
- data/.yardoc/proxy_types +0 -0
- data/README.md +3 -0
- data/README_ADVANCED.md +3 -1
- data/doc/BadgevilleBerlin.html +32 -22
- data/doc/BadgevilleBerlin/Activity.html +43 -27
- data/doc/BadgevilleBerlin/ActivityDefinition.html +46 -27
- data/doc/BadgevilleBerlin/BaseResource.html +488 -94
- data/doc/BadgevilleBerlin/Config.html +66 -45
- data/doc/BadgevilleBerlin/Errors.html +48 -36
- data/doc/BadgevilleBerlin/Group.html +46 -27
- data/doc/BadgevilleBerlin/Leaderboard.html +46 -27
- data/doc/BadgevilleBerlin/Player.html +65 -26
- data/doc/BadgevilleBerlin/Reward.html +43 -27
- data/doc/BadgevilleBerlin/RewardDefinition.html +46 -27
- data/doc/BadgevilleBerlin/Site.html +43 -27
- data/doc/BadgevilleBerlin/Team.html +174 -0
- data/doc/BadgevilleBerlin/Track.html +43 -27
- data/doc/BadgevilleBerlin/User.html +43 -27
- data/doc/BadgevilleBerlinJsonFormat.html +92 -92
- data/doc/_index.html +46 -35
- data/doc/class_list.html +12 -6
- data/doc/css/full_list.css +6 -2
- data/doc/css/style.css +58 -50
- data/doc/file.README.html +194 -78
- data/doc/file_list.html +12 -6
- data/doc/frames.html +20 -5
- data/doc/index.html +194 -78
- data/doc/js/app.js +54 -45
- data/doc/js/full_list.js +36 -13
- data/doc/js/jquery.js +4 -16
- data/doc/method_list.html +53 -15
- data/doc/top-level-namespace.html +27 -18
- data/lib/badgeville_berlin/version.rb +1 -1
- metadata +4 -2
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BadgevilleBerlin::Config
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.8.2.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,10 +15,12 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
19
|
-
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
20
21
|
</script>
|
21
22
|
|
23
|
+
|
22
24
|
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
25
|
|
24
26
|
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
@@ -26,36 +28,41 @@
|
|
26
28
|
|
27
29
|
</head>
|
28
30
|
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
31
|
<div id="header">
|
34
32
|
<div id="menu">
|
35
33
|
|
36
|
-
<a href="../_index.html">Index (C)</a> »
|
34
|
+
<a href="../_index.html">Index (C)</a> »
|
37
35
|
<span class='title'><span class='object_link'><a href="../BadgevilleBerlin.html" title="BadgevilleBerlin (module)">BadgevilleBerlin</a></span></span>
|
38
36
|
»
|
39
37
|
<span class="title">Config</span>
|
40
38
|
|
41
|
-
|
39
|
+
|
42
40
|
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
41
|
</div>
|
44
42
|
|
45
43
|
<div id="search">
|
46
44
|
|
47
|
-
<a
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
48
49
|
|
49
|
-
<a
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
50
54
|
|
51
|
-
<a
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
52
59
|
|
53
60
|
</div>
|
54
61
|
<div class="clear"></div>
|
55
62
|
</div>
|
56
|
-
|
63
|
+
|
57
64
|
<iframe id="search_frame"></iframe>
|
58
|
-
|
65
|
+
|
59
66
|
<div id="content"><h1>Class: BadgevilleBerlin::Config
|
60
67
|
|
61
68
|
|
@@ -91,24 +98,26 @@
|
|
91
98
|
|
92
99
|
|
93
100
|
<dt class="r2 last">Defined in:</dt>
|
94
|
-
<dd class="r2 last">lib/
|
101
|
+
<dd class="r2 last">lib/badgeville_berlin/config.rb</dd>
|
95
102
|
|
96
103
|
</dl>
|
97
104
|
<div class="clear"></div>
|
98
105
|
|
99
106
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
107
|
+
<h2>Constant Summary</h2>
|
105
108
|
|
106
109
|
|
107
110
|
|
111
|
+
|
112
|
+
<h2>Constant Summary</h2>
|
108
113
|
|
109
|
-
|
110
|
-
|
111
|
-
|
114
|
+
<h3 class="inherited">Constants inherited
|
115
|
+
from <span class='object_link'><a href="BaseResource.html" title="BadgevilleBerlin::BaseResource (class)">BaseResource</a></span></h3>
|
116
|
+
<p class="inherited"><span class='object_link'><a href="BaseResource.html#COMPLEX_ATTRIBUTES-constant" title="BadgevilleBerlin::BaseResource::COMPLEX_ATTRIBUTES (constant)">BaseResource::COMPLEX_ATTRIBUTES</a></span></p>
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
112
121
|
|
113
122
|
|
114
123
|
<h2>
|
@@ -132,6 +141,7 @@
|
|
132
141
|
|
133
142
|
|
134
143
|
|
144
|
+
|
135
145
|
|
136
146
|
|
137
147
|
<span class="summary_desc"><div class='inline'><p>
|
@@ -154,34 +164,43 @@ prefix.
|
|
154
164
|
|
155
165
|
|
156
166
|
|
167
|
+
|
157
168
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="BaseResource.html" title="BadgevilleBerlin::BaseResource (class)">BaseResource</a></span></h3>
|
158
|
-
<p class="inherited"><span class='object_link'><a href="BaseResource.html#errors-instance_method" title="BadgevilleBerlin::BaseResource#errors (method)">#errors</a></span>, <span class='object_link'><a href="BaseResource.html#load_remote_errors-instance_method" title="BadgevilleBerlin::BaseResource#load_remote_errors (method)">#load_remote_errors</a></span>, <span class='object_link'><a href="BaseResource.html#
|
169
|
+
<p class="inherited"><span class='object_link'><a href="BaseResource.html#customize_keys_for_request-instance_method" title="BadgevilleBerlin::BaseResource#customize_keys_for_request (method)">#customize_keys_for_request</a></span>, <span class='object_link'><a href="BaseResource.html#encode-instance_method" title="BadgevilleBerlin::BaseResource#encode (method)">#encode</a></span>, <span class='object_link'><a href="BaseResource.html#errors-instance_method" title="BadgevilleBerlin::BaseResource#errors (method)">#errors</a></span>, <span class='object_link'><a href="BaseResource.html#initialize-instance_method" title="BadgevilleBerlin::BaseResource#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="BaseResource.html#load-instance_method" title="BadgevilleBerlin::BaseResource#load (method)">#load</a></span>, <span class='object_link'><a href="BaseResource.html#load_remote_errors-instance_method" title="BadgevilleBerlin::BaseResource#load_remote_errors (method)">#load_remote_errors</a></span>, <span class='object_link'><a href="BaseResource.html#sanitize_request-instance_method" title="BadgevilleBerlin::BaseResource#sanitize_request (method)">#sanitize_request</a></span></p>
|
159
170
|
|
171
|
+
<div id="constructor_details" class="method_details_list">
|
172
|
+
<h2>Constructor Details</h2>
|
173
|
+
|
174
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="BaseResource.html#initialize-instance_method" title="BadgevilleBerlin::BaseResource#initialize (method)">BadgevilleBerlin::BaseResource</a></span></p>
|
160
175
|
|
176
|
+
</div>
|
177
|
+
|
161
178
|
|
162
179
|
<div id="class_method_details" class="method_details_list">
|
163
180
|
<h2>Class Method Details</h2>
|
164
|
-
|
181
|
+
|
165
182
|
|
166
183
|
<div class="method_details first">
|
167
|
-
<
|
184
|
+
<h3 class="signature first" id="conf-class_method">
|
168
185
|
|
169
186
|
+ (<tt>Object</tt>) <strong>conf</strong>(options = {})
|
170
187
|
|
171
188
|
|
172
189
|
|
173
|
-
|
190
|
+
|
191
|
+
|
192
|
+
</h3><div class="docstring">
|
174
193
|
<div class="discussion">
|
175
194
|
<p>
|
176
195
|
This class method configures the BaseResource members: format, site and
|
177
|
-
prefix
|
196
|
+
prefix.
|
178
197
|
</p>
|
179
198
|
|
180
199
|
|
181
200
|
</div>
|
182
201
|
</div>
|
183
202
|
<div class="tags">
|
184
|
-
<
|
203
|
+
<p class="tag_title">Parameters:</p>
|
185
204
|
<ul class="param">
|
186
205
|
|
187
206
|
<li>
|
@@ -197,7 +216,8 @@ prefix
|
|
197
216
|
|
198
217
|
—
|
199
218
|
<div class='inline'><p>
|
200
|
-
the options hash which holds values for the keys `:api_key` and
|
219
|
+
the options hash which holds values for the keys `:api_key` and
|
220
|
+
`:host_name`
|
201
221
|
</p>
|
202
222
|
</div>
|
203
223
|
|
@@ -205,6 +225,7 @@ the options hash which holds values for the keys `:api_key` and `:site`
|
|
205
225
|
|
206
226
|
</ul>
|
207
227
|
|
228
|
+
|
208
229
|
</div><table class="source_code">
|
209
230
|
<tr>
|
210
231
|
<td>
|
@@ -236,30 +257,30 @@ the options hash which holds values for the keys `:api_key` and `:site`
|
|
236
257
|
32</pre>
|
237
258
|
</td>
|
238
259
|
<td>
|
239
|
-
<pre class="code"><span class="info file"># File 'lib/
|
260
|
+
<pre class="code"><span class="info file"># File 'lib/badgeville_berlin/config.rb', line 10</span>
|
240
261
|
|
241
|
-
<span class='kw'>def</span> <span class='id
|
262
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_conf'>conf</span> <span class='lparen'>(</span> <span class='id identifier rubyid_options'>options</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span> <span class='rparen'>)</span>
|
242
263
|
|
243
|
-
<span class='const'>BaseResource</span><span class='period'>.</span><span class='id
|
264
|
+
<span class='const'>BaseResource</span><span class='period'>.</span><span class='id identifier rubyid_format'>format</span> <span class='op'>=</span> <span class='symbol'>:badgeville_berlin_json</span>
|
244
265
|
|
245
|
-
<span class='kw'>if</span> <span class='id
|
246
|
-
<span class='id
|
266
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:host_name</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>||</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:host_name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
267
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Please enter the URL for the Badgeville host where you want to make your request ( e.g. :host_name => 'http://www.example.com' ).</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
247
268
|
<span class='kw'>else</span>
|
248
|
-
<span class='const'>BaseResource</span><span class='period'>.</span><span class='id
|
249
|
-
<span class='kw'>if</span> <span class='id
|
250
|
-
<span class='id
|
269
|
+
<span class='const'>BaseResource</span><span class='period'>.</span><span class='id identifier rubyid_site'>site</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:host_name</span><span class='rbracket'>]</span>
|
270
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:host_name</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_split'>split</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>://</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='int'>1</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>nil</span>
|
271
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Please include the scheme for the request host ( e.g. http:// ).</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
251
272
|
<span class='kw'>end</span>
|
252
273
|
<span class='kw'>end</span>
|
253
274
|
|
254
|
-
<span class='kw'>if</span> <span class='id
|
255
|
-
<span class='id
|
275
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:api_key</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='kw'>nil</span> <span class='op'>||</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:api_key</span><span class='rbracket'>]</span><span class='period'>.</span><span class='id identifier rubyid_empty?'>empty?</span>
|
276
|
+
<span class='id identifier rubyid_raise'>raise</span> <span class='const'>ArgumentError</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>Please enter a Badgeville API Key ( e.g. :api_key => '[your Badgeville API Key]' ).</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
256
277
|
<span class='kw'>else</span>
|
257
|
-
<span class='ivar'>@api_key</span> <span class='op'>=</span> <span class='id
|
278
|
+
<span class='ivar'>@api_key</span> <span class='op'>=</span> <span class='id identifier rubyid_options'>options</span><span class='lbracket'>[</span><span class='symbol'>:api_key</span><span class='rbracket'>]</span>
|
258
279
|
<span class='kw'>end</span>
|
259
280
|
|
260
281
|
|
261
282
|
<span class='comment'># set a path that goes between the URL and the resource
|
262
|
-
</span> <span class='const'>BaseResource</span><span class='period'>.</span><span class='id
|
283
|
+
</span> <span class='const'>BaseResource</span><span class='period'>.</span><span class='id identifier rubyid_prefix'>prefix</span> <span class='op'>=</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'>/api/berlin/</span><span class='embvar'>#</span><span class='ivar'>@api_key</span><span class='tstring_content'>/</span><span class='tstring_end'>"</span></span>
|
263
284
|
<span class='kw'>end</span></pre>
|
264
285
|
</td>
|
265
286
|
</tr>
|
@@ -269,11 +290,11 @@ the options hash which holds values for the keys `:api_key` and `:site`
|
|
269
290
|
</div>
|
270
291
|
|
271
292
|
</div>
|
272
|
-
|
293
|
+
|
273
294
|
<div id="footer">
|
274
|
-
Generated on
|
295
|
+
Generated on Wed Jan 8 10:43:04 2014 by
|
275
296
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
276
|
-
0.
|
297
|
+
0.8.2.1 (ruby-1.9.2).
|
277
298
|
</div>
|
278
299
|
|
279
300
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BadgevilleBerlin::Errors
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.8.2.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,10 +15,12 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
19
|
-
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
20
21
|
</script>
|
21
22
|
|
23
|
+
|
22
24
|
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
25
|
|
24
26
|
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
@@ -26,36 +28,41 @@
|
|
26
28
|
|
27
29
|
</head>
|
28
30
|
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
31
|
<div id="header">
|
34
32
|
<div id="menu">
|
35
33
|
|
36
|
-
<a href="../_index.html">Index (E)</a> »
|
34
|
+
<a href="../_index.html">Index (E)</a> »
|
37
35
|
<span class='title'><span class='object_link'><a href="../BadgevilleBerlin.html" title="BadgevilleBerlin (module)">BadgevilleBerlin</a></span></span>
|
38
36
|
»
|
39
37
|
<span class="title">Errors</span>
|
40
38
|
|
41
|
-
|
39
|
+
|
42
40
|
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
41
|
</div>
|
44
42
|
|
45
43
|
<div id="search">
|
46
44
|
|
47
|
-
<a
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
48
49
|
|
49
|
-
<a
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
50
54
|
|
51
|
-
<a
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
52
59
|
|
53
60
|
</div>
|
54
61
|
<div class="clear"></div>
|
55
62
|
</div>
|
56
|
-
|
63
|
+
|
57
64
|
<iframe id="search_frame"></iframe>
|
58
|
-
|
65
|
+
|
59
66
|
<div id="content"><h1>Class: BadgevilleBerlin::Errors
|
60
67
|
|
61
68
|
|
@@ -89,7 +96,7 @@
|
|
89
96
|
|
90
97
|
|
91
98
|
<dt class="r2 last">Defined in:</dt>
|
92
|
-
<dd class="r2 last">lib/
|
99
|
+
<dd class="r2 last">lib/badgeville_berlin/errors.rb</dd>
|
93
100
|
|
94
101
|
</dl>
|
95
102
|
<div class="clear"></div>
|
@@ -106,12 +113,13 @@ BadgevilleBerlin::Errors.
|
|
106
113
|
</div>
|
107
114
|
<div class="tags">
|
108
115
|
|
116
|
+
|
109
117
|
</div>
|
110
118
|
|
111
|
-
|
112
119
|
|
113
120
|
|
114
|
-
|
121
|
+
|
122
|
+
|
115
123
|
|
116
124
|
|
117
125
|
<h2>
|
@@ -135,6 +143,7 @@ BadgevilleBerlin::Errors.
|
|
135
143
|
|
136
144
|
|
137
145
|
|
146
|
+
|
138
147
|
|
139
148
|
|
140
149
|
<span class="summary_desc"><div class='inline'><p>
|
@@ -154,16 +163,18 @@ originating from teh remote class.
|
|
154
163
|
|
155
164
|
<div id="instance_method_details" class="method_details_list">
|
156
165
|
<h2>Instance Method Details</h2>
|
157
|
-
|
166
|
+
|
158
167
|
|
159
168
|
<div class="method_details first">
|
160
|
-
<
|
169
|
+
<h3 class="signature first" id="from_badgeville_berlin_json-instance_method">
|
161
170
|
|
162
171
|
- (<tt>Object</tt>) <strong>from_badgeville_berlin_json</strong>(json, save_cache = false)
|
163
172
|
|
164
173
|
|
165
174
|
|
166
|
-
|
175
|
+
|
176
|
+
|
177
|
+
</h3><div class="docstring">
|
167
178
|
<div class="discussion">
|
168
179
|
<p>
|
169
180
|
Grabs errors from the :badgeville_berlin_json response remote model
|
@@ -178,7 +189,7 @@ BadgevilleBerlinJsonFormat cleared by default
|
|
178
189
|
</div>
|
179
190
|
</div>
|
180
191
|
<div class="tags">
|
181
|
-
<
|
192
|
+
<p class="tag_title">Parameters:</p>
|
182
193
|
<ul class="param">
|
183
194
|
|
184
195
|
<li>
|
@@ -219,6 +230,7 @@ flag that directs the errors cache to be
|
|
219
230
|
|
220
231
|
</ul>
|
221
232
|
|
233
|
+
|
222
234
|
</div><table class="source_code">
|
223
235
|
<tr>
|
224
236
|
<td>
|
@@ -241,21 +253,21 @@ flag that directs the errors cache to be
|
|
241
253
|
26</pre>
|
242
254
|
</td>
|
243
255
|
<td>
|
244
|
-
<pre class="code"><span class="info file"># File 'lib/
|
245
|
-
|
246
|
-
<span class='kw'>def</span> <span class='id
|
247
|
-
<span class='id
|
248
|
-
<span class='id
|
249
|
-
<span class='id
|
250
|
-
<span class='kw'>if</span> <span class='id
|
251
|
-
<span class='id
|
252
|
-
<span class='id
|
256
|
+
<pre class="code"><span class="info file"># File 'lib/badgeville_berlin/errors.rb', line 13</span>
|
257
|
+
|
258
|
+
<span class='kw'>def</span> <span class='id identifier rubyid_from_badgeville_berlin_json'>from_badgeville_berlin_json</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='comma'>,</span> <span class='id identifier rubyid_save_cache'>save_cache</span> <span class='op'>=</span> <span class='kw'>false</span><span class='rparen'>)</span>
|
259
|
+
<span class='id identifier rubyid_formatted_json_decoded'>formatted_json_decoded</span> <span class='op'>=</span> <span class='const'>Array</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span>
|
260
|
+
<span class='id identifier rubyid_json_decoded'>json_decoded</span> <span class='op'>=</span> <span class='lparen'>(</span><span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_decode'>decode</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span><span class='rparen'>)</span><span class='lbracket'>[</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>errors</span><span class='tstring_end'>'</span></span><span class='rbracket'>]</span> <span class='op'>||</span> <span class='const'>ActiveSupport</span><span class='op'>::</span><span class='const'>JSON</span><span class='period'>.</span><span class='id identifier rubyid_decode'>decode</span><span class='lparen'>(</span><span class='id identifier rubyid_json'>json</span><span class='rparen'>)</span> <span class='kw'>rescue</span> <span class='lbracket'>[</span><span class='rbracket'>]</span>
|
261
|
+
<span class='id identifier rubyid_json_decoded'>json_decoded</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='comma'>,</span> <span class='id identifier rubyid_err_msgs'>err_msgs</span><span class='op'>|</span>
|
262
|
+
<span class='kw'>if</span> <span class='id identifier rubyid_err_msgs'>err_msgs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>Array</span>
|
263
|
+
<span class='id identifier rubyid_err_msgs'>err_msgs</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_err_msg'>err_msg</span><span class='op'>|</span>
|
264
|
+
<span class='id identifier rubyid_formatted_json_decoded'>formatted_json_decoded</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='period'>.</span><span class='id identifier rubyid_humanize'>humanize</span> <span class='op'>+</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='tstring_content'> </span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_err_msg'>err_msg</span><span class='rbrace'>}</span><span class='tstring_end'>"</span></span><span class='rparen'>)</span>
|
253
265
|
<span class='kw'>end</span>
|
254
|
-
<span class='kw'>elsif</span> <span class='id
|
255
|
-
<span class='id
|
266
|
+
<span class='kw'>elsif</span> <span class='id identifier rubyid_err_msgs'>err_msgs</span><span class='period'>.</span><span class='id identifier rubyid_is_a?'>is_a?</span> <span class='const'>String</span>
|
267
|
+
<span class='id identifier rubyid_formatted_json_decoded'>formatted_json_decoded</span><span class='period'>.</span><span class='id identifier rubyid_push'>push</span><span class='lparen'>(</span><span class='id identifier rubyid_attribute_name'>attribute_name</span><span class='comma'>,</span> <span class='id identifier rubyid_err_msgs'>err_msgs</span><span class='rparen'>)</span>
|
256
268
|
<span class='kw'>end</span>
|
257
269
|
<span class='kw'>end</span>
|
258
|
-
<span class='id
|
270
|
+
<span class='id identifier rubyid_from_array'>from_array</span> <span class='id identifier rubyid_formatted_json_decoded'>formatted_json_decoded</span><span class='comma'>,</span> <span class='id identifier rubyid_save_cache'>save_cache</span>
|
259
271
|
<span class='kw'>end</span></pre>
|
260
272
|
</td>
|
261
273
|
</tr>
|
@@ -265,11 +277,11 @@ flag that directs the errors cache to be
|
|
265
277
|
</div>
|
266
278
|
|
267
279
|
</div>
|
268
|
-
|
280
|
+
|
269
281
|
<div id="footer">
|
270
|
-
Generated on
|
282
|
+
Generated on Wed Jan 8 10:43:04 2014 by
|
271
283
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
272
|
-
0.
|
284
|
+
0.8.2.1 (ruby-1.9.2).
|
273
285
|
</div>
|
274
286
|
|
275
287
|
</body>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
<title>
|
7
7
|
Class: BadgevilleBerlin::Group
|
8
8
|
|
9
|
-
— Documentation by YARD 0.
|
9
|
+
— Documentation by YARD 0.8.2.1
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,10 +15,12 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
19
|
-
|
18
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '../';
|
20
|
+
framesUrl = "../frames.html#!" + escape(window.location.href);
|
20
21
|
</script>
|
21
22
|
|
23
|
+
|
22
24
|
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
23
25
|
|
24
26
|
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
@@ -26,36 +28,41 @@
|
|
26
28
|
|
27
29
|
</head>
|
28
30
|
<body>
|
29
|
-
<script type="text/javascript" charset="utf-8">
|
30
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
31
|
-
</script>
|
32
|
-
|
33
31
|
<div id="header">
|
34
32
|
<div id="menu">
|
35
33
|
|
36
|
-
<a href="../_index.html">Index (G)</a> »
|
34
|
+
<a href="../_index.html">Index (G)</a> »
|
37
35
|
<span class='title'><span class='object_link'><a href="../BadgevilleBerlin.html" title="BadgevilleBerlin (module)">BadgevilleBerlin</a></span></span>
|
38
36
|
»
|
39
37
|
<span class="title">Group</span>
|
40
38
|
|
41
|
-
|
39
|
+
|
42
40
|
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
43
41
|
</div>
|
44
42
|
|
45
43
|
<div id="search">
|
46
44
|
|
47
|
-
<a
|
45
|
+
<a class="full_list_link" id="class_list_link"
|
46
|
+
href="../class_list.html">
|
47
|
+
Class List
|
48
|
+
</a>
|
48
49
|
|
49
|
-
<a
|
50
|
+
<a class="full_list_link" id="method_list_link"
|
51
|
+
href="../method_list.html">
|
52
|
+
Method List
|
53
|
+
</a>
|
50
54
|
|
51
|
-
<a
|
55
|
+
<a class="full_list_link" id="file_list_link"
|
56
|
+
href="../file_list.html">
|
57
|
+
File List
|
58
|
+
</a>
|
52
59
|
|
53
60
|
</div>
|
54
61
|
<div class="clear"></div>
|
55
62
|
</div>
|
56
|
-
|
63
|
+
|
57
64
|
<iframe id="search_frame"></iframe>
|
58
|
-
|
65
|
+
|
59
66
|
<div id="content"><h1>Class: BadgevilleBerlin::Group
|
60
67
|
|
61
68
|
|
@@ -91,26 +98,32 @@
|
|
91
98
|
|
92
99
|
|
93
100
|
<dt class="r2 last">Defined in:</dt>
|
94
|
-
<dd class="r2 last">lib/
|
101
|
+
<dd class="r2 last">lib/badgeville_berlin/group.rb</dd>
|
95
102
|
|
96
103
|
</dl>
|
97
104
|
<div class="clear"></div>
|
98
105
|
|
99
106
|
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
107
|
+
<h2>Constant Summary</h2>
|
104
108
|
|
109
|
+
<dl class="constants">
|
110
|
+
|
111
|
+
<dt id="COMPLEX_ATTRIBUTES-constant" class="">COMPLEX_ATTRIBUTES =
|
112
|
+
|
113
|
+
</dt>
|
114
|
+
<dd><pre class="code"><span class='lbracket'>[</span><span class='symbol'>:adjustment</span><span class='rbracket'>]</span></pre></dd>
|
115
|
+
|
116
|
+
</dl>
|
105
117
|
|
106
118
|
|
107
119
|
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
120
|
|
113
121
|
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
114
127
|
|
115
128
|
|
116
129
|
|
@@ -119,16 +132,22 @@
|
|
119
132
|
<h2>Method Summary</h2>
|
120
133
|
|
121
134
|
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="BaseResource.html" title="BadgevilleBerlin::BaseResource (class)">BaseResource</a></span></h3>
|
122
|
-
<p class="inherited"><span class='object_link'><a href="BaseResource.html#errors-instance_method" title="BadgevilleBerlin::BaseResource#errors (method)">#errors</a></span>, <span class='object_link'><a href="BaseResource.html#load_remote_errors-instance_method" title="BadgevilleBerlin::BaseResource#load_remote_errors (method)">#load_remote_errors</a></span>, <span class='object_link'><a href="BaseResource.html#
|
135
|
+
<p class="inherited"><span class='object_link'><a href="BaseResource.html#customize_keys_for_request-instance_method" title="BadgevilleBerlin::BaseResource#customize_keys_for_request (method)">#customize_keys_for_request</a></span>, <span class='object_link'><a href="BaseResource.html#encode-instance_method" title="BadgevilleBerlin::BaseResource#encode (method)">#encode</a></span>, <span class='object_link'><a href="BaseResource.html#errors-instance_method" title="BadgevilleBerlin::BaseResource#errors (method)">#errors</a></span>, <span class='object_link'><a href="BaseResource.html#initialize-instance_method" title="BadgevilleBerlin::BaseResource#initialize (method)">#initialize</a></span>, <span class='object_link'><a href="BaseResource.html#load-instance_method" title="BadgevilleBerlin::BaseResource#load (method)">#load</a></span>, <span class='object_link'><a href="BaseResource.html#load_remote_errors-instance_method" title="BadgevilleBerlin::BaseResource#load_remote_errors (method)">#load_remote_errors</a></span>, <span class='object_link'><a href="BaseResource.html#sanitize_request-instance_method" title="BadgevilleBerlin::BaseResource#sanitize_request (method)">#sanitize_request</a></span></p>
|
123
136
|
|
137
|
+
<div id="constructor_details" class="method_details_list">
|
138
|
+
<h2>Constructor Details</h2>
|
124
139
|
|
140
|
+
<p class="notice">This class inherits a constructor from <span class='object_link'><a href="BaseResource.html#initialize-instance_method" title="BadgevilleBerlin::BaseResource#initialize (method)">BadgevilleBerlin::BaseResource</a></span></p>
|
141
|
+
|
142
|
+
</div>
|
143
|
+
|
125
144
|
|
126
145
|
</div>
|
127
|
-
|
146
|
+
|
128
147
|
<div id="footer">
|
129
|
-
Generated on
|
148
|
+
Generated on Wed Jan 8 10:43:04 2014 by
|
130
149
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
131
|
-
0.
|
150
|
+
0.8.2.1 (ruby-1.9.2).
|
132
151
|
</div>
|
133
152
|
|
134
153
|
</body>
|