Class: Mensa::SystemView
- Inherits:
-
Object
- Object
- Mensa::SystemView
- Includes:
- ConfigReaders
- Defined in:
- app/tables/mensa/system_view.rb
Overview
Provide additional links at the end of the row, with an icon, link and a name
action :delete do
link { |contact| delete_contact_path(contact) }
link_attributes "data-turbo-method" => "delete"
icon "fa-xmark"
end
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id, config:, table:) ⇒ SystemView
constructor
A new instance of SystemView.
Constructor Details
#initialize(id, config:, table:) ⇒ SystemView
Returns a new instance of SystemView.
16 17 18 19 20 |
# File 'app/tables/mensa/system_view.rb', line 16 def initialize(id, config:, table:) @id = id @table = table @config = config end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'app/tables/mensa/system_view.rb', line 14 def config @config end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
14 15 16 |
# File 'app/tables/mensa/system_view.rb', line 14 def id @id end |