stacked 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (56) hide show
  1. data/.document +5 -0
  2. data/.gitignore +6 -0
  3. data/Gemfile +1 -0
  4. data/LICENSE +20 -0
  5. data/README.markdown +37 -0
  6. data/README.rdoc +18 -0
  7. data/Rakefile +51 -0
  8. data/VERSION +1 -0
  9. data/cleaner.rb +29 -0
  10. data/doc/Stacked.html +155 -0
  11. data/doc/Stacked/Answer.html +1394 -0
  12. data/doc/Stacked/Badge.html +480 -0
  13. data/doc/Stacked/Base.html +1124 -0
  14. data/doc/Stacked/Comment.html +1037 -0
  15. data/doc/Stacked/NotImplemented.html +162 -0
  16. data/doc/Stacked/Posttimeline.html +543 -0
  17. data/doc/Stacked/Question.html +1763 -0
  18. data/doc/Stacked/Reputation.html +606 -0
  19. data/doc/Stacked/Tag.html +267 -0
  20. data/doc/Stacked/User.html +2787 -0
  21. data/doc/Stacked/Usertimeline.html +630 -0
  22. data/doc/_index.html +246 -0
  23. data/doc/file.README.html +54 -0
  24. data/doc/index.html +54 -0
  25. data/doc/method_list.html +1203 -0
  26. data/doc/top-level-namespace.html +87 -0
  27. data/genddoc.sh +12 -0
  28. data/lib/stacked.rb +46 -0
  29. data/lib/stacked/answer.rb +43 -0
  30. data/lib/stacked/badge.rb +18 -0
  31. data/lib/stacked/base.rb +159 -0
  32. data/lib/stacked/comment.rb +37 -0
  33. data/lib/stacked/posttimeline.rb +10 -0
  34. data/lib/stacked/question.rb +85 -0
  35. data/lib/stacked/reputation.rb +15 -0
  36. data/lib/stacked/tag.rb +9 -0
  37. data/lib/stacked/user.rb +195 -0
  38. data/lib/stacked/usertimeline.rb +14 -0
  39. data/spec/sorted_by_spec.rb +24 -0
  40. data/spec/spec_helper.rb +16 -0
  41. data/spec/stacked/answer_spec.rb +31 -0
  42. data/spec/stacked/badge_spec.rb +17 -0
  43. data/spec/stacked/base_spec.rb +27 -0
  44. data/spec/stacked/comment_spec.rb +41 -0
  45. data/spec/stacked/question_spec.rb +110 -0
  46. data/spec/stacked/reputation_spec.rb +18 -0
  47. data/spec/stacked/tag_spec.rb +21 -0
  48. data/spec/stacked/user_spec.rb +187 -0
  49. data/spec/stacked/usertimeline_spec.rb +5 -0
  50. data/spec/support/aliases.rb +7 -0
  51. data/spec/support/sorted_by.rb +31 -0
  52. data/spec/support/within.rb +24 -0
  53. data/spec/within_spec.rb +19 -0
  54. data/stacked.gemspec +115 -0
  55. data/stylesheet.css +41 -0
  56. metadata +157 -0
@@ -0,0 +1,606 @@
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::Reputation</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 (R)</a> &raquo;
27
+ <span class='title'><a href="../Stacked.html" title="Stacked (module)">Stacked</a></span>
28
+ &raquo;
29
+ <span class="title">Reputation</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::Reputation
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::Reputation</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/reputation.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="#negative_rep-instance_method" title="#negative_rep (instance method)">- (Object) <strong>negative_rep</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 negative_rep.
113
+ </p>
114
+ </div></span>
115
+
116
+ </li>
117
+
118
+
119
+ <li class="public ">
120
+ <span class="summary_signature">
121
+
122
+ <a href="#on_date-instance_method" title="#on_date (instance method)">- (Object) <strong>on_date</strong> </a>
123
+
124
+
125
+
126
+ </span>
127
+
128
+
129
+
130
+
131
+
132
+
133
+
134
+
135
+
136
+
137
+ <span class="summary_desc"><div class='inline'><p>
138
+ Returns the value of attribute on_date.
139
+ </p>
140
+ </div></span>
141
+
142
+ </li>
143
+
144
+
145
+ <li class="public ">
146
+ <span class="summary_signature">
147
+
148
+ <a href="#positive_rep-instance_method" title="#positive_rep (instance method)">- (Object) <strong>positive_rep</strong> </a>
149
+
150
+
151
+
152
+ </span>
153
+
154
+
155
+
156
+
157
+
158
+
159
+
160
+
161
+
162
+
163
+ <span class="summary_desc"><div class='inline'><p>
164
+ Returns the value of attribute positive_rep.
165
+ </p>
166
+ </div></span>
167
+
168
+ </li>
169
+
170
+
171
+ <li class="public ">
172
+ <span class="summary_signature">
173
+
174
+ <a href="#post_id-instance_method" title="#post_id (instance method)">- (Object) <strong>post_id</strong> </a>
175
+
176
+
177
+
178
+ </span>
179
+
180
+
181
+
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+ <span class="summary_desc"><div class='inline'><p>
190
+ Returns the value of attribute post_id.
191
+ </p>
192
+ </div></span>
193
+
194
+ </li>
195
+
196
+
197
+ <li class="public ">
198
+ <span class="summary_signature">
199
+
200
+ <a href="#post_type-instance_method" title="#post_type (instance method)">- (Object) <strong>post_type</strong> </a>
201
+
202
+
203
+
204
+ </span>
205
+
206
+
207
+
208
+
209
+
210
+
211
+
212
+
213
+
214
+
215
+ <span class="summary_desc"><div class='inline'><p>
216
+ Returns the value of attribute post_type.
217
+ </p>
218
+ </div></span>
219
+
220
+ </li>
221
+
222
+
223
+ <li class="public ">
224
+ <span class="summary_signature">
225
+
226
+ <a href="#title-instance_method" title="#title (instance method)">- (Object) <strong>title</strong> </a>
227
+
228
+
229
+
230
+ </span>
231
+
232
+
233
+
234
+
235
+
236
+
237
+
238
+
239
+
240
+
241
+ <span class="summary_desc"><div class='inline'><p>
242
+ Returns the value of attribute title.
243
+ </p>
244
+ </div></span>
245
+
246
+ </li>
247
+
248
+
249
+ </ul>
250
+
251
+
252
+
253
+ <h2>Instance Method Summary</h2>
254
+
255
+ <ul class="summary">
256
+
257
+ <li class="public ">
258
+ <span class="summary_signature">
259
+
260
+ <a href="#score-instance_method" title="#score (instance method)">- (Object) <strong>score</strong> </a>
261
+
262
+
263
+
264
+ </span>
265
+
266
+
267
+
268
+
269
+
270
+
271
+
272
+ <span class="summary_desc"><div class='inline'></div></span>
273
+
274
+ </li>
275
+
276
+
277
+ </ul>
278
+
279
+
280
+
281
+
282
+
283
+
284
+
285
+
286
+
287
+
288
+ <h3 class="inherited">Methods inherited from <a href="Base.html" title="Stacked::Base (class)">Base</a></h3>
289
+ <p class="inherited"><a href="Base.html#all-class_method" title="Stacked::Base.all (method)">all</a>, <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>
290
+
291
+ <div id="constructor_details" class="method_details_list">
292
+ <h2>Constructor Details</h2>
293
+
294
+ <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>
295
+
296
+ </div>
297
+
298
+ <div id="instance_attr_details" class="attr_details">
299
+ <h2>Instance Attribute Details</h2>
300
+
301
+
302
+ <span id="negative_rep=-instance_method"></span>
303
+ <span id="negative_rep-instance_method"></span>
304
+ <div class="method_details first">
305
+ <p class="signature first" id="negative_rep-instance_method">
306
+
307
+ - (<tt>Object</tt>) <strong>negative_rep</strong>
308
+
309
+
310
+
311
+ </p><div class="docstring">
312
+ <div class="discussion">
313
+ <p>
314
+ Returns the value of attribute negative_rep
315
+ </p>
316
+
317
+
318
+ </div>
319
+ </div>
320
+ <div class="tags">
321
+
322
+ </div><table class="source_code">
323
+ <tr>
324
+ <td>
325
+ <pre class="lines">
326
+
327
+
328
+ 3
329
+ 4
330
+ 5</pre>
331
+ </td>
332
+ <td>
333
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 3</span>
334
+
335
+ <span class='def def kw'>def</span> <span class='negative_rep identifier id'>negative_rep</span>
336
+ <span class='@negative_rep ivar id'>@negative_rep</span>
337
+ <span class='end end kw'>end</span>
338
+ </pre>
339
+ </td>
340
+ </tr>
341
+ </table>
342
+ </div>
343
+
344
+
345
+ <span id="on_date=-instance_method"></span>
346
+ <span id="on_date-instance_method"></span>
347
+ <div class="method_details ">
348
+ <p class="signature " id="on_date-instance_method">
349
+
350
+ - (<tt>Object</tt>) <strong>on_date</strong>
351
+
352
+
353
+
354
+ </p><div class="docstring">
355
+ <div class="discussion">
356
+ <p>
357
+ Returns the value of attribute on_date
358
+ </p>
359
+
360
+
361
+ </div>
362
+ </div>
363
+ <div class="tags">
364
+
365
+ </div><table class="source_code">
366
+ <tr>
367
+ <td>
368
+ <pre class="lines">
369
+
370
+
371
+ 3
372
+ 4
373
+ 5</pre>
374
+ </td>
375
+ <td>
376
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 3</span>
377
+
378
+ <span class='def def kw'>def</span> <span class='on_date identifier id'>on_date</span>
379
+ <span class='@on_date ivar id'>@on_date</span>
380
+ <span class='end end kw'>end</span>
381
+ </pre>
382
+ </td>
383
+ </tr>
384
+ </table>
385
+ </div>
386
+
387
+
388
+ <span id="positive_rep=-instance_method"></span>
389
+ <span id="positive_rep-instance_method"></span>
390
+ <div class="method_details ">
391
+ <p class="signature " id="positive_rep-instance_method">
392
+
393
+ - (<tt>Object</tt>) <strong>positive_rep</strong>
394
+
395
+
396
+
397
+ </p><div class="docstring">
398
+ <div class="discussion">
399
+ <p>
400
+ Returns the value of attribute positive_rep
401
+ </p>
402
+
403
+
404
+ </div>
405
+ </div>
406
+ <div class="tags">
407
+
408
+ </div><table class="source_code">
409
+ <tr>
410
+ <td>
411
+ <pre class="lines">
412
+
413
+
414
+ 3
415
+ 4
416
+ 5</pre>
417
+ </td>
418
+ <td>
419
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 3</span>
420
+
421
+ <span class='def def kw'>def</span> <span class='positive_rep identifier id'>positive_rep</span>
422
+ <span class='@positive_rep ivar id'>@positive_rep</span>
423
+ <span class='end end kw'>end</span>
424
+ </pre>
425
+ </td>
426
+ </tr>
427
+ </table>
428
+ </div>
429
+
430
+
431
+ <span id="post_id=-instance_method"></span>
432
+ <span id="post_id-instance_method"></span>
433
+ <div class="method_details ">
434
+ <p class="signature " id="post_id-instance_method">
435
+
436
+ - (<tt>Object</tt>) <strong>post_id</strong>
437
+
438
+
439
+
440
+ </p><div class="docstring">
441
+ <div class="discussion">
442
+ <p>
443
+ Returns the value of attribute post_id
444
+ </p>
445
+
446
+
447
+ </div>
448
+ </div>
449
+ <div class="tags">
450
+
451
+ </div><table class="source_code">
452
+ <tr>
453
+ <td>
454
+ <pre class="lines">
455
+
456
+
457
+ 3
458
+ 4
459
+ 5</pre>
460
+ </td>
461
+ <td>
462
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 3</span>
463
+
464
+ <span class='def def kw'>def</span> <span class='post_id identifier id'>post_id</span>
465
+ <span class='@post_id ivar id'>@post_id</span>
466
+ <span class='end end kw'>end</span>
467
+ </pre>
468
+ </td>
469
+ </tr>
470
+ </table>
471
+ </div>
472
+
473
+
474
+ <span id="post_type=-instance_method"></span>
475
+ <span id="post_type-instance_method"></span>
476
+ <div class="method_details ">
477
+ <p class="signature " id="post_type-instance_method">
478
+
479
+ - (<tt>Object</tt>) <strong>post_type</strong>
480
+
481
+
482
+
483
+ </p><div class="docstring">
484
+ <div class="discussion">
485
+ <p>
486
+ Returns the value of attribute post_type
487
+ </p>
488
+
489
+
490
+ </div>
491
+ </div>
492
+ <div class="tags">
493
+
494
+ </div><table class="source_code">
495
+ <tr>
496
+ <td>
497
+ <pre class="lines">
498
+
499
+
500
+ 3
501
+ 4
502
+ 5</pre>
503
+ </td>
504
+ <td>
505
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 3</span>
506
+
507
+ <span class='def def kw'>def</span> <span class='post_type identifier id'>post_type</span>
508
+ <span class='@post_type ivar id'>@post_type</span>
509
+ <span class='end end kw'>end</span>
510
+ </pre>
511
+ </td>
512
+ </tr>
513
+ </table>
514
+ </div>
515
+
516
+
517
+ <span id="title=-instance_method"></span>
518
+ <span id="title-instance_method"></span>
519
+ <div class="method_details ">
520
+ <p class="signature " id="title-instance_method">
521
+
522
+ - (<tt>Object</tt>) <strong>title</strong>
523
+
524
+
525
+
526
+ </p><div class="docstring">
527
+ <div class="discussion">
528
+ <p>
529
+ Returns the value of attribute title
530
+ </p>
531
+
532
+
533
+ </div>
534
+ </div>
535
+ <div class="tags">
536
+
537
+ </div><table class="source_code">
538
+ <tr>
539
+ <td>
540
+ <pre class="lines">
541
+
542
+
543
+ 3
544
+ 4
545
+ 5</pre>
546
+ </td>
547
+ <td>
548
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 3</span>
549
+
550
+ <span class='def def kw'>def</span> <span class='title identifier id'>title</span>
551
+ <span class='@title ivar id'>@title</span>
552
+ <span class='end end kw'>end</span>
553
+ </pre>
554
+ </td>
555
+ </tr>
556
+ </table>
557
+ </div>
558
+
559
+ </div>
560
+
561
+
562
+ <div id="instance_method_details" class="method_details_list">
563
+ <h2>Instance Method Details</h2>
564
+
565
+
566
+ <div class="method_details first">
567
+ <p class="signature first" id="score-instance_method">
568
+
569
+ - (<tt>Object</tt>) <strong>score</strong>
570
+
571
+
572
+
573
+ </p><table class="source_code">
574
+ <tr>
575
+ <td>
576
+ <pre class="lines">
577
+
578
+
579
+ 9
580
+ 10
581
+ 11</pre>
582
+ </td>
583
+ <td>
584
+ <pre class="code"><span class="info file"># File 'lib/stacked/reputation.rb', line 9</span>
585
+
586
+ <span class='def def kw'>def</span> <span class='score identifier id'>score</span>
587
+ <span class='positive_rep identifier id'>positive_rep</span> <span class='minus op'>-</span> <span class='negative_rep identifier id'>negative_rep</span>
588
+ <span class='end end kw'>end</span>
589
+ </pre>
590
+ </td>
591
+ </tr>
592
+ </table>
593
+ </div>
594
+
595
+ </div>
596
+
597
+ </div>
598
+
599
+ <div id="footer">
600
+ Generated on Sun Apr 4 18:16:35 2010 by
601
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
602
+ 0.5.4 (ruby-1.8.7).
603
+ </div>
604
+
605
+ </body>
606
+ </html>