Class: Collavre::ProgressFilterComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Collavre::ProgressFilterComponent
- Defined in:
- app/components/collavre/progress_filter_component.rb
Instance Attribute Summary collapse
-
#current_state ⇒ Object
readonly
Returns the value of attribute current_state.
-
#states ⇒ Object
readonly
Returns the value of attribute states.
Instance Method Summary collapse
-
#initialize(current_state:, states: []) ⇒ ProgressFilterComponent
constructor
A new instance of ProgressFilterComponent.
Constructor Details
#initialize(current_state:, states: []) ⇒ ProgressFilterComponent
Returns a new instance of ProgressFilterComponent.
3 4 5 6 |
# File 'app/components/collavre/progress_filter_component.rb', line 3 def initialize(current_state:, states: []) @current_state = current_state&.to_sym @states = states end |
Instance Attribute Details
#current_state ⇒ Object (readonly)
Returns the value of attribute current_state.
8 9 10 |
# File 'app/components/collavre/progress_filter_component.rb', line 8 def current_state @current_state end |
#states ⇒ Object (readonly)
Returns the value of attribute states.
8 9 10 |
# File 'app/components/collavre/progress_filter_component.rb', line 8 def states @states end |