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 79 def initialize(params = {}) 80 self.value = params 81 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 89 def ==(other) 90 return false unless other.is_a? SetRef 91 value == other.value 92 end
Also aliased as: eql?
to_hash()
click to toggle source
Converts the SetRef
to Hash form.
# File lib/fauna/objects.rb 84 def to_hash 85 { :@set => value } 86 end