Sha256: 5cff8fa64adfdbd267d7c8280b3c02354deab793f33012a6372ed014de276a12
Contents?: true
Size: 643 Bytes
Versions: 5
Compression:
Stored size: 643 Bytes
Contents
module AgnosticBackend module Queryable class Query < TreeNode attr_accessor :errors attr_reader :context attr_reader :executor attr_reader :options def initialize(context, **options) super() @errors ||= Hash.new { |hash, key| hash[key] = Array.new } @context = context @options = options end def execute raise NotImplementedError end def valid? self.accept(AgnosticBackend::Queryable::Validator.new) end def set_scroll_cursor(value) context.scroll_cursor(value) context.build end end end end
Version data entries
5 entries across 5 versions & 1 rubygems