Class: BSON::OrderedHash

Inherits:
Object
  • Object
show all
Defined in:
lib/as_mongo.rb

Instance Method Summary collapse

Instance Method Details

#_idObject



18
19
20
# File 'lib/as_mongo.rb', line 18

def _id
  fetch("_id",nil)
end

#created_atObject



22
23
24
# File 'lib/as_mongo.rb', line 22

def created_at
  localtime_or_original_data("created_at")
end

#deleted_atObject



30
31
32
# File 'lib/as_mongo.rb', line 30

def deleted_at
  localtime_or_original_data("deleted_at")
end

#to_sObject



14
15
16
# File 'lib/as_mongo.rb', line 14

def to_s
  _id.to_s
end

#updated_atObject



26
27
28
# File 'lib/as_mongo.rb', line 26

def updated_at
  localtime_or_original_data("updated_at")
end