Sha256: 2bd8152fea138fefd909a2d558d9a15ab2bd8717ba76088c575453c2591eaf92

Contents?: true

Size: 934 Bytes

Versions: 13

Compression:

Stored size: 934 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 XGen
  module Mongo
    module Driver

      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
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
animehunter-mongo-0.9 lib/mongo/types/dbref.rb
mongodb-mongo-0.10.1 lib/mongo/types/dbref.rb
mongodb-mongo-0.10 lib/mongo/types/dbref.rb
mongodb-mongo-0.11.1 lib/mongo/types/dbref.rb
mongodb-mongo-0.11 lib/mongo/types/dbref.rb
mongodb-mongo-0.12 lib/mongo/types/dbref.rb
mongodb-mongo-0.6.4 lib/mongo/types/dbref.rb
mongodb-mongo-0.6.5 lib/mongo/types/dbref.rb
mongodb-mongo-0.6.6 lib/mongo/types/dbref.rb
mongodb-mongo-0.6.7 lib/mongo/types/dbref.rb
mongodb-mongo-0.7 lib/mongo/types/dbref.rb
mongodb-mongo-0.8 lib/mongo/types/dbref.rb
mongodb-mongo-0.9 lib/mongo/types/dbref.rb