Class: MarkLogic::Queries::NotQuery

Inherits:
BaseQuery
  • Object
show all
Defined in:
lib/marklogic/queries/not_query.rb

Instance Method Summary collapse

Methods inherited from BaseQuery

#add_sub_query, #query_value

Constructor Details

#initialize(query) ⇒ NotQuery

Returns a new instance of NotQuery.


4
5
6
# File 'lib/marklogic/queries/not_query.rb', line 4

def initialize(query)
  @query = query
end

Instance Method Details

#to_xqyObject


8
9
10
# File 'lib/marklogic/queries/not_query.rb', line 8

def to_xqy
  %Q{cts:not-query(#{@query.to_xqy})}
end