Class: Solidstats::TasksSectionComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Solidstats::TasksSectionComponent
- Defined in:
- app/components/solidstats/tasks_section_component.rb
Instance Method Summary collapse
-
#initialize(todo_items: []) ⇒ TasksSectionComponent
constructor
A new instance of TasksSectionComponent.
Methods inherited from BaseComponent
#css_classes, #format_number, #safe_get, #status_class, #status_icon, #status_text
Constructor Details
#initialize(todo_items: []) ⇒ TasksSectionComponent
Returns a new instance of TasksSectionComponent.
5 6 7 8 |
# File 'app/components/solidstats/tasks_section_component.rb', line 5 def initialize(todo_items: []) @todo_items = todo_items super() end |