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,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
@@ -0,0 +1,6 @@
1
+ .yardoc
2
+ *.sw?
3
+ .DS_Store
4
+ coverage
5
+ rdoc
6
+ pkg
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ gem 'httparty', '0.4.5'
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2009 Ryan Bigg
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,37 @@
1
+ # Stacked - A Ruby wrapper for the Stack Overflow API (v0.5)
2
+
3
+ This library is built around the Stack Overflow (private) API [described here][http://blog.stackoverflow.com/2010/03/stack-overflow-api-private-beta-starts/]. I am under the impression that it covers all the API methods described in [this comprehensive listing][http://dev.meta.stackoverflow.com/questions/34594/overall-api-method-list], but equally aware that this is a first draft and I am likely to make a mistake or four.
4
+
5
+ ## Installation
6
+
7
+ To install stacked:
8
+
9
+ sudo gem install stacked
10
+
11
+ To use it:
12
+
13
+ require 'stacked'
14
+ Stacked::Question.all
15
+
16
+ To report breakages: http://github.com/radar/stacked/issues.
17
+
18
+ ## Some notes
19
+
20
+ Methods that are designed to take options in the API are designed that way in the wrapper also, as you'd expect. Take for example +Stacked::Question.all+ which you can pass any options you wish:
21
+
22
+ Stacked::Question.all(:pagesize => 10)
23
+
24
+ In this example the amount of questions returned is limited to 10.
25
+
26
+ Other options include:
27
+
28
+ * page - Specify the page when paginating through a collection.
29
+ * body - Set this to true to return the body of the objects you're receiving. By default set to false for questions and answers.
30
+ * comments - Set this to true to include the comments in the objects you're receiving.
31
+ * fromdate - An integer timestamp of the time you wish to search from (default: 30 days ago, 90 days for reputation).
32
+ * todate - An integer timestamp of the time you wish to search to (default: now)
33
+ * tagged - A list of tags to scope this find by. Effective only on question methods.
34
+
35
+ There may be some options I have missed from this list. This is why it's a first draft. So you can tell me I'm missing options, then I can add them and make it a second draft. And so on.
36
+
37
+
@@ -0,0 +1,18 @@
1
+ = stacked
2
+
3
+ Description goes here.
4
+
5
+ == Note on Patches/Pull Requests
6
+
7
+ * Fork the project.
8
+ * Make your feature addition or bug fix.
9
+ * Add tests for it. This is important so I don't break it in a
10
+ future version unintentionally.
11
+ * Commit, do not mess with rakefile, version, or history.
12
+ (if you want to have your own version, that is fine but
13
+ bump version in a commit by itself I can ignore when I pull)
14
+ * Send me a pull request. Bonus points for topic branches.
15
+
16
+ == Copyright
17
+
18
+ Copyright (c) 2010 Ryan Bigg. See LICENSE for details.
@@ -0,0 +1,51 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "stacked"
8
+ gem.summary = %Q{Ruby wrapper for the Stack Overflow API}
9
+ gem.description = %Q{Ruby wrapper for the Stack Overflow API}
10
+ gem.email = "ryan@getup.org.au"
11
+ gem.homepage = "http://github.com/radar/stacked"
12
+ gem.authors = ["Ryan Bigg"]
13
+ gem.add_development_dependency "rspec"
14
+ gem.add_dependency('httparty', '~> 0.4.5')
15
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
16
+ end
17
+ rescue LoadError
18
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
19
+ end
20
+
21
+ Jeweler::GemcutterTasks.new
22
+
23
+ require 'spec/rake/spectask'
24
+ Spec::Rake::SpecTask.new(:spec) do |spec|
25
+ spec.libs << 'lib' << 'spec'
26
+ spec.spec_files = FileList['spec/**/*_spec.rb']
27
+ end
28
+
29
+ Spec::Rake::SpecTask.new(:rcov) do |spec|
30
+ spec.libs << 'lib' << 'spec'
31
+ spec.pattern = 'spec/**/*_spec.rb'
32
+ spec.rcov = true
33
+ end
34
+
35
+ task :spec => :check_dependencies
36
+
37
+ task :default => :spec
38
+
39
+ require 'rake/rdoctask'
40
+ Rake::RDocTask.new do |rdoc|
41
+ if File.exist?('VERSION')
42
+ version = File.read('VERSION')
43
+ else
44
+ version = ""
45
+ end
46
+
47
+ rdoc.rdoc_dir = 'rdoc'
48
+ rdoc.title = "stacked #{version}"
49
+ rdoc.rdoc_files.include('README*')
50
+ rdoc.rdoc_files.include('lib/**/*.rb')
51
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.5.0
@@ -0,0 +1,29 @@
1
+ files = Dir["**/*"]
2
+ ignored_files = [
3
+ /log\/.*/,
4
+ ]
5
+
6
+ files.delete_if do |file|
7
+ if File.directory?(file)
8
+ true
9
+ else
10
+ ignored_files.any? do |condition|
11
+ if condition.is_a?(String)
12
+ file == condition
13
+ else
14
+ condition.match(file)
15
+ end
16
+ end || false
17
+ end
18
+ end
19
+
20
+ for file in files - ignored_files
21
+ if File.file?(file)
22
+ lines = File.readlines(file).map { |line| line.gsub(/^\s+$/, "\n") }
23
+ File.open(file, "w+") { |f| f.write(lines.join) }
24
+ end
25
+ end
26
+ p "Committing in 3 seconds... stop if you don't want this."
27
+ sleep(3)
28
+ `git add .`
29
+ `git commit -m "Ran cleaner."`
@@ -0,0 +1,155 @@
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>Module: Stacked</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 (S)</a> &raquo;
27
+
28
+
29
+ <span class="title">Stacked</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>Module: Stacked
47
+
48
+
49
+ </h1>
50
+
51
+ <dl class="box">
52
+
53
+
54
+
55
+
56
+
57
+
58
+
59
+
60
+ <dt class="r1 last">Defined in:</dt>
61
+ <dd class="r1 last">lib/stacked.rb<span class="defines">,<br />
62
+ lib/stacked/tag.rb,<br /> lib/stacked/user.rb,<br /> lib/stacked/base.rb,<br /> lib/stacked/badge.rb,<br /> lib/stacked/answer.rb,<br /> lib/stacked/comment.rb,<br /> lib/stacked/question.rb,<br /> lib/stacked/reputation.rb,<br /> lib/stacked/posttimeline.rb,<br /> lib/stacked/usertimeline.rb</span>
63
+ </dd>
64
+
65
+ </dl>
66
+ <div class="clear"></div>
67
+
68
+ <h2>Defined Under Namespace</h2>
69
+ <p class="children">
70
+
71
+
72
+
73
+
74
+ <strong class="classes">Classes:</strong> <a href="Stacked/Answer.html" title="Stacked::Answer (class)">Answer</a>, <a href="Stacked/Badge.html" title="Stacked::Badge (class)">Badge</a>, <a href="Stacked/Base.html" title="Stacked::Base (class)">Base</a>, <a href="Stacked/Comment.html" title="Stacked::Comment (class)">Comment</a>, <a href="Stacked/NotImplemented.html" title="Stacked::NotImplemented (class)">NotImplemented</a>, <a href="Stacked/Posttimeline.html" title="Stacked::Posttimeline (class)">Posttimeline</a>, <a href="Stacked/Question.html" title="Stacked::Question (class)">Question</a>, <a href="Stacked/Reputation.html" title="Stacked::Reputation (class)">Reputation</a>, <a href="Stacked/Tag.html" title="Stacked::Tag (class)">Tag</a>, <a href="Stacked/User.html" title="Stacked::User (class)">User</a>, <a href="Stacked/Usertimeline.html" title="Stacked::Usertimeline (class)">Usertimeline</a>
75
+
76
+
77
+ </p>
78
+
79
+
80
+
81
+
82
+ <h2>Class Method Summary</h2>
83
+
84
+ <ul class="summary">
85
+
86
+ <li class="public ">
87
+ <span class="summary_signature">
88
+
89
+ <a href="#autoload-class_method" title="autoload (class method)">+ (Object) <strong>autoload</strong>(klass) </a>
90
+
91
+
92
+
93
+ </span>
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+ <span class="summary_desc"><div class='inline'></div></span>
102
+
103
+ </li>
104
+
105
+
106
+ </ul>
107
+
108
+
109
+
110
+
111
+ <div id="class_method_details" class="method_details_list">
112
+ <h2>Class Method Details</h2>
113
+
114
+
115
+ <div class="method_details first">
116
+ <p class="signature first" id="autoload-class_method">
117
+
118
+ + (<tt>Object</tt>) <strong>autoload</strong>(klass)
119
+
120
+
121
+
122
+ </p><table class="source_code">
123
+ <tr>
124
+ <td>
125
+ <pre class="lines">
126
+
127
+
128
+ 24
129
+ 25
130
+ 26</pre>
131
+ </td>
132
+ <td>
133
+ <pre class="code"><span class="info file"># File 'lib/stacked.rb', line 24</span>
134
+
135
+ <span class='def def kw'>def</span> <span class='autoload identifier id'>autoload</span><span class='lparen token'>(</span><span class='klass identifier id'>klass</span><span class='rparen token'>)</span>
136
+ <span class='super super kw'>super</span><span class='lparen token'>(</span><span class='klass identifier id'>klass</span><span class='comma token'>,</span> <span class='dstring node'>&quot;stacked/#{klass.to_s.underscore}&quot;</span><span class='rparen token'>)</span>
137
+ <span class='end end kw'>end</span>
138
+ </pre>
139
+ </td>
140
+ </tr>
141
+ </table>
142
+ </div>
143
+
144
+ </div>
145
+
146
+ </div>
147
+
148
+ <div id="footer">
149
+ Generated on Sun Apr 4 18:16:32 2010 by
150
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool">yard</a>
151
+ 0.5.4 (ruby-1.8.7).
152
+ </div>
153
+
154
+ </body>
155
+ </html>
@@ -0,0 +1,1394 @@
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> &raquo;
27
+ <span class='title'><a href="../Stacked.html" title="Stacked (module)">Stacked</a></span>
28
+ &raquo;
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>