Class: Stacked::Comment
Instance Attribute Summary collapse
-
#body ⇒ Object
Returns the value of attribute body.
-
#comment_id ⇒ Object
(also: #id)
Returns the value of attribute comment_id.
-
#creation_date ⇒ Object
(also: #created_at)
Returns the value of attribute creation_date.
-
#edit_count ⇒ Object
(also: #edits)
Returns the value of attribute edit_count.
-
#owner_display_name ⇒ Object
Returns the value of attribute owner_display_name.
-
#owner_user_id ⇒ Object
Returns the value of attribute owner_user_id.
-
#post_id ⇒ Object
Returns the value of attribute post_id.
-
#post_type ⇒ Object
Returns the value of attribute post_type.
-
#reply_to_user_id ⇒ Object
Returns the value of attribute reply_to_user_id.
-
#score ⇒ Object
Returns the value of attribute score.
Class Method Summary collapse
Instance Method Summary collapse
-
#owner ⇒ Object
(also: #user)
The owner of this comment.
-
#reply_to ⇒ Object
Finds the user this comment was in reply 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
#body ⇒ Object
Returns the value of attribute body.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def body @body end |
#comment_id ⇒ Object Also known as: id
Returns the value of attribute comment_id.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def comment_id @comment_id end |
#creation_date ⇒ Object Also known as: created_at
Returns the value of attribute creation_date.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def creation_date @creation_date end |
#edit_count ⇒ Object Also known as: edits
Returns the value of attribute edit_count.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def edit_count @edit_count end |
#owner_display_name ⇒ Object
Returns the value of attribute owner_display_name.
3 4 5 |
# File 'lib/stacked/comment.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/comment.rb', line 3 def owner_user_id @owner_user_id end |
#post_id ⇒ Object
Returns the value of attribute post_id.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def post_id @post_id end |
#post_type ⇒ Object
Returns the value of attribute post_type.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def post_type @post_type end |
#reply_to_user_id ⇒ Object
Returns the value of attribute reply_to_user_id.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def reply_to_user_id @reply_to_user_id end |
#score ⇒ Object
Returns the value of attribute score.
3 4 5 |
# File 'lib/stacked/comment.rb', line 3 def score @score end |
Class Method Details
.all(*args) ⇒ Object
15 16 17 |
# File 'lib/stacked/comment.rb', line 15 def all(*args) raise Stacked::NotImplemented end |