Class: MongoModel::EmbeddedDocument

Direct Known Subclasses

Document

Constant Summary collapse

Collection =

Allow Collection class to be used in property definitions

MongoModel::Collection
Map =

Allow Map class to be used in property definitions

MongoModel::Map

Constants included from Callbacks

Callbacks::CALLBACKS

Instance Method Summary collapse

Methods included from Collection::PropertyDefaults

property

Methods included from Map::PropertyDefaults

property

Methods included from DocumentParent

#parent_document, #parent_document=

Methods included from AbstractClass

#inherited

Methods included from PrettyInspect

#inspect

Methods included from Serialization

#serializable_hash

Methods included from ActiveModelCompatibility

#persisted?, #to_key

Methods included from Logging

#logger

Methods included from AttributeMethods::Forbidden

#assign_attributes

Methods included from AttributeMethods::MultiParameterAssignment

#assign_attributes

Methods included from AttributeMethods::Dirty

#attribute_changed?, #attribute_previously_changed?, #attribute_was, #changed, #changed?, #changed_attributes, #changes, #original_attributes, #previous_changes, #restore_attributes, #write_attribute

Methods included from AttributeMethods::Protected

#assign_attributes

Methods included from AttributeMethods::BeforeTypeCast

#attributes_before_type_cast, #read_attribute_before_type_cast

Methods included from AttributeMethods::Query

#query_attribute

Methods included from AttributeMethods::Write

#[]=, #write_attribute

Methods included from AttributeMethods::Read

#[], #read_attribute

Methods included from AttributeMethods

#clone_attribute_value, #method_missing, #respond_to?

Methods included from Associations

#associations

Methods included from Callbacks

#initialize, #run_callbacks_with_embedded

Methods included from Validations

#valid?

Methods included from Properties

#properties

Methods included from Attributes

#assign_attributes, #attributes, #attributes=, #dup, #embedded_documents, #freeze, #frozen?, #initialize, #to_mongo

Methods included from RecordStatus

#destroyed?, #initialize, #new_record?

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class MongoModel::AttributeMethods

Instance Method Details

#==(other) ⇒ Object



3
4
5
# File 'lib/mongomodel/embedded_document.rb', line 3

def ==(other)
  self.class == other.class && attributes == other.attributes
end