class Fauna::QueryV

A QueryV.

Reference: FaunaDB Special Types

Attributes

value[RW]

The raw query hash.

Public Class Methods

new(params = {}) click to toggle source

Creates a new QueryV with the given parameters.

params

Hash of parameters to build the QueryV with.

Reference: FaunaDB Special Types

    # File lib/fauna/objects.rb
148 def initialize(params = {})
149   self.value = params
150 end

Public Instance Methods

==(other) click to toggle source

Returns true if other is a QueryV and contains the same value.

    # File lib/fauna/objects.rb
158 def ==(other)
159   return false unless other.is_a? QueryV
160   value == other.value
161 end
Also aliased as: eql?
eql?(other)
Alias for: ==
to_hash() click to toggle source

Converts the QueryV to Hash form.

    # File lib/fauna/objects.rb
153 def to_hash
154   { :@query => value }
155 end