Class: MongoModel::Document
- Inherits:
-
EmbeddedDocument
- Object
- EmbeddedDocument
- MongoModel::Document
- Extended by:
- MongoModel::DocumentExtensions::DynamicFinders
- Includes:
- MongoModel::DocumentExtensions::Callbacks, MongoModel::DocumentExtensions::CollectionModifiers, MongoModel::DocumentExtensions::Indexes, MongoModel::DocumentExtensions::OptimisticLocking, MongoModel::DocumentExtensions::Persistence, MongoModel::DocumentExtensions::Scopes, MongoModel::DocumentExtensions::Validations
- Defined in:
- lib/mongomodel/document.rb
Constant Summary
Constants included from MongoModel::DocumentExtensions::CollectionModifiers
MongoModel::DocumentExtensions::CollectionModifiers::METHODS
Constants inherited from EmbeddedDocument
EmbeddedDocument::Collection, EmbeddedDocument::Map
Constants included from Callbacks
Instance Method Summary collapse
Methods included from MongoModel::DocumentExtensions::DynamicFinders
Methods included from MongoModel::DocumentExtensions::Validations
Methods included from MongoModel::DocumentExtensions::Scopes
Methods included from MongoModel::DocumentExtensions::OptimisticLocking
Methods included from MongoModel::DocumentExtensions::Persistence
#collection, #database, #delete, #destroy, #generate_id, #reload, #save, #save!, #update_attribute, #update_attributes, #update_attributes!
Methods included from MongoModel::DocumentExtensions::Callbacks
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
8 9 10 |
# File 'lib/mongomodel/document.rb', line 8 def ==(other) self.class == other.class && id == other.id end |