Class: BSON::ObjectId

Inherits:
Object
  • Object
show all
Defined in:
lib/yodel/types/object_id.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_json(record, field, value, action) ⇒ Object



7
8
9
# File 'lib/yodel/types/object_id.rb', line 7

def self.from_json(record, field, value, action)
  BSON::ObjectId.from_string(value)
end

Instance Method Details

#to_json(*a) ⇒ Object



3
4
5
# File 'lib/yodel/types/object_id.rb', line 3

def to_json(*a)
  to_s.to_json(*a)
end