Module: BaseObjects

Defined in:
lib/mongo_persist/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#can_mongo_convert?Boolean

Returns:

  • (Boolean)


23
24
25
# File 'lib/mongo_persist/core_ext.rb', line 23

def can_mongo_convert?
  true
end

#to_mongo_hashObject



17
18
19
# File 'lib/mongo_persist/core_ext.rb', line 17

def to_mongo_hash
  self
end

#to_mongo_objectObject



20
21
22
# File 'lib/mongo_persist/core_ext.rb', line 20

def to_mongo_object
  self
end