Sha256: d42c502205306875e6e6ef9acc2ce4a77bdd27f8dc462fed7c512ee683dcfa46

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

require "redd/thing"

module Redd
  class Thing
    module Voteable
      def upvote
        client.upvote(self)
      end

      def downvote
        client.upvote(self)
      end

      def unvote
        client.upvote(self)
      end

      alias_method :clear_vote, :unvote

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
redd-0.4.3 lib/redd/thing/voteable.rb
redd-0.4.2 lib/redd/thing/voteable.rb
redd-0.4.1 lib/redd/thing/voteable.rb
redd-0.4.0 lib/redd/thing/voteable.rb
redd-0.3.0 lib/redd/thing/voteable.rb