Module: BSON
- Defined in:
- lib/bson/bson_c.rb,
lib/bson.rb,
lib/bson/bson_ruby.rb,
lib/bson/exceptions.rb,
lib/bson/types/code.rb,
lib/bson/byte_buffer.rb,
lib/bson/types/dbref.rb,
lib/bson/ordered_hash.rb,
lib/bson/types/binary.rb,
lib/bson/types/objectid.rb,
lib/bson/types/min_max_keys.rb
Overview
– Copyright © 2008-2010 10gen Inc.
Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ++
Defined Under Namespace
Classes: BSONError, BSON_C, BSON_RUBY, Binary, ByteBuffer, Code, DBRef, InvalidDocument, InvalidKeyName, InvalidObjectID, InvalidStringEncoding, MaxKey, MinKey, MongoDBError, MongoRubyError, ObjectID, OrderedHash
Constant Summary collapse
- VERSION =
"1.0.1"
Class Method Summary collapse
Class Method Details
.deserialize(buf = nil) ⇒ Object
12 13 14 |
# File 'lib/bson.rb', line 12 def self.deserialize(buf=nil) BSON_CODER.deserialize(buf) end |
.serialize(obj, check_keys = false, move_id = false) ⇒ Object
7 8 9 |
# File 'lib/bson.rb', line 7 def self.serialize(obj, check_keys=false, move_id=false) BSON_CODER.serialize(obj, check_keys, move_id) end |