Sha256: a88513b94a8b8a2ad33b000ef3b64d4a198832d8eb2594d5811e37d7eafcc7e0
Contents?: true
Size: 285 Bytes
Versions: 1
Compression:
Stored size: 285 Bytes
Contents
module MongoBrowser module Models class Document attr_reader :mongo_document def initialize(mongo_document) @mongo_document = mongo_document end def id mongo_document["_id"] end alias :data :mongo_document end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_browser-0.2.0.rc2 | lib/mongo_browser/models/document.rb |