Module: Redd::Thing::Voteable
- Included in:
- Object::Comment, Object::Submission
- Defined in:
- lib/redd/thing/voteable.rb
Instance Method Summary collapse
- #downvote ⇒ Object
- #unvote ⇒ Object (also: #clear_vote)
- #upvote ⇒ Object
Instance Method Details
#downvote ⇒ Object
10 11 12 |
# File 'lib/redd/thing/voteable.rb', line 10 def downvote client.upvote(self) end |
#unvote ⇒ Object Also known as: clear_vote
14 15 16 |
# File 'lib/redd/thing/voteable.rb', line 14 def unvote client.upvote(self) end |
#upvote ⇒ Object
6 7 8 |
# File 'lib/redd/thing/voteable.rb', line 6 def upvote client.upvote(self) end |