Method: MarkLogic::Queries::ValueQuery#initialize
- Defined in:
- lib/marklogic/queries/value_query.rb
#initialize(name, value, options = {}) ⇒ ValueQuery
Returns a new instance of ValueQuery.
4 5 6 7 8 9 10 11 |
# File 'lib/marklogic/queries/value_query.rb', line 4 def initialize(name, value, = {}) @name = name.to_s @value = value @value = value.to_s if value.is_a?(ObjectId) @options = || {} @weight = @options.delete(:weight) || 1.0 @options[:exact] = true if @options.length == 0 end |