Class: Exwiw::MongodbCollectionConfig
- Inherits:
-
Object
- Object
- Exwiw::MongodbCollectionConfig
- Includes:
- Serdes
- Defined in:
- lib/exwiw/mongodb_collection_config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from(obj) ⇒ Object
23 24 25 26 27 |
# File 'lib/exwiw/mongodb_collection_config.rb', line 23 def self.from(obj) instance = super instance.__send__(:validate_embedded!) instance end |
.from_symbol_keys(hash) ⇒ Object
29 30 31 |
# File 'lib/exwiw/mongodb_collection_config.rb', line 29 def self.from_symbol_keys(hash) from(JSON.parse(hash.to_json)) end |
Instance Method Details
#embedded? ⇒ Boolean
33 34 35 |
# File 'lib/exwiw/mongodb_collection_config.rb', line 33 def !.nil? end |