Class: Exwiw::MongodbField

Inherits:
Object
  • Object
show all
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



10
11
12
# File 'lib/exwiw/mongodb_field.rb', line 10

def self.from_symbol_keys(hash)
  from(hash.transform_keys(&:to_s))
end

Instance Method Details

#to_hashObject



14
15
16
# File 'lib/exwiw/mongodb_field.rb', line 14

def to_hash
  super.compact
end