Class: MarkLogic::Queries::ContainerQuery

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

Instance Method Summary collapse

Methods inherited from BaseQuery

#add_sub_query, #query_value

Constructor Details

#initialize(name, query, options = {}) ⇒ ContainerQuery

Returns a new instance of ContainerQuery.


4
5
6
7
8
# File 'lib/marklogic/queries/container_query.rb', line 4

def initialize(name, query, options = {})
  @name = name
  @query = query
  @options = options
end

Instance Method Details

#to_xqyObject


10
11
12
# File 'lib/marklogic/queries/container_query.rb', line 10

def to_xqy
  %Q{cts:json-property-scope-query("#{@name}",#{@query.to_xqy})}
end