Class: Mensa::FilterPill::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::FilterPill::Component
- Defined in:
- app/components/mensa/filter_pill/component.rb
Instance Attribute Summary collapse
-
#filter ⇒ Object
readonly
Returns the value of attribute filter.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(filter:) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(filter:) ⇒ Component
Returns a new instance of Component.
10 11 12 |
# File 'app/components/mensa/filter_pill/component.rb', line 10 def initialize(filter:) @filter = filter end |
Instance Attribute Details
#filter ⇒ Object (readonly)
Returns the value of attribute filter.
8 9 10 |
# File 'app/components/mensa/filter_pill/component.rb', line 8 def filter @filter end |