class FDataSnapshot

Public Instance Methods

inspect() click to toggle source
# File lib/firebase/fdata_snapshot.rb, line 3
def inspect
  "#<#{self.class}:0x#{self.object_id.to_s(16)} value=#{self.value.inspect} ref=#{self.ref.inspect}>"
end
to_bool() click to toggle source
# File lib/firebase/fdata_snapshot.rb, line 11
def to_bool
  if self.value == 0 || self.value == false
    false
  else
    true
  end
end
to_s() click to toggle source
# File lib/firebase/fdata_snapshot.rb, line 7
def to_s
  self.value.to_s
end
value?() click to toggle source
# File lib/firebase/fdata_snapshot.rb, line 19
def value?
  to_bool
end