Sha256: dd60380110027de2feb0fbb7cd860a2b2ff8b9e4cfc639b188cb7d201af44069
Contents?: true
Size: 756 Bytes
Versions: 7
Compression:
Stored size: 756 Bytes
Contents
class Address include MongoDoc::Document attr_accessor :street attr_accessor :city attr_accessor :state attr_accessor :zip_code end class Place include MongoDoc::Document attr_accessor :name attr_accessor :type embed :address end class Contact include MongoDoc::Document attr_accessor :name attr_accessor :type attr_accessor :note attr_accessor :interests embed_many :addresses scope :rubyists, any_in(:interests => ['ruby']) scope :contract_work, any_in(:interests => ['contract work']) scope :in_state, lambda {|state| where('addresses.state' => state)} end class Event include MongoDoc::Document attr_accessor :name attr_accessor :venue attr_accessor :date, :type => Date embed_hash :addresses end
Version data entries
7 entries across 7 versions & 2 rubygems