Sha256: 12c71ba6b4348988f2ac802e725d6a00493ffb0e1167d1116fab329f6b000fad

Contents?: true

Size: 546 Bytes

Versions: 7

Compression:

Stored size: 546 Bytes

Contents

require "redd/thing"

module Redd
  class Thing
    # A Redd::Object that can be moderated
    module Moderatable
      def approve
        client.approve(self)
      end

      def remove
        client.remove(self)
      end

      def distinguish(how = :yes)
        client.distinguish(self, how)
      end

      def undistinguish
        client.undistinguish(self)
      end

      def ignore_reports
        client.ignore_reports(self)
      end

      def unignore_reports
        client.unignore_reports(self)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
redd-0.6.5 lib/redd/thing/moderatable.rb
redd-0.6.4 lib/redd/thing/moderatable.rb
redd-0.6.3 lib/redd/thing/moderatable.rb
redd-0.6.2 lib/redd/thing/moderatable.rb
redd-0.6.1 lib/redd/thing/moderatable.rb
redd-0.6.0 lib/redd/thing/moderatable.rb
redd-0.5.0 lib/redd/thing/moderatable.rb