Sha256: b57ef686221a46beb1d6f94c01fc9f5f6914d09b6d67fbbf6ab09e60595bc991
Contents?: true
Size: 453 Bytes
Versions: 1
Compression:
Stored size: 453 Bytes
Contents
module PouchDB class AllDocuments include Enumerable def initialize(results) @results = results end def offset `#{@results}.offset` end def total_rows `#{@results}.total_rows` end def size `#{@results}.rows.length` end alias_method :count, :size alias_method :length, :size def each `#{@results}.rows`.each do |r| yield Row.new(r) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
opal-pouchdb-0.1.1 | opal/pouchdb/all_documents.rb |