Class: Mensa::RowAction::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Mensa::RowAction::Component
- Defined in:
- app/components/mensa/row_action/component.rb
Instance Attribute Summary collapse
-
#action ⇒ Object
readonly
Returns the value of attribute action.
-
#row ⇒ Object
readonly
Returns the value of attribute row.
-
#table ⇒ Object
readonly
Returns the value of attribute table.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(table:, row:, action:) ⇒ Component
constructor
A new instance of Component.
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
#action ⇒ Object (readonly)
Returns the value of attribute action.
10 11 12 |
# File 'app/components/mensa/row_action/component.rb', line 10 def action @action end |
#row ⇒ Object (readonly)
Returns the value of attribute row.
9 10 11 |
# File 'app/components/mensa/row_action/component.rb', line 9 def row @row end |
#table ⇒ Object (readonly)
Returns the value of attribute table.
8 9 10 |
# File 'app/components/mensa/row_action/component.rb', line 8 def table @table end |