Module: Reddit::Voteable::InstanceMethods

Defined in:
lib/ruby_reddit_api/voteable.rb

Instance Method Summary collapse

Instance Method Details

#downvotetrue, false

Downvote thing

Returns:

  • (true, false)


17
18
19
# File 'lib/ruby_reddit_api/voteable.rb', line 17

def downvote
  Reddit::Vote.new(self).down
end

#upvotetrue, false

Upvote thing

Returns:

  • (true, false)


11
12
13
# File 'lib/ruby_reddit_api/voteable.rb', line 11

def upvote
  Reddit::Vote.new(self).up
end