Sha256: c1633486c5278417d8a82e909d9ec5a38d4140250823a484cff94ca603deb9ba

Contents?: true

Size: 550 Bytes

Versions: 5

Compression:

Stored size: 550 Bytes

Contents

module AgnosticBackend
  module Queryable
    module Elasticsearch
      class Query < AgnosticBackend::Queryable::Query

        def initialize(base, **options)
          super
          @executor = Executor.new(self, Visitor.new)
        end

        def execute
          @executor.execute if valid?
        end

        def execute!
          if valid?
            @executor.execute
          else
            raise StandardError, errors
          end
        end

        def to_s
          @executor.to_s
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
agnostic_backend-1.0.4 lib/agnostic_backend/queryable/elasticsearch/query.rb
agnostic_backend-1.0.3 lib/agnostic_backend/queryable/elasticsearch/query.rb
agnostic_backend-1.0.2 lib/agnostic_backend/queryable/elasticsearch/query.rb
agnostic_backend-1.0.1 lib/agnostic_backend/queryable/elasticsearch/query.rb
agnostic_backend-1.0.0 lib/agnostic_backend/queryable/elasticsearch/query.rb