Sha256: 941eaa350aff7f4bd3bc6188d43bc871696a23a21be0c2a5d51972c1e5ce37bc
Contents?: true
Size: 848 Bytes
Versions: 12
Compression:
Stored size: 848 Bytes
Contents
# -- # Copyright (C) 2008-2009 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. # ++ module Mongo class DBRef attr_reader :namespace, :object_id def initialize(namespace, object_id) @namespace, @object_id = namespace, object_id end def to_s "ns: #{namespace}, id: #{object_id}" end end end
Version data entries
12 entries across 12 versions & 3 rubygems