Sha256: 9aa179f10b47899e8e6e55e1dc19a317e5d19604fc7121271c190f3b86dbf933
Contents?: true
Size: 515 Bytes
Versions: 87
Compression:
Stored size: 515 Bytes
Contents
module Scrivito class ObjSearchEnumerator class Batch def initialize(objs, total, continuation, facets, previously_fetched_ids) @objs = filter_duplicates(objs, previously_fetched_ids) @total = total @continuation = continuation @facets = facets end attr_reader :objs, :total, :continuation, :facets private def filter_duplicates(objs, previously_fetched_ids) objs.reject do |obj| previously_fetched_ids.include?(obj.id) end end end end end
Version data entries
87 entries across 87 versions & 1 rubygems