stacked 0.5.0 → 1.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +3 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +43 -0
- data/LICENSE +1 -1
- data/README.markdown +58 -25
- data/Rakefile +6 -45
- data/genddoc.sh +4 -1
- data/lib/stacked.rb +11 -9
- data/lib/stacked/answer.rb +10 -27
- data/lib/stacked/badge.rb +15 -11
- data/lib/stacked/base.rb +59 -92
- data/lib/stacked/client.rb +31 -0
- data/lib/stacked/comment.rb +13 -18
- data/lib/stacked/parser.rb +47 -0
- data/lib/stacked/post_timeline.rb +17 -0
- data/lib/stacked/question.rb +52 -51
- data/lib/stacked/{reputation.rb → rep_change.rb} +5 -3
- data/lib/stacked/tag.rb +10 -2
- data/lib/stacked/user.rb +29 -161
- data/lib/stacked/{usertimeline.rb → user_timeline.rb} +5 -5
- data/lib/stacked/version.rb +4 -0
- data/spec/fakes/answers/1237127 +0 -0
- data/spec/fakes/answers/2272830 +0 -0
- data/spec/fakes/answers/2558700 +0 -0
- data/spec/fakes/badges/index +0 -0
- data/spec/fakes/badges/name +0 -0
- data/spec/fakes/badges/tags +0 -0
- data/spec/fakes/comments/1063043 +0 -0
- data/spec/fakes/comments/2561833 +0 -0
- data/spec/fakes/questions/1236996 +0 -0
- data/spec/fakes/questions/1236996-answers +0 -0
- data/spec/fakes/questions/1236996-comments +0 -0
- data/spec/fakes/questions/1236996-timeline +0 -0
- data/spec/fakes/questions/4839321/answers +0 -0
- data/spec/fakes/questions/index +0 -0
- data/spec/fakes/questions/search +0 -0
- data/spec/fakes/questions/tagged +0 -0
- data/spec/fakes/questions/unanswered +0 -0
- data/spec/fakes/questions/withcomments +0 -0
- data/spec/fakes/stats/index +0 -0
- data/spec/fakes/tags/activity +0 -0
- data/spec/fakes/tags/index +0 -0
- data/spec/fakes/tags/name +0 -0
- data/spec/fakes/tags/popular +0 -0
- data/spec/fakes/users/148722 +0 -0
- data/spec/fakes/users/148722-comments +0 -0
- data/spec/fakes/users/148722-comments-by-creation +0 -0
- data/spec/fakes/users/148722-comments-by-votes +0 -0
- data/spec/fakes/users/22656 +0 -0
- data/spec/fakes/users/22656-answers +0 -0
- data/spec/fakes/users/22656-answers-by-activity +0 -0
- data/spec/fakes/users/22656-answers-by-creation +0 -0
- data/spec/fakes/users/22656-answers-by-views +0 -0
- data/spec/fakes/users/22656-answers-by-votes +0 -0
- data/spec/fakes/users/22656-badges +0 -0
- data/spec/fakes/users/22656-comments-mentioning-by-creation +0 -0
- data/spec/fakes/users/22656-comments-mentioning-by-votes +0 -0
- data/spec/fakes/users/22656-favorites +0 -0
- data/spec/fakes/users/22656-favorites-by-activity +0 -0
- data/spec/fakes/users/22656-favorites-by-added +0 -0
- data/spec/fakes/users/22656-favorites-by-creation +0 -0
- data/spec/fakes/users/22656-favorites-by-views +0 -0
- data/spec/fakes/users/22656-mentioned +0 -0
- data/spec/fakes/users/22656-questions +0 -0
- data/spec/fakes/users/22656-questions-by-activity +0 -0
- data/spec/fakes/users/22656-questions-by-creation +0 -0
- data/spec/fakes/users/22656-questions-by-views +0 -0
- data/spec/fakes/users/22656-questions-by-votes +0 -0
- data/spec/fakes/users/22656-reputation +0 -0
- data/spec/fakes/users/22656-reputation-ranged +0 -0
- data/spec/fakes/users/22656-tags +0 -0
- data/spec/fakes/users/22656-timeline +0 -0
- data/spec/fakes/users/filter +0 -0
- data/spec/fakes/users/index +0 -0
- data/spec/fakes/users/index-page2 +0 -0
- data/spec/fakes/users/index-pagesize1 +0 -0
- data/spec/fakes/users/name +0 -0
- data/spec/fakes/users/newest +0 -0
- data/spec/fakes/users/oldest +0 -0
- data/spec/sorted_by_spec.rb +2 -2
- data/spec/spec_helper.rb +10 -8
- data/spec/stacked/answer_spec.rb +9 -8
- data/spec/stacked/badge_spec.rb +11 -3
- data/spec/stacked/base_spec.rb +24 -2
- data/spec/stacked/comment_spec.rb +11 -9
- data/spec/stacked/question_spec.rb +49 -61
- data/spec/stacked/{reputation_spec.rb → rep_change_spec.rb} +9 -5
- data/spec/stacked/tag_spec.rb +13 -6
- data/spec/stacked/user_spec.rb +99 -70
- data/spec/stacked/{usertimeline_spec.rb → user_timeline_spec.rb} +1 -1
- data/spec/support/fakes.rb +28 -0
- data/spec/support/{sorted_by.rb → matchers/sorted_by.rb} +7 -6
- data/spec/support/{within.rb → matchers/within.rb} +3 -3
- data/spec/within_spec.rb +2 -2
- data/stacked.gemspec +23 -112
- metadata +248 -54
- data/README.rdoc +0 -18
- data/VERSION +0 -1
- data/doc/Stacked.html +0 -155
- data/doc/Stacked/Answer.html +0 -1394
- data/doc/Stacked/Badge.html +0 -480
- data/doc/Stacked/Base.html +0 -1124
- data/doc/Stacked/Comment.html +0 -1037
- data/doc/Stacked/NotImplemented.html +0 -162
- data/doc/Stacked/Posttimeline.html +0 -543
- data/doc/Stacked/Question.html +0 -1763
- data/doc/Stacked/Reputation.html +0 -606
- data/doc/Stacked/Tag.html +0 -267
- data/doc/Stacked/User.html +0 -2787
- data/doc/Stacked/Usertimeline.html +0 -630
- data/doc/_index.html +0 -246
- data/doc/file.README.html +0 -54
- data/doc/index.html +0 -54
- data/doc/method_list.html +0 -1203
- data/doc/top-level-namespace.html +0 -87
- data/lib/stacked/posttimeline.rb +0 -10
data/doc/Stacked/Answer.html
DELETED
@@ -1,1394 +0,0 @@
|
|
1
|
-
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
-
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
-
<head>
|
5
|
-
<meta name="Content-Type" content="text/html; charset=utf-8" />
|
6
|
-
<title>Class: Stacked::Answer</title>
|
7
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
|
9
|
-
|
10
|
-
<script type="text/javascript" charset="utf-8">
|
11
|
-
relpath = '..';
|
12
|
-
if (relpath != '') relpath += '/';
|
13
|
-
</script>
|
14
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
15
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
16
|
-
|
17
|
-
</head>
|
18
|
-
<body>
|
19
|
-
<script type="text/javascript" charset="utf-8">
|
20
|
-
if (window.top.frames.main) document.body.className = 'frames';
|
21
|
-
</script>
|
22
|
-
|
23
|
-
<div id="header">
|
24
|
-
<div id="menu">
|
25
|
-
|
26
|
-
<a href="../_index.html">Index (A)</a> »
|
27
|
-
<span class='title'><a href="../Stacked.html" title="Stacked (module)">Stacked</a></span>
|
28
|
-
»
|
29
|
-
<span class="title">Answer</span>
|
30
|
-
|
31
|
-
|
32
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="search">
|
36
|
-
<a id="class_list_link" href="#">Class List</a>
|
37
|
-
<a id="method_list_link" href="#">Method List</a>
|
38
|
-
<a id ="file_list_link" href="#">File List</a>
|
39
|
-
</div>
|
40
|
-
|
41
|
-
<div class="clear"></div>
|
42
|
-
</div>
|
43
|
-
|
44
|
-
<iframe id="search_frame"></iframe>
|
45
|
-
|
46
|
-
<div id="content"><h1>Class: Stacked::Answer
|
47
|
-
|
48
|
-
|
49
|
-
</h1>
|
50
|
-
|
51
|
-
<dl class="box">
|
52
|
-
|
53
|
-
<dt class="r1">Inherits:</dt>
|
54
|
-
<dd class="r1">
|
55
|
-
<span class="inheritName"><a href="Base.html" title="Stacked::Base (class)">Base</a></span>
|
56
|
-
|
57
|
-
<ul class="fullTree">
|
58
|
-
<li>Object</li>
|
59
|
-
|
60
|
-
<li class="next"><a href="Base.html" title="Stacked::Base (class)">Base</a></li>
|
61
|
-
|
62
|
-
<li class="next">Stacked::Answer</li>
|
63
|
-
|
64
|
-
</ul>
|
65
|
-
<a href="#" class="inheritanceTree">show all</a>
|
66
|
-
|
67
|
-
</dd>
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
<dt class="r2 last">Defined in:</dt>
|
78
|
-
<dd class="r2 last">lib/stacked/answer.rb</dd>
|
79
|
-
|
80
|
-
</dl>
|
81
|
-
<div class="clear"></div>
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
<h2>Instance Attribute Summary</h2>
|
91
|
-
<ul class="summary">
|
92
|
-
|
93
|
-
<li class="public ">
|
94
|
-
<span class="summary_signature">
|
95
|
-
|
96
|
-
<a href="#accepted-instance_method" title="#accepted (instance method)">- (Object) <strong>accepted</strong> </a>
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
</span>
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
<span class="summary_desc"><div class='inline'><p>
|
112
|
-
Returns the value of attribute accepted.
|
113
|
-
</p>
|
114
|
-
</div></span>
|
115
|
-
|
116
|
-
</li>
|
117
|
-
|
118
|
-
|
119
|
-
<li class="public ">
|
120
|
-
<span class="summary_signature">
|
121
|
-
|
122
|
-
<a href="#answer_id-instance_method" title="#answer_id (instance method)">- (Object) <strong>answer_id</strong> </a>
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
(also: #id)
|
127
|
-
|
128
|
-
</span>
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
<span class="summary_desc"><div class='inline'><p>
|
140
|
-
Returns the value of attribute answer_id.
|
141
|
-
</p>
|
142
|
-
</div></span>
|
143
|
-
|
144
|
-
</li>
|
145
|
-
|
146
|
-
|
147
|
-
<li class="public ">
|
148
|
-
<span class="summary_signature">
|
149
|
-
|
150
|
-
<a href="#body-instance_method" title="#body (instance method)">- (Object) <strong>body</strong> </a>
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
</span>
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
<span class="summary_desc"><div class='inline'><p>
|
166
|
-
Returns the value of attribute body.
|
167
|
-
</p>
|
168
|
-
</div></span>
|
169
|
-
|
170
|
-
</li>
|
171
|
-
|
172
|
-
|
173
|
-
<li class="public ">
|
174
|
-
<span class="summary_signature">
|
175
|
-
|
176
|
-
<a href="#comments-instance_method" title="#comments (instance method)">- (Object) <strong>comments</strong> </a>
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
</span>
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
<span class="summary_desc"><div class='inline'><p>
|
192
|
-
Returns the value of attribute comments.
|
193
|
-
</p>
|
194
|
-
</div></span>
|
195
|
-
|
196
|
-
</li>
|
197
|
-
|
198
|
-
|
199
|
-
<li class="public ">
|
200
|
-
<span class="summary_signature">
|
201
|
-
|
202
|
-
<a href="#community_owned-instance_method" title="#community_owned (instance method)">- (Object) <strong>community_owned</strong> </a>
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
</span>
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
<span class="summary_desc"><div class='inline'><p>
|
218
|
-
Returns the value of attribute community_owned.
|
219
|
-
</p>
|
220
|
-
</div></span>
|
221
|
-
|
222
|
-
</li>
|
223
|
-
|
224
|
-
|
225
|
-
<li class="public ">
|
226
|
-
<span class="summary_signature">
|
227
|
-
|
228
|
-
<a href="#creation_date-instance_method" title="#creation_date (instance method)">- (Object) <strong>creation_date</strong> </a>
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
(also: #created_at)
|
233
|
-
|
234
|
-
</span>
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
<span class="summary_desc"><div class='inline'><p>
|
246
|
-
Returns the value of attribute creation_date.
|
247
|
-
</p>
|
248
|
-
</div></span>
|
249
|
-
|
250
|
-
</li>
|
251
|
-
|
252
|
-
|
253
|
-
<li class="public ">
|
254
|
-
<span class="summary_signature">
|
255
|
-
|
256
|
-
<a href="#down_vote_count-instance_method" title="#down_vote_count (instance method)">- (Object) <strong>down_vote_count</strong> </a>
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
</span>
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
<span class="summary_desc"><div class='inline'><p>
|
272
|
-
Returns the value of attribute down_vote_count.
|
273
|
-
</p>
|
274
|
-
</div></span>
|
275
|
-
|
276
|
-
</li>
|
277
|
-
|
278
|
-
|
279
|
-
<li class="public ">
|
280
|
-
<span class="summary_signature">
|
281
|
-
|
282
|
-
<a href="#last_edit_date-instance_method" title="#last_edit_date (instance method)">- (Object) <strong>last_edit_date</strong> </a>
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
(also: #updated_at)
|
287
|
-
|
288
|
-
</span>
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
<span class="summary_desc"><div class='inline'><p>
|
300
|
-
Returns the value of attribute last_edit_date.
|
301
|
-
</p>
|
302
|
-
</div></span>
|
303
|
-
|
304
|
-
</li>
|
305
|
-
|
306
|
-
|
307
|
-
<li class="public ">
|
308
|
-
<span class="summary_signature">
|
309
|
-
|
310
|
-
<a href="#owner_display_name-instance_method" title="#owner_display_name (instance method)">- (Object) <strong>owner_display_name</strong> </a>
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
</span>
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
<span class="summary_desc"><div class='inline'><p>
|
326
|
-
Returns the value of attribute owner_display_name.
|
327
|
-
</p>
|
328
|
-
</div></span>
|
329
|
-
|
330
|
-
</li>
|
331
|
-
|
332
|
-
|
333
|
-
<li class="public ">
|
334
|
-
<span class="summary_signature">
|
335
|
-
|
336
|
-
<a href="#owner_user_id-instance_method" title="#owner_user_id (instance method)">- (Object) <strong>owner_user_id</strong> </a>
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
</span>
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
<span class="summary_desc"><div class='inline'><p>
|
352
|
-
Returns the value of attribute owner_user_id.
|
353
|
-
</p>
|
354
|
-
</div></span>
|
355
|
-
|
356
|
-
</li>
|
357
|
-
|
358
|
-
|
359
|
-
<li class="public ">
|
360
|
-
<span class="summary_signature">
|
361
|
-
|
362
|
-
<a href="#question_id-instance_method" title="#question_id (instance method)">- (Object) <strong>question_id</strong> </a>
|
363
|
-
|
364
|
-
|
365
|
-
|
366
|
-
</span>
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
<span class="summary_desc"><div class='inline'><p>
|
378
|
-
Returns the value of attribute question_id.
|
379
|
-
</p>
|
380
|
-
</div></span>
|
381
|
-
|
382
|
-
</li>
|
383
|
-
|
384
|
-
|
385
|
-
<li class="public ">
|
386
|
-
<span class="summary_signature">
|
387
|
-
|
388
|
-
<a href="#score-instance_method" title="#score (instance method)">- (Object) <strong>score</strong> </a>
|
389
|
-
|
390
|
-
|
391
|
-
|
392
|
-
</span>
|
393
|
-
|
394
|
-
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
<span class="summary_desc"><div class='inline'><p>
|
404
|
-
Returns the value of attribute score.
|
405
|
-
</p>
|
406
|
-
</div></span>
|
407
|
-
|
408
|
-
</li>
|
409
|
-
|
410
|
-
|
411
|
-
<li class="public ">
|
412
|
-
<span class="summary_signature">
|
413
|
-
|
414
|
-
<a href="#title-instance_method" title="#title (instance method)">- (Object) <strong>title</strong> </a>
|
415
|
-
|
416
|
-
|
417
|
-
|
418
|
-
</span>
|
419
|
-
|
420
|
-
|
421
|
-
|
422
|
-
|
423
|
-
|
424
|
-
|
425
|
-
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
<span class="summary_desc"><div class='inline'><p>
|
430
|
-
Returns the value of attribute title.
|
431
|
-
</p>
|
432
|
-
</div></span>
|
433
|
-
|
434
|
-
</li>
|
435
|
-
|
436
|
-
|
437
|
-
<li class="public ">
|
438
|
-
<span class="summary_signature">
|
439
|
-
|
440
|
-
<a href="#up_vote_count-instance_method" title="#up_vote_count (instance method)">- (Object) <strong>up_vote_count</strong> </a>
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
(also: #up_votes)
|
445
|
-
|
446
|
-
</span>
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
<span class="summary_desc"><div class='inline'><p>
|
458
|
-
Returns the value of attribute up_vote_count.
|
459
|
-
</p>
|
460
|
-
</div></span>
|
461
|
-
|
462
|
-
</li>
|
463
|
-
|
464
|
-
|
465
|
-
<li class="public ">
|
466
|
-
<span class="summary_signature">
|
467
|
-
|
468
|
-
<a href="#view_count-instance_method" title="#view_count (instance method)">- (Object) <strong>view_count</strong> </a>
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
(also: #views)
|
473
|
-
|
474
|
-
</span>
|
475
|
-
|
476
|
-
|
477
|
-
|
478
|
-
|
479
|
-
|
480
|
-
|
481
|
-
|
482
|
-
|
483
|
-
|
484
|
-
|
485
|
-
<span class="summary_desc"><div class='inline'><p>
|
486
|
-
Returns the value of attribute view_count.
|
487
|
-
</p>
|
488
|
-
</div></span>
|
489
|
-
|
490
|
-
</li>
|
491
|
-
|
492
|
-
|
493
|
-
</ul>
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
<h2>Class Method Summary</h2>
|
498
|
-
|
499
|
-
<ul class="summary">
|
500
|
-
|
501
|
-
<li class="public ">
|
502
|
-
<span class="summary_signature">
|
503
|
-
|
504
|
-
<a href="#all-class_method" title="all (class method)">+ (Object) <strong>all</strong>(*args) </a>
|
505
|
-
|
506
|
-
|
507
|
-
|
508
|
-
</span>
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
515
|
-
|
516
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
517
|
-
|
518
|
-
</li>
|
519
|
-
|
520
|
-
|
521
|
-
</ul>
|
522
|
-
|
523
|
-
<h2>Instance Method Summary</h2>
|
524
|
-
|
525
|
-
<ul class="summary">
|
526
|
-
|
527
|
-
<li class="public ">
|
528
|
-
<span class="summary_signature">
|
529
|
-
|
530
|
-
<a href="#owner-instance_method" title="#owner (instance method)">- (Object) <strong>owner</strong> </a>
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
(also: #user)
|
535
|
-
|
536
|
-
</span>
|
537
|
-
|
538
|
-
|
539
|
-
|
540
|
-
|
541
|
-
|
542
|
-
|
543
|
-
|
544
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
545
|
-
|
546
|
-
</li>
|
547
|
-
|
548
|
-
|
549
|
-
<li class="public ">
|
550
|
-
<span class="summary_signature">
|
551
|
-
|
552
|
-
<a href="#question-instance_method" title="#question (instance method)">- (Object) <strong>question</strong> </a>
|
553
|
-
|
554
|
-
|
555
|
-
|
556
|
-
</span>
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
561
|
-
|
562
|
-
|
563
|
-
|
564
|
-
<span class="summary_desc"><div class='inline'></div></span>
|
565
|
-
|
566
|
-
</li>
|
567
|
-
|
568
|
-
|
569
|
-
</ul>
|
570
|
-
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
|
576
|
-
|
577
|
-
|
578
|
-
|
579
|
-
|
580
|
-
<h3 class="inherited">Methods inherited from <a href="Base.html" title="Stacked::Base (class)">Base</a></h3>
|
581
|
-
<p class="inherited"><a href="Base.html#association-class_method" title="Stacked::Base.association (method)">association</a>, <a href="Base.html#collection-class_method" title="Stacked::Base.collection (method)">collection</a>, <a href="Base.html#find-class_method" title="Stacked::Base.find (method)">find</a>, <a href="Base.html#initialize-instance_method" title="Stacked::Base#initialize (method)">#initialize</a>, <a href="Base.html#parse_answers-instance_method" title="Stacked::Base#parse_answers (method)">#parse_answers</a>, <a href="Base.html#parse_badges-instance_method" title="Stacked::Base#parse_badges (method)">#parse_badges</a>, <a href="Base.html#parse_comments-instance_method" title="Stacked::Base#parse_comments (method)">#parse_comments</a>, <a href="Base.html#parse_post_timeline-instance_method" title="Stacked::Base#parse_post_timeline (method)">#parse_post_timeline</a>, <a href="Base.html#parse_questions-instance_method" title="Stacked::Base#parse_questions (method)">#parse_questions</a>, <a href="Base.html#parse_reputations-instance_method" title="Stacked::Base#parse_reputations (method)">#parse_reputations</a>, <a href="Base.html#parse_tags-instance_method" title="Stacked::Base#parse_tags (method)">#parse_tags</a>, <a href="Base.html#parse_type-instance_method" title="Stacked::Base#parse_type (method)">#parse_type</a>, <a href="Base.html#parse_user_timeline-instance_method" title="Stacked::Base#parse_user_timeline (method)">#parse_user_timeline</a>, <a href="Base.html#post-instance_method" title="Stacked::Base#post (method)">#post</a>, <a href="Base.html#records-class_method" title="Stacked::Base.records (method)">records</a>, <a href="Base.html#request-class_method" title="Stacked::Base.request (method)">request</a>, <a href="Base.html#singular-class_method" title="Stacked::Base.singular (method)">singular</a>, <a href="Base.html#stats-class_method" title="Stacked::Base.stats (method)">stats</a></p>
|
582
|
-
|
583
|
-
<div id="constructor_details" class="method_details_list">
|
584
|
-
<h2>Constructor Details</h2>
|
585
|
-
|
586
|
-
<p class="notice">This class inherits a constructor from <a href="Base.html#initialize-instance_method" title="Stacked::Base#initialize (method)">Stacked::Base</a></p>
|
587
|
-
|
588
|
-
</div>
|
589
|
-
|
590
|
-
<div id="instance_attr_details" class="attr_details">
|
591
|
-
<h2>Instance Attribute Details</h2>
|
592
|
-
|
593
|
-
|
594
|
-
<span id="accepted=-instance_method"></span>
|
595
|
-
<span id="accepted-instance_method"></span>
|
596
|
-
<div class="method_details first">
|
597
|
-
<p class="signature first" id="accepted-instance_method">
|
598
|
-
|
599
|
-
- (<tt>Object</tt>) <strong>accepted</strong>
|
600
|
-
|
601
|
-
|
602
|
-
|
603
|
-
</p><div class="docstring">
|
604
|
-
<div class="discussion">
|
605
|
-
<p>
|
606
|
-
Returns the value of attribute accepted
|
607
|
-
</p>
|
608
|
-
|
609
|
-
|
610
|
-
</div>
|
611
|
-
</div>
|
612
|
-
<div class="tags">
|
613
|
-
|
614
|
-
</div><table class="source_code">
|
615
|
-
<tr>
|
616
|
-
<td>
|
617
|
-
<pre class="lines">
|
618
|
-
|
619
|
-
|
620
|
-
3
|
621
|
-
4
|
622
|
-
5</pre>
|
623
|
-
</td>
|
624
|
-
<td>
|
625
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
626
|
-
|
627
|
-
<span class='def def kw'>def</span> <span class='accepted identifier id'>accepted</span>
|
628
|
-
<span class='@accepted ivar id'>@accepted</span>
|
629
|
-
<span class='end end kw'>end</span>
|
630
|
-
</pre>
|
631
|
-
</td>
|
632
|
-
</tr>
|
633
|
-
</table>
|
634
|
-
</div>
|
635
|
-
|
636
|
-
|
637
|
-
<span id="answer_id=-instance_method"></span>
|
638
|
-
<span id="answer_id-instance_method"></span>
|
639
|
-
<div class="method_details ">
|
640
|
-
<p class="signature " id="answer_id-instance_method">
|
641
|
-
|
642
|
-
- (<tt>Object</tt>) <strong>answer_id</strong>
|
643
|
-
|
644
|
-
|
645
|
-
|
646
|
-
<span class="aliases">Also known as:
|
647
|
-
<span class="names"><span id='id-instance_method'>id</span></span>
|
648
|
-
</span>
|
649
|
-
|
650
|
-
</p><div class="docstring">
|
651
|
-
<div class="discussion">
|
652
|
-
<p>
|
653
|
-
Returns the value of attribute answer_id
|
654
|
-
</p>
|
655
|
-
|
656
|
-
|
657
|
-
</div>
|
658
|
-
</div>
|
659
|
-
<div class="tags">
|
660
|
-
|
661
|
-
</div><table class="source_code">
|
662
|
-
<tr>
|
663
|
-
<td>
|
664
|
-
<pre class="lines">
|
665
|
-
|
666
|
-
|
667
|
-
3
|
668
|
-
4
|
669
|
-
5</pre>
|
670
|
-
</td>
|
671
|
-
<td>
|
672
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
673
|
-
|
674
|
-
<span class='def def kw'>def</span> <span class='answer_id identifier id'>answer_id</span>
|
675
|
-
<span class='@answer_id ivar id'>@answer_id</span>
|
676
|
-
<span class='end end kw'>end</span>
|
677
|
-
</pre>
|
678
|
-
</td>
|
679
|
-
</tr>
|
680
|
-
</table>
|
681
|
-
</div>
|
682
|
-
|
683
|
-
|
684
|
-
<span id="body=-instance_method"></span>
|
685
|
-
<span id="body-instance_method"></span>
|
686
|
-
<div class="method_details ">
|
687
|
-
<p class="signature " id="body-instance_method">
|
688
|
-
|
689
|
-
- (<tt>Object</tt>) <strong>body</strong>
|
690
|
-
|
691
|
-
|
692
|
-
|
693
|
-
</p><div class="docstring">
|
694
|
-
<div class="discussion">
|
695
|
-
<p>
|
696
|
-
Returns the value of attribute body
|
697
|
-
</p>
|
698
|
-
|
699
|
-
|
700
|
-
</div>
|
701
|
-
</div>
|
702
|
-
<div class="tags">
|
703
|
-
|
704
|
-
</div><table class="source_code">
|
705
|
-
<tr>
|
706
|
-
<td>
|
707
|
-
<pre class="lines">
|
708
|
-
|
709
|
-
|
710
|
-
3
|
711
|
-
4
|
712
|
-
5</pre>
|
713
|
-
</td>
|
714
|
-
<td>
|
715
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
716
|
-
|
717
|
-
<span class='def def kw'>def</span> <span class='body identifier id'>body</span>
|
718
|
-
<span class='@body ivar id'>@body</span>
|
719
|
-
<span class='end end kw'>end</span>
|
720
|
-
</pre>
|
721
|
-
</td>
|
722
|
-
</tr>
|
723
|
-
</table>
|
724
|
-
</div>
|
725
|
-
|
726
|
-
|
727
|
-
<span id="comments=-instance_method"></span>
|
728
|
-
<span id="comments-instance_method"></span>
|
729
|
-
<div class="method_details ">
|
730
|
-
<p class="signature " id="comments-instance_method">
|
731
|
-
|
732
|
-
- (<tt>Object</tt>) <strong>comments</strong>
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
</p><div class="docstring">
|
737
|
-
<div class="discussion">
|
738
|
-
<p>
|
739
|
-
Returns the value of attribute comments
|
740
|
-
</p>
|
741
|
-
|
742
|
-
|
743
|
-
</div>
|
744
|
-
</div>
|
745
|
-
<div class="tags">
|
746
|
-
|
747
|
-
</div><table class="source_code">
|
748
|
-
<tr>
|
749
|
-
<td>
|
750
|
-
<pre class="lines">
|
751
|
-
|
752
|
-
|
753
|
-
3
|
754
|
-
4
|
755
|
-
5</pre>
|
756
|
-
</td>
|
757
|
-
<td>
|
758
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
759
|
-
|
760
|
-
<span class='def def kw'>def</span> <span class='comments identifier id'>comments</span>
|
761
|
-
<span class='@comments ivar id'>@comments</span>
|
762
|
-
<span class='end end kw'>end</span>
|
763
|
-
</pre>
|
764
|
-
</td>
|
765
|
-
</tr>
|
766
|
-
</table>
|
767
|
-
</div>
|
768
|
-
|
769
|
-
|
770
|
-
<span id="community_owned=-instance_method"></span>
|
771
|
-
<span id="community_owned-instance_method"></span>
|
772
|
-
<div class="method_details ">
|
773
|
-
<p class="signature " id="community_owned-instance_method">
|
774
|
-
|
775
|
-
- (<tt>Object</tt>) <strong>community_owned</strong>
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
</p><div class="docstring">
|
780
|
-
<div class="discussion">
|
781
|
-
<p>
|
782
|
-
Returns the value of attribute community_owned
|
783
|
-
</p>
|
784
|
-
|
785
|
-
|
786
|
-
</div>
|
787
|
-
</div>
|
788
|
-
<div class="tags">
|
789
|
-
|
790
|
-
</div><table class="source_code">
|
791
|
-
<tr>
|
792
|
-
<td>
|
793
|
-
<pre class="lines">
|
794
|
-
|
795
|
-
|
796
|
-
3
|
797
|
-
4
|
798
|
-
5</pre>
|
799
|
-
</td>
|
800
|
-
<td>
|
801
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
802
|
-
|
803
|
-
<span class='def def kw'>def</span> <span class='community_owned identifier id'>community_owned</span>
|
804
|
-
<span class='@community_owned ivar id'>@community_owned</span>
|
805
|
-
<span class='end end kw'>end</span>
|
806
|
-
</pre>
|
807
|
-
</td>
|
808
|
-
</tr>
|
809
|
-
</table>
|
810
|
-
</div>
|
811
|
-
|
812
|
-
|
813
|
-
<span id="creation_date=-instance_method"></span>
|
814
|
-
<span id="creation_date-instance_method"></span>
|
815
|
-
<div class="method_details ">
|
816
|
-
<p class="signature " id="creation_date-instance_method">
|
817
|
-
|
818
|
-
- (<tt>Object</tt>) <strong>creation_date</strong>
|
819
|
-
|
820
|
-
|
821
|
-
|
822
|
-
<span class="aliases">Also known as:
|
823
|
-
<span class="names"><span id='created_at-instance_method'>created_at</span></span>
|
824
|
-
</span>
|
825
|
-
|
826
|
-
</p><div class="docstring">
|
827
|
-
<div class="discussion">
|
828
|
-
<p>
|
829
|
-
Returns the value of attribute creation_date
|
830
|
-
</p>
|
831
|
-
|
832
|
-
|
833
|
-
</div>
|
834
|
-
</div>
|
835
|
-
<div class="tags">
|
836
|
-
|
837
|
-
</div><table class="source_code">
|
838
|
-
<tr>
|
839
|
-
<td>
|
840
|
-
<pre class="lines">
|
841
|
-
|
842
|
-
|
843
|
-
3
|
844
|
-
4
|
845
|
-
5</pre>
|
846
|
-
</td>
|
847
|
-
<td>
|
848
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
849
|
-
|
850
|
-
<span class='def def kw'>def</span> <span class='creation_date identifier id'>creation_date</span>
|
851
|
-
<span class='@creation_date ivar id'>@creation_date</span>
|
852
|
-
<span class='end end kw'>end</span>
|
853
|
-
</pre>
|
854
|
-
</td>
|
855
|
-
</tr>
|
856
|
-
</table>
|
857
|
-
</div>
|
858
|
-
|
859
|
-
|
860
|
-
<span id="down_vote_count=-instance_method"></span>
|
861
|
-
<span id="down_vote_count-instance_method"></span>
|
862
|
-
<div class="method_details ">
|
863
|
-
<p class="signature " id="down_vote_count-instance_method">
|
864
|
-
|
865
|
-
- (<tt>Object</tt>) <strong>down_vote_count</strong>
|
866
|
-
|
867
|
-
|
868
|
-
|
869
|
-
</p><div class="docstring">
|
870
|
-
<div class="discussion">
|
871
|
-
<p>
|
872
|
-
Returns the value of attribute down_vote_count
|
873
|
-
</p>
|
874
|
-
|
875
|
-
|
876
|
-
</div>
|
877
|
-
</div>
|
878
|
-
<div class="tags">
|
879
|
-
|
880
|
-
</div><table class="source_code">
|
881
|
-
<tr>
|
882
|
-
<td>
|
883
|
-
<pre class="lines">
|
884
|
-
|
885
|
-
|
886
|
-
3
|
887
|
-
4
|
888
|
-
5</pre>
|
889
|
-
</td>
|
890
|
-
<td>
|
891
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
892
|
-
|
893
|
-
<span class='def def kw'>def</span> <span class='down_vote_count identifier id'>down_vote_count</span>
|
894
|
-
<span class='@down_vote_count ivar id'>@down_vote_count</span>
|
895
|
-
<span class='end end kw'>end</span>
|
896
|
-
</pre>
|
897
|
-
</td>
|
898
|
-
</tr>
|
899
|
-
</table>
|
900
|
-
</div>
|
901
|
-
|
902
|
-
|
903
|
-
<span id="last_edit_date=-instance_method"></span>
|
904
|
-
<span id="last_edit_date-instance_method"></span>
|
905
|
-
<div class="method_details ">
|
906
|
-
<p class="signature " id="last_edit_date-instance_method">
|
907
|
-
|
908
|
-
- (<tt>Object</tt>) <strong>last_edit_date</strong>
|
909
|
-
|
910
|
-
|
911
|
-
|
912
|
-
<span class="aliases">Also known as:
|
913
|
-
<span class="names"><span id='updated_at-instance_method'>updated_at</span></span>
|
914
|
-
</span>
|
915
|
-
|
916
|
-
</p><div class="docstring">
|
917
|
-
<div class="discussion">
|
918
|
-
<p>
|
919
|
-
Returns the value of attribute last_edit_date
|
920
|
-
</p>
|
921
|
-
|
922
|
-
|
923
|
-
</div>
|
924
|
-
</div>
|
925
|
-
<div class="tags">
|
926
|
-
|
927
|
-
</div><table class="source_code">
|
928
|
-
<tr>
|
929
|
-
<td>
|
930
|
-
<pre class="lines">
|
931
|
-
|
932
|
-
|
933
|
-
3
|
934
|
-
4
|
935
|
-
5</pre>
|
936
|
-
</td>
|
937
|
-
<td>
|
938
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
939
|
-
|
940
|
-
<span class='def def kw'>def</span> <span class='last_edit_date identifier id'>last_edit_date</span>
|
941
|
-
<span class='@last_edit_date ivar id'>@last_edit_date</span>
|
942
|
-
<span class='end end kw'>end</span>
|
943
|
-
</pre>
|
944
|
-
</td>
|
945
|
-
</tr>
|
946
|
-
</table>
|
947
|
-
</div>
|
948
|
-
|
949
|
-
|
950
|
-
<span id="owner_display_name=-instance_method"></span>
|
951
|
-
<span id="owner_display_name-instance_method"></span>
|
952
|
-
<div class="method_details ">
|
953
|
-
<p class="signature " id="owner_display_name-instance_method">
|
954
|
-
|
955
|
-
- (<tt>Object</tt>) <strong>owner_display_name</strong>
|
956
|
-
|
957
|
-
|
958
|
-
|
959
|
-
</p><div class="docstring">
|
960
|
-
<div class="discussion">
|
961
|
-
<p>
|
962
|
-
Returns the value of attribute owner_display_name
|
963
|
-
</p>
|
964
|
-
|
965
|
-
|
966
|
-
</div>
|
967
|
-
</div>
|
968
|
-
<div class="tags">
|
969
|
-
|
970
|
-
</div><table class="source_code">
|
971
|
-
<tr>
|
972
|
-
<td>
|
973
|
-
<pre class="lines">
|
974
|
-
|
975
|
-
|
976
|
-
3
|
977
|
-
4
|
978
|
-
5</pre>
|
979
|
-
</td>
|
980
|
-
<td>
|
981
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
982
|
-
|
983
|
-
<span class='def def kw'>def</span> <span class='owner_display_name identifier id'>owner_display_name</span>
|
984
|
-
<span class='@owner_display_name ivar id'>@owner_display_name</span>
|
985
|
-
<span class='end end kw'>end</span>
|
986
|
-
</pre>
|
987
|
-
</td>
|
988
|
-
</tr>
|
989
|
-
</table>
|
990
|
-
</div>
|
991
|
-
|
992
|
-
|
993
|
-
<span id="owner_user_id=-instance_method"></span>
|
994
|
-
<span id="owner_user_id-instance_method"></span>
|
995
|
-
<div class="method_details ">
|
996
|
-
<p class="signature " id="owner_user_id-instance_method">
|
997
|
-
|
998
|
-
- (<tt>Object</tt>) <strong>owner_user_id</strong>
|
999
|
-
|
1000
|
-
|
1001
|
-
|
1002
|
-
</p><div class="docstring">
|
1003
|
-
<div class="discussion">
|
1004
|
-
<p>
|
1005
|
-
Returns the value of attribute owner_user_id
|
1006
|
-
</p>
|
1007
|
-
|
1008
|
-
|
1009
|
-
</div>
|
1010
|
-
</div>
|
1011
|
-
<div class="tags">
|
1012
|
-
|
1013
|
-
</div><table class="source_code">
|
1014
|
-
<tr>
|
1015
|
-
<td>
|
1016
|
-
<pre class="lines">
|
1017
|
-
|
1018
|
-
|
1019
|
-
3
|
1020
|
-
4
|
1021
|
-
5</pre>
|
1022
|
-
</td>
|
1023
|
-
<td>
|
1024
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
1025
|
-
|
1026
|
-
<span class='def def kw'>def</span> <span class='owner_user_id identifier id'>owner_user_id</span>
|
1027
|
-
<span class='@owner_user_id ivar id'>@owner_user_id</span>
|
1028
|
-
<span class='end end kw'>end</span>
|
1029
|
-
</pre>
|
1030
|
-
</td>
|
1031
|
-
</tr>
|
1032
|
-
</table>
|
1033
|
-
</div>
|
1034
|
-
|
1035
|
-
|
1036
|
-
<span id="question_id=-instance_method"></span>
|
1037
|
-
<span id="question_id-instance_method"></span>
|
1038
|
-
<div class="method_details ">
|
1039
|
-
<p class="signature " id="question_id-instance_method">
|
1040
|
-
|
1041
|
-
- (<tt>Object</tt>) <strong>question_id</strong>
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
</p><div class="docstring">
|
1046
|
-
<div class="discussion">
|
1047
|
-
<p>
|
1048
|
-
Returns the value of attribute question_id
|
1049
|
-
</p>
|
1050
|
-
|
1051
|
-
|
1052
|
-
</div>
|
1053
|
-
</div>
|
1054
|
-
<div class="tags">
|
1055
|
-
|
1056
|
-
</div><table class="source_code">
|
1057
|
-
<tr>
|
1058
|
-
<td>
|
1059
|
-
<pre class="lines">
|
1060
|
-
|
1061
|
-
|
1062
|
-
3
|
1063
|
-
4
|
1064
|
-
5</pre>
|
1065
|
-
</td>
|
1066
|
-
<td>
|
1067
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
1068
|
-
|
1069
|
-
<span class='def def kw'>def</span> <span class='question_id identifier id'>question_id</span>
|
1070
|
-
<span class='@question_id ivar id'>@question_id</span>
|
1071
|
-
<span class='end end kw'>end</span>
|
1072
|
-
</pre>
|
1073
|
-
</td>
|
1074
|
-
</tr>
|
1075
|
-
</table>
|
1076
|
-
</div>
|
1077
|
-
|
1078
|
-
|
1079
|
-
<span id="score=-instance_method"></span>
|
1080
|
-
<span id="score-instance_method"></span>
|
1081
|
-
<div class="method_details ">
|
1082
|
-
<p class="signature " id="score-instance_method">
|
1083
|
-
|
1084
|
-
- (<tt>Object</tt>) <strong>score</strong>
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
</p><div class="docstring">
|
1089
|
-
<div class="discussion">
|
1090
|
-
<p>
|
1091
|
-
Returns the value of attribute score
|
1092
|
-
</p>
|
1093
|
-
|
1094
|
-
|
1095
|
-
</div>
|
1096
|
-
</div>
|
1097
|
-
<div class="tags">
|
1098
|
-
|
1099
|
-
</div><table class="source_code">
|
1100
|
-
<tr>
|
1101
|
-
<td>
|
1102
|
-
<pre class="lines">
|
1103
|
-
|
1104
|
-
|
1105
|
-
3
|
1106
|
-
4
|
1107
|
-
5</pre>
|
1108
|
-
</td>
|
1109
|
-
<td>
|
1110
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
1111
|
-
|
1112
|
-
<span class='def def kw'>def</span> <span class='score identifier id'>score</span>
|
1113
|
-
<span class='@score ivar id'>@score</span>
|
1114
|
-
<span class='end end kw'>end</span>
|
1115
|
-
</pre>
|
1116
|
-
</td>
|
1117
|
-
</tr>
|
1118
|
-
</table>
|
1119
|
-
</div>
|
1120
|
-
|
1121
|
-
|
1122
|
-
<span id="title=-instance_method"></span>
|
1123
|
-
<span id="title-instance_method"></span>
|
1124
|
-
<div class="method_details ">
|
1125
|
-
<p class="signature " id="title-instance_method">
|
1126
|
-
|
1127
|
-
- (<tt>Object</tt>) <strong>title</strong>
|
1128
|
-
|
1129
|
-
|
1130
|
-
|
1131
|
-
</p><div class="docstring">
|
1132
|
-
<div class="discussion">
|
1133
|
-
<p>
|
1134
|
-
Returns the value of attribute title
|
1135
|
-
</p>
|
1136
|
-
|
1137
|
-
|
1138
|
-
</div>
|
1139
|
-
</div>
|
1140
|
-
<div class="tags">
|
1141
|
-
|
1142
|
-
</div><table class="source_code">
|
1143
|
-
<tr>
|
1144
|
-
<td>
|
1145
|
-
<pre class="lines">
|
1146
|
-
|
1147
|
-
|
1148
|
-
3
|
1149
|
-
4
|
1150
|
-
5</pre>
|
1151
|
-
</td>
|
1152
|
-
<td>
|
1153
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
1154
|
-
|
1155
|
-
<span class='def def kw'>def</span> <span class='title identifier id'>title</span>
|
1156
|
-
<span class='@title ivar id'>@title</span>
|
1157
|
-
<span class='end end kw'>end</span>
|
1158
|
-
</pre>
|
1159
|
-
</td>
|
1160
|
-
</tr>
|
1161
|
-
</table>
|
1162
|
-
</div>
|
1163
|
-
|
1164
|
-
|
1165
|
-
<span id="up_vote_count=-instance_method"></span>
|
1166
|
-
<span id="up_vote_count-instance_method"></span>
|
1167
|
-
<div class="method_details ">
|
1168
|
-
<p class="signature " id="up_vote_count-instance_method">
|
1169
|
-
|
1170
|
-
- (<tt>Object</tt>) <strong>up_vote_count</strong>
|
1171
|
-
|
1172
|
-
|
1173
|
-
|
1174
|
-
<span class="aliases">Also known as:
|
1175
|
-
<span class="names"><span id='up_votes-instance_method'>up_votes</span></span>
|
1176
|
-
</span>
|
1177
|
-
|
1178
|
-
</p><div class="docstring">
|
1179
|
-
<div class="discussion">
|
1180
|
-
<p>
|
1181
|
-
Returns the value of attribute up_vote_count
|
1182
|
-
</p>
|
1183
|
-
|
1184
|
-
|
1185
|
-
</div>
|
1186
|
-
</div>
|
1187
|
-
<div class="tags">
|
1188
|
-
|
1189
|
-
</div><table class="source_code">
|
1190
|
-
<tr>
|
1191
|
-
<td>
|
1192
|
-
<pre class="lines">
|
1193
|
-
|
1194
|
-
|
1195
|
-
3
|
1196
|
-
4
|
1197
|
-
5</pre>
|
1198
|
-
</td>
|
1199
|
-
<td>
|
1200
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
1201
|
-
|
1202
|
-
<span class='def def kw'>def</span> <span class='up_vote_count identifier id'>up_vote_count</span>
|
1203
|
-
<span class='@up_vote_count ivar id'>@up_vote_count</span>
|
1204
|
-
<span class='end end kw'>end</span>
|
1205
|
-
</pre>
|
1206
|
-
</td>
|
1207
|
-
</tr>
|
1208
|
-
</table>
|
1209
|
-
</div>
|
1210
|
-
|
1211
|
-
|
1212
|
-
<span id="view_count=-instance_method"></span>
|
1213
|
-
<span id="view_count-instance_method"></span>
|
1214
|
-
<div class="method_details ">
|
1215
|
-
<p class="signature " id="view_count-instance_method">
|
1216
|
-
|
1217
|
-
- (<tt>Object</tt>) <strong>view_count</strong>
|
1218
|
-
|
1219
|
-
|
1220
|
-
|
1221
|
-
<span class="aliases">Also known as:
|
1222
|
-
<span class="names"><span id='views-instance_method'>views</span></span>
|
1223
|
-
</span>
|
1224
|
-
|
1225
|
-
</p><div class="docstring">
|
1226
|
-
<div class="discussion">
|
1227
|
-
<p>
|
1228
|
-
Returns the value of attribute view_count
|
1229
|
-
</p>
|
1230
|
-
|
1231
|
-
|
1232
|
-
</div>
|
1233
|
-
</div>
|
1234
|
-
<div class="tags">
|
1235
|
-
|
1236
|
-
</div><table class="source_code">
|
1237
|
-
<tr>
|
1238
|
-
<td>
|
1239
|
-
<pre class="lines">
|
1240
|
-
|
1241
|
-
|
1242
|
-
3
|
1243
|
-
4
|
1244
|
-
5</pre>
|
1245
|
-
</td>
|
1246
|
-
<td>
|
1247
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 3</span>
|
1248
|
-
|
1249
|
-
<span class='def def kw'>def</span> <span class='view_count identifier id'>view_count</span>
|
1250
|
-
<span class='@view_count ivar id'>@view_count</span>
|
1251
|
-
<span class='end end kw'>end</span>
|
1252
|
-
</pre>
|
1253
|
-
</td>
|
1254
|
-
</tr>
|
1255
|
-
</table>
|
1256
|
-
</div>
|
1257
|
-
|
1258
|
-
</div>
|
1259
|
-
|
1260
|
-
|
1261
|
-
<div id="class_method_details" class="method_details_list">
|
1262
|
-
<h2>Class Method Details</h2>
|
1263
|
-
|
1264
|
-
|
1265
|
-
<div class="method_details first">
|
1266
|
-
<p class="signature first" id="all-class_method">
|
1267
|
-
|
1268
|
-
+ (<tt>Object</tt>) <strong>all</strong>(*args)
|
1269
|
-
|
1270
|
-
|
1271
|
-
|
1272
|
-
</p><div class="docstring">
|
1273
|
-
<div class="discussion">
|
1274
|
-
|
1275
|
-
|
1276
|
-
</div>
|
1277
|
-
</div>
|
1278
|
-
<div class="tags">
|
1279
|
-
<h3>Raises:</h3>
|
1280
|
-
<ul class="raise">
|
1281
|
-
|
1282
|
-
<li>
|
1283
|
-
|
1284
|
-
<span class='type'>(<tt><a href="NotImplemented.html" title="Stacked::NotImplemented (class)">Stacked::NotImplemented</a></tt>)</span>
|
1285
|
-
|
1286
|
-
|
1287
|
-
|
1288
|
-
|
1289
|
-
</li>
|
1290
|
-
|
1291
|
-
</ul>
|
1292
|
-
|
1293
|
-
</div><table class="source_code">
|
1294
|
-
<tr>
|
1295
|
-
<td>
|
1296
|
-
<pre class="lines">
|
1297
|
-
|
1298
|
-
|
1299
|
-
20
|
1300
|
-
21
|
1301
|
-
22</pre>
|
1302
|
-
</td>
|
1303
|
-
<td>
|
1304
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 20</span>
|
1305
|
-
|
1306
|
-
<span class='def def kw'>def</span> <span class='all identifier id'>all</span><span class='lparen token'>(</span><span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
|
1307
|
-
<span class='raise identifier id'>raise</span> <span class='Stacked constant id'>Stacked</span><span class='colon2 op'>::</span><span class='NotImplemented constant id'>NotImplemented</span>
|
1308
|
-
<span class='end end kw'>end</span>
|
1309
|
-
</pre>
|
1310
|
-
</td>
|
1311
|
-
</tr>
|
1312
|
-
</table>
|
1313
|
-
</div>
|
1314
|
-
|
1315
|
-
</div>
|
1316
|
-
|
1317
|
-
<div id="instance_method_details" class="method_details_list">
|
1318
|
-
<h2>Instance Method Details</h2>
|
1319
|
-
|
1320
|
-
|
1321
|
-
<div class="method_details first">
|
1322
|
-
<p class="signature first" id="owner-instance_method">
|
1323
|
-
|
1324
|
-
- (<tt>Object</tt>) <strong>owner</strong>
|
1325
|
-
|
1326
|
-
|
1327
|
-
|
1328
|
-
<span class="aliases">Also known as:
|
1329
|
-
<span class="names"><span id='user-instance_method'>user</span></span>
|
1330
|
-
</span>
|
1331
|
-
|
1332
|
-
</p><table class="source_code">
|
1333
|
-
<tr>
|
1334
|
-
<td>
|
1335
|
-
<pre class="lines">
|
1336
|
-
|
1337
|
-
|
1338
|
-
25
|
1339
|
-
26
|
1340
|
-
27</pre>
|
1341
|
-
</td>
|
1342
|
-
<td>
|
1343
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 25</span>
|
1344
|
-
|
1345
|
-
<span class='def def kw'>def</span> <span class='owner identifier id'>owner</span>
|
1346
|
-
<span class='@owner ivar id'>@owner</span> <span class='opasgn op'>||=</span> <span class='User constant id'>User</span><span class='dot token'>.</span><span class='find identifier id'>find</span><span class='lparen token'>(</span><span class='owner_user_id identifier id'>owner_user_id</span><span class='rparen token'>)</span>
|
1347
|
-
<span class='end end kw'>end</span>
|
1348
|
-
</pre>
|
1349
|
-
</td>
|
1350
|
-
</tr>
|
1351
|
-
</table>
|
1352
|
-
</div>
|
1353
|
-
|
1354
|
-
<div class="method_details ">
|
1355
|
-
<p class="signature " id="question-instance_method">
|
1356
|
-
|
1357
|
-
- (<tt>Object</tt>) <strong>question</strong>
|
1358
|
-
|
1359
|
-
|
1360
|
-
|
1361
|
-
</p><table class="source_code">
|
1362
|
-
<tr>
|
1363
|
-
<td>
|
1364
|
-
<pre class="lines">
|
1365
|
-
|
1366
|
-
|
1367
|
-
29
|
1368
|
-
30
|
1369
|
-
31</pre>
|
1370
|
-
</td>
|
1371
|
-
<td>
|
1372
|
-
<pre class="code"><span class="info file"># File 'lib/stacked/answer.rb', line 29</span>
|
1373
|
-
|
1374
|
-
<span class='def def kw'>def</span> <span class='question identifier id'>question</span>
|
1375
|
-
<span class='Question constant id'>Question</span><span class='dot token'>.</span><span class='find identifier id'>find</span><span class='lparen token'>(</span><span class='question_id identifier id'>question_id</span><span class='rparen token'>)</span>
|
1376
|
-
<span class='end end kw'>end</span>
|
1377
|
-
</pre>
|
1378
|
-
</td>
|
1379
|
-
</tr>
|
1380
|
-
</table>
|
1381
|
-
</div>
|
1382
|
-
|
1383
|
-
</div>
|
1384
|
-
|
1385
|
-
</div>
|
1386
|
-
|
1387
|
-
<div id="footer">
|
1388
|
-
Generated on Sun Apr 4 18:16:34 2010 by
|
1389
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
|
1390
|
-
0.5.4 (ruby-1.8.7).
|
1391
|
-
</div>
|
1392
|
-
|
1393
|
-
</body>
|
1394
|
-
</html>
|