Class: Mensa::RowAction::Component

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

Instance Attribute Summary collapse

Attributes inherited from ApplicationComponent

#original_view_context

Instance Method Summary collapse

Constructor Details

#initialize(table:, row:, action:) ⇒ Component

Returns a new instance of Component.



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

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

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



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

def action
  @action
end

#rowObject (readonly)

Returns the value of attribute row.



9
10
11
# File 'app/components/mensa/row_action/component.rb', line 9

def row
  @row
end

#tableObject (readonly)

Returns the value of attribute table.



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

def table
  @table
end