Sha256: 8c2df389ce1cc816fba5bde7e59297b5d352c0677d36187da2738f6e2584191f
Contents?: true
Size: 396 Bytes
Versions: 79
Compression:
Stored size: 396 Bytes
Contents
module Ddr::Index class AbstractQueryResult include Enumerable attr_reader :query delegate :params, to: :query def initialize(query) @query = query.dup.freeze end def count response = Connection.select(params, rows: 0) response.num_found end def each raise NotImplementedError, "Subclasses must implement `#each`." end end end
Version data entries
79 entries across 79 versions & 2 rubygems