Class: MarkLogic::Queries::CollectionQuery

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

Instance Method Summary collapse

Methods inherited from BaseQuery

#add_sub_query, #query_value

Constructor Details

#initialize(collection_uris) ⇒ CollectionQuery

Returns a new instance of CollectionQuery.


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

def initialize(collection_uris)
  @collection_uris = collection_uris
end

Instance Method Details

#to_xqyObject


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

def to_xqy
  uris = query_value(@collection_uris)
  %Q{cts:collection-query((#{uris}))}
end