Class: MongoModel::EmbeddedDocument
- Inherits:
-
Object
- Object
- MongoModel::EmbeddedDocument
- Extended by:
- Collection::PropertyDefaults, Map::PropertyDefaults
- Includes:
- AbstractClass, ActiveModelCompatibility, Associations, AttributeMethods, AttributeMethods::BeforeTypeCast, AttributeMethods::Dirty, AttributeMethods::Forbidden, AttributeMethods::MultiParameterAssignment, AttributeMethods::Nested, AttributeMethods::Protected, AttributeMethods::Query, AttributeMethods::Read, AttributeMethods::Write, Attributes, Callbacks, DocumentParent, Logging, Observing, PrettyInspect, Properties, RecordStatus, Serialization, Timestamps, Translation, Validations
- Defined in:
- lib/mongomodel/embedded_document.rb
Direct Known Subclasses
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
Instance Method Summary collapse
Methods included from Collection::PropertyDefaults
Methods included from Map::PropertyDefaults
Methods included from DocumentParent
#parent_document, #parent_document=
Methods included from AbstractClass
Methods included from PrettyInspect
Methods included from Serialization
Methods included from ActiveModelCompatibility
Methods included from Logging
Methods included from AttributeMethods::Forbidden
Methods included from AttributeMethods::MultiParameterAssignment
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
Methods included from AttributeMethods::BeforeTypeCast
#attributes_before_type_cast, #read_attribute_before_type_cast
Methods included from AttributeMethods::Query
Methods included from AttributeMethods::Write
Methods included from AttributeMethods::Read
Methods included from AttributeMethods
#clone_attribute_value, #method_missing, #respond_to?
Methods included from Associations
Methods included from Callbacks
#initialize, #run_callbacks_with_embedded
Methods included from Validations
Methods included from 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 |