Sha256: 8056766e558bc0e9cc4474248ef6f5f739f82400070837ff0c28ab50fc0ee112
Contents?: true
Size: 438 Bytes
Versions: 4
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module GraphQL module Groups class PendingQuery attr_reader :key attr_reader :aggregate attr_reader :query def initialize(key, aggregate, proc) @key = Utils.wrap(key) @aggregate = Utils.wrap(aggregate) @query = proc end def execute result = @query.call QueryResult.new(@key, @aggregate, result) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems