Class: FDataSnapshot
- Inherits:
-
Object
- Object
- FDataSnapshot
- Defined in:
- lib/firebase/fdata_snapshot.rb
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
3 4 5 |
# 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 ⇒ Object
11 12 13 14 15 16 17 |
# 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 ⇒ Object
7 8 9 |
# File 'lib/firebase/fdata_snapshot.rb', line 7 def to_s self.value.to_s end |
#value? ⇒ Boolean
19 20 21 |
# File 'lib/firebase/fdata_snapshot.rb', line 19 def value? to_bool end |