Sha256: 7852d46ffb5c238284e03baf3bc861cdd8287a1e6136b0f966d11ccdc2fe425a

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

class Address < MongoDoc::Base
  key :street
  key :city
  key :state
  key :zip_code
end

class Place < MongoDoc::Base
  key :name
  has_one :address
end

class Location < MongoDoc::Base
  has_one :address
  key :website
end

class WifiAccessible < Location
  key :network_name
end

class WebSite
  attr_accessor :url
end

module Automobile
  class Ariel < MongoDoc::Base
    key :name
  end
end

class Contact < MongoDoc::Base
  key :name
  has_many :addresses
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mongodoc-0.0.0 spec/test_documents.rb