Class: Mensa::FilterPill::Component

Inherits:
ApplicationComponent show all
Defined in:
app/components/mensa/filter_pill/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

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

#filterObject (readonly)

Returns the value of attribute filter.



8
9
10
# File 'app/components/mensa/filter_pill/component.rb', line 8

def filter
  @filter
end