Class: MarkLogic::Queries::DocumentFragmentQuery

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

Instance Method Summary collapse

Methods inherited from BaseQuery

#add_sub_query, #query_value

Constructor Details

#initialize(query) ⇒ DocumentFragmentQuery

Returns a new instance of DocumentFragmentQuery.


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

def initialize(query)
  @query = query
end

Instance Method Details

#to_xqyObject


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

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