Module: Redd::Thing::Voteable

Included in:
Object::Comment, Object::Submission
Defined in:
lib/redd/thing/voteable.rb

Instance Method Summary collapse

Instance Method Details

#downvoteObject



10
11
12
# File 'lib/redd/thing/voteable.rb', line 10

def downvote
  client.upvote(self)
end

#unvoteObject Also known as: clear_vote



14
15
16
# File 'lib/redd/thing/voteable.rb', line 14

def unvote
  client.upvote(self)
end

#upvoteObject



6
7
8
# File 'lib/redd/thing/voteable.rb', line 6

def upvote
  client.upvote(self)
end