Class: Mensa::Header::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::Header::Component
- Includes:
- TablesHelper
- Defined in:
- app/components/mensa/header/component.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
readonly
Returns the value of attribute column.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(table:, column:) ⇒ Component
constructor
A new instance of Component.
Constructor Details
#initialize(table:, column:) ⇒ Component
Returns a new instance of Component.
13 14 15 16 |
# File 'app/components/mensa/header/component.rb', line 13 def initialize(table:, column:) @table = table @column = column end |
Instance Attribute Details
#column ⇒ Object (readonly)
Returns the value of attribute column.
11 12 13 |
# File 'app/components/mensa/header/component.rb', line 11 def column @column end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
10 11 12 |
# File 'app/components/mensa/header/component.rb', line 10 def table @table end |