Class: Regressor::Model::MongoidModel

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Regressor::Model::Mongoid::Document::Version

#version_include

Methods included from Regressor::Model::Mongoid::Document::Timestamp

#timestamp_includes

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

#fields, #fields_as_string

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

#modelObject

Attribute Accessors ===



23
24
25
# File 'lib/model/mongoid_model.rb', line 23

def model
  @model
end