Class: Exwiw::MongodbField
- Inherits:
-
Object
- Object
- Exwiw::MongodbField
- Includes:
- Serdes
- Defined in:
- lib/exwiw/mongodb_field.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_symbol_keys(hash) ⇒ Object
20 21 22 |
# File 'lib/exwiw/mongodb_field.rb', line 20 def self.from_symbol_keys(hash) from(hash.transform_keys(&:to_s)) end |
Instance Method Details
#to_hash ⇒ Object
24 25 26 |
# File 'lib/exwiw/mongodb_field.rb', line 24 def to_hash super.compact end |