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
24 25 26 27 28 |
# File 'lib/exwiw/mongodb_collection_config.rb', line 24 def self.from(obj) instance = super instance.__send__(:validate_embedded!) instance end |
.from_symbol_keys(hash) ⇒ Object
30 31 32 |
# File 'lib/exwiw/mongodb_collection_config.rb', line 30 def self.from_symbol_keys(hash) from(JSON.parse(hash.to_json)) end |
Instance Method Details
#embedded? ⇒ Boolean
34 35 36 |
# File 'lib/exwiw/mongodb_collection_config.rb', line 34 def !.nil? end |