Sha256: 5118144dcb52b3de4e23de725b677c55b7203f06cc588f3e7081c3208ea33d62

Contents?: true

Size: 441 Bytes

Versions: 2

Compression:

Stored size: 441 Bytes

Contents

module CouchPotato
  module Persistence
    module Find
      def first(options = {})
        Finder.new.find(self, options).first
      end
      
      def last(options = {})
        Finder.new.find(self, options, :descending => true).first
      end
      
      def all(options = {})
        Finder.new.find(self, options)
      end
      
      def count(options = {})
        Finder.new.count(self, options)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
langalex-couch_potato-0.1.1 lib/couch_potato/persistence/find.rb
langalex-couch_potato-0.1 lib/couch_potato/persistence/find.rb