Class: Stacked::Reputation
Instance Attribute Summary collapse
-
#negative_rep ⇒ Object
Returns the value of attribute negative_rep.
-
#on_date ⇒ Object
Returns the value of attribute on_date.
-
#positive_rep ⇒ Object
Returns the value of attribute positive_rep.
-
#post_id ⇒ Object
Returns the value of attribute post_id.
-
#post_type ⇒ Object
Returns the value of attribute post_type.
-
#title ⇒ Object
Returns the value of attribute title.
Instance Method Summary collapse
-
#score ⇒ Object
Return the cumulative score of this reputation.
Methods inherited from Base
all, 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
#negative_rep ⇒ Object
Returns the value of attribute negative_rep.
3 4 5 |
# File 'lib/stacked/reputation.rb', line 3 def negative_rep @negative_rep end |
#on_date ⇒ Object
Returns the value of attribute on_date.
3 4 5 |
# File 'lib/stacked/reputation.rb', line 3 def on_date @on_date end |
#positive_rep ⇒ Object
Returns the value of attribute positive_rep.
3 4 5 |
# File 'lib/stacked/reputation.rb', line 3 def positive_rep @positive_rep end |
#post_id ⇒ Object
Returns the value of attribute post_id.
3 4 5 |
# File 'lib/stacked/reputation.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/reputation.rb', line 3 def post_type @post_type end |
#title ⇒ Object
Returns the value of attribute title.
3 4 5 |
# File 'lib/stacked/reputation.rb', line 3 def title @title end |
Instance Method Details
#score ⇒ Object
Return the cumulative score of this reputation.
11 12 13 |
# File 'lib/stacked/reputation.rb', line 11 def score positive_rep - negative_rep end |