Class: Projects::Ml::ModelsIndexComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/projects/ml/models_index_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#modelsObject (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