Class: Regressor::RegressionModel
- Inherits:
-
Object
- Object
- Regressor::RegressionModel
- Includes:
- Model::Database::Column, Model::Database::Index, Model::Enum, Model::Nested::Attribute, Model::Relation::BelongTo, Model::Relation::HasMany, Model::Relation::HasOne, Model::Validation::Length, Model::Validation::Presence
- Defined in:
- lib/generators/regressor/regression_model.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
Returns the value of attribute model.
Instance Method Summary collapse
-
#initialize(model) ⇒ RegressionModel
constructor
A new instance of RegressionModel.
Methods included from Model::Enum
Methods included from Model::Nested::Attribute
Methods included from Model::Database::Index
Methods included from Model::Database::Column
Methods included from Model::Validation::Length
Methods included from Model::Validation::Presence
Methods included from Model::Relation::HasMany
Methods included from Model::Relation::HasOne
Methods included from Model::Relation::BelongTo
Constructor Details
#initialize(model) ⇒ RegressionModel
Returns a new instance of RegressionModel.
24 25 26 |
# File 'lib/generators/regressor/regression_model.rb', line 24 def initialize(model) @model = model end |
Instance Attribute Details
#model ⇒ Object
Returns the value of attribute model.
22 23 24 |
# File 'lib/generators/regressor/regression_model.rb', line 22 def model @model end |