Class: Stacked::Answer
Instance Attribute Summary collapse
-
#accepted ⇒ Object
Returns the value of attribute accepted.
-
#answer_id ⇒ Object
(also: #id)
Returns the value of attribute answer_id.
-
#body ⇒ Object
Returns the value of attribute body.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#community_owned ⇒ Object
Returns the value of attribute community_owned.
-
#creation_date ⇒ Object
(also: #created_at)
Returns the value of attribute creation_date.
-
#down_vote_count ⇒ Object
Returns the value of attribute down_vote_count.
-
#last_edit_date ⇒ Object
(also: #updated_at)
Returns the value of attribute last_edit_date.
-
#owner_display_name ⇒ Object
Returns the value of attribute owner_display_name.
-
#owner_user_id ⇒ Object
Returns the value of attribute owner_user_id.
-
#question_id ⇒ Object
Returns the value of attribute question_id.
-
#score ⇒ Object
Returns the value of attribute score.
-
#title ⇒ Object
Returns the value of attribute title.
-
#up_vote_count ⇒ Object
(also: #up_votes)
Returns the value of attribute up_vote_count.
-
#view_count ⇒ Object
(also: #views)
Returns the value of attribute view_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#owner ⇒ Object
(also: #user)
A Stacked::User object representing the owner of the answer.
-
#question ⇒ Object
A Stacked::Question object representing the question the answer is in response to.
Methods inherited from Base
association, collection, find, #initialize, #parse_answers, #parse_badges, #parse_comments, #parse_post_timeline, #parse_questions, #parse_reputations, #parse_tags, #parse_type, #parse_user_timeline, #post, records, request, singular, stats
Constructor Details
This class inherits a constructor from Stacked::Base
Instance Attribute Details
#accepted ⇒ Object
Returns the value of attribute accepted.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def accepted @accepted end |
#answer_id ⇒ Object Also known as: id
Returns the value of attribute answer_id.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def answer_id @answer_id end |
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def body @body end |
#comments ⇒ Object
Returns the value of attribute comments.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def comments @comments end |
#community_owned ⇒ Object
Returns the value of attribute community_owned.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def community_owned @community_owned end |
#creation_date ⇒ Object Also known as: created_at
Returns the value of attribute creation_date.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def creation_date @creation_date end |
#down_vote_count ⇒ Object
Returns the value of attribute down_vote_count.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def down_vote_count @down_vote_count end |
#last_edit_date ⇒ Object Also known as: updated_at
Returns the value of attribute last_edit_date.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def last_edit_date @last_edit_date end |
#owner_display_name ⇒ Object
Returns the value of attribute owner_display_name.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def owner_display_name @owner_display_name end |
#owner_user_id ⇒ Object
Returns the value of attribute owner_user_id.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def owner_user_id @owner_user_id end |
#question_id ⇒ Object
Returns the value of attribute question_id.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def question_id @question_id end |
#score ⇒ Object
Returns the value of attribute score.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def score @score end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def title @title end |
#up_vote_count ⇒ Object Also known as: up_votes
Returns the value of attribute up_vote_count.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def up_vote_count @up_vote_count end |
#view_count ⇒ Object Also known as: views
Returns the value of attribute view_count.
3 4 5 |
# File 'lib/stacked/answer.rb', line 3 def view_count @view_count end |
Class Method Details
.all(*args) ⇒ Object
20 21 22 |
# File 'lib/stacked/answer.rb', line 20 def all(*args) raise Stacked::NotImplemented end |