Sha256: 4354793e482fb7221756b481cf32a8350b280dde8476fe64faff0f05e1c1d5c8

Contents?: true

Size: 537 Bytes

Versions: 7

Compression:

Stored size: 537 Bytes

Contents

module AgnosticBackend
  module Queryable
    module Cloudsearch
      class Query < AgnosticBackend::Queryable::Query

        def initialize(base)
          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

7 entries across 7 versions & 1 rubygems

Version Path
agnostic_backend-0.9.9 lib/agnostic_backend/queryable/cloudsearch/query.rb
agnostic_backend-0.9.8 lib/agnostic_backend/queryable/cloudsearch/query.rb
agnostic_backend-0.9.4 lib/agnostic_backend/queryable/cloudsearch/query.rb
agnostic_backend-0.9.3 lib/agnostic_backend/queryable/cloudsearch/query.rb
agnostic_backend-0.9.2 lib/agnostic_backend/queryable/cloudsearch/query.rb
agnostic_backend-0.9.1 lib/agnostic_backend/queryable/cloudsearch/query.rb
agnostic_backend-0.9.0 lib/agnostic_backend/queryable/cloudsearch/query.rb