Module: Snooby::Voting
Instance Method Summary collapse
Instance Method Details
#downvote ⇒ Object
76 |
# File 'lib/snooby/actions.rb', line 76 def downvote; vote -1; end |
#rescind ⇒ Object
75 |
# File 'lib/snooby/actions.rb', line 75 def rescind; vote 0; end |
#upvote ⇒ Object
74 |
# File 'lib/snooby/actions.rb', line 74 def upvote; vote 1; end |
#vote(dir) ⇒ Object
70 71 72 |
# File 'lib/snooby/actions.rb', line 70 def vote(dir) Snooby.request(Paths[:vote], :id => self.name, :dir => dir) end |