Class: BSON::OrderedHash
- Inherits:
-
Object
- Object
- BSON::OrderedHash
- Defined in:
- lib/as_mongo.rb
Instance Method Summary collapse
Instance Method Details
#_id ⇒ Object
18 19 20 |
# File 'lib/as_mongo.rb', line 18 def _id fetch("_id",nil) end |
#created_at ⇒ Object
22 23 24 |
# File 'lib/as_mongo.rb', line 22 def created_at localtime_or_original_data("created_at") end |
#deleted_at ⇒ Object
30 31 32 |
# File 'lib/as_mongo.rb', line 30 def deleted_at localtime_or_original_data("deleted_at") end |
#to_s ⇒ Object
14 15 16 |
# File 'lib/as_mongo.rb', line 14 def to_s _id.to_s end |
#updated_at ⇒ Object
26 27 28 |
# File 'lib/as_mongo.rb', line 26 def updated_at localtime_or_original_data("updated_at") end |