Class: Projects::Ml::ModelsIndexComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Projects::Ml::ModelsIndexComponent
- Defined in:
- app/components/projects/ml/models_index_component.rb
Instance Attribute Summary collapse
-
#models ⇒ Object
readonly
Returns the value of attribute models.
Instance Method Summary collapse
-
#initialize(models:) ⇒ ModelsIndexComponent
constructor
A new instance of ModelsIndexComponent.
Constructor Details
#initialize(models:) ⇒ ModelsIndexComponent
Returns a new instance of ModelsIndexComponent.
8 9 10 |
# File 'app/components/projects/ml/models_index_component.rb', line 8 def initialize(models:) @models = models end |
Instance Attribute Details
#models ⇒ Object (readonly)
Returns the value of attribute models.
6 7 8 |
# File 'app/components/projects/ml/models_index_component.rb', line 6 def models @models end |