Class: Mensa::Header::Component

Inherits:
ApplicationComponent show all
Includes:
TablesHelper
Defined in:
app/components/mensa/header/component.rb

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

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

#columnObject (readonly)

Returns the value of attribute column.



11
12
13
# File 'app/components/mensa/header/component.rb', line 11

def column
  @column
end

#tableObject (readonly)

Returns the value of attribute table.



10
11
12
# File 'app/components/mensa/header/component.rb', line 10

def table
  @table
end