Class: MongoMapper::Document::VeneerInterface::Property
- Inherits:
-
Veneer::Base::Property
- Object
- Hashie::Dash
- Veneer::Base::Property
- MongoMapper::Document::VeneerInterface::Property
- Defined in:
- lib/veneer/adapters/mongomapper/property.rb
Instance Attribute Summary
Attributes inherited from Veneer::Base::Property
Instance Method Summary collapse
Methods inherited from Veneer::Base::Property
Constructor Details
This class inherits a constructor from Veneer::Base::Property
Instance Method Details
#normalize(type) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/veneer/adapters/mongomapper/property.rb', line 5 def normalize(type) case type when MongoMapper::Extensions::ObjectId then String when MongoMapper::Extensions::Boolean then TrueClass when MongoMapper::Extensions::Binary then StringIO else type end end |