Class: Collavre::ProgressFilterComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/collavre/progress_filter_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_stateObject (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

#statesObject (readonly)

Returns the value of attribute states.



8
9
10
# File 'app/components/collavre/progress_filter_component.rb', line 8

def states
  @states
end