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, line 148
def initialize(params = {})
  self.value = params
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, line 158
def ==(other)
  return false unless other.is_a? QueryV
  value == other.value
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, line 153
def to_hash
  { :@query => value }
end