Sha256: 47252922fb9e79be1e713b62791a70e3715ebd87341f2eae5a82a15b081d5a93

Contents?: true

Size: 219 Bytes

Versions: 5

Compression:

Stored size: 219 Bytes

Contents

require "redd/thing"

module Redd
  class Thing
    module Saveable
      def save(category = nil)
        client.save(self, category)
      end

      def unsave
        client.unsave(self)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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