class Fauna::SetRef

A SetRef.

Reference: FaunaDB Special Types

Attributes

value[RW]

The raw set hash.

Public Class Methods

new(params = {}) click to toggle source

Creates a new SetRef with the given parameters.

params

Hash of parameters to build the SetRef with.

Reference: FaunaDB Special Types

# File lib/fauna/objects.rb, line 79
def initialize(params = {})
  self.value = params
end

Public Instance Methods

==(other) click to toggle source

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

# File lib/fauna/objects.rb, line 89
def ==(other)
  return false unless other.is_a? SetRef
  value == other.value
end
Also aliased as: eql?
eql?(other)
Alias for: ==
to_hash() click to toggle source

Converts the SetRef to Hash form.

# File lib/fauna/objects.rb, line 84
def to_hash
  { :@set => value }
end