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