Class: Mensa::TableRow::Component

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

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

Constructor Details

#initialize(table:, row:) ⇒ Component

Returns a new instance of Component.



13
14
15
16
# File 'app/components/mensa/table_row/component.rb', line 13

def initialize(table:, row:)
  @table = table
  @row = row
end

Instance Attribute Details

#rowObject (readonly)

Returns the value of attribute row.



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

def row
  @row
end

#tableObject (readonly)

Returns the value of attribute table.



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

def table
  @table
end