Class: Regressor::Model::MongoidModel
- Inherits:
-
Object
- Object
- Regressor::Model::MongoidModel
- Includes:
- Regressor::Model::Mongoid::Database::Field, Regressor::Model::Mongoid::Document::Timestamp, Regressor::Model::Mongoid::Document::Version, Regressor::Model::Mongoid::Relation::BelongsTo, Regressor::Model::Mongoid::Relation::Embedded, Regressor::Model::Mongoid::Relation::HasMany, Regressor::Model::Mongoid::Relation::HasOne
- Defined in:
- lib/model/mongoid_model.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Attribute Accessors ===.
Instance Method Summary collapse
-
#initialize(model) ⇒ MongoidModel
constructor
Methods ===.
Methods included from Regressor::Model::Mongoid::Document::Version
Methods included from Regressor::Model::Mongoid::Document::Timestamp
Methods included from Regressor::Model::Mongoid::Relation::Embedded
#embedded_relations, #embedded_relations_as_string
Methods included from Regressor::Model::Mongoid::Relation::BelongsTo
#belongs_to_relations, #belongs_to_relations_as_string
Methods included from Regressor::Model::Mongoid::Relation::HasOne
#has_one_relations, #has_one_relations_as_string
Methods included from Regressor::Model::Mongoid::Relation::HasMany
#has_many_relations, #has_many_relations_as_string
Methods included from Regressor::Model::Mongoid::Database::Field
Constructor Details
#initialize(model) ⇒ MongoidModel
Methods ===
26 27 28 |
# File 'lib/model/mongoid_model.rb', line 26 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object
Attribute Accessors ===
23 24 25 |
# File 'lib/model/mongoid_model.rb', line 23 def model @model end |