Class: Mensa::SystemView

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#configObject (readonly)

Returns the value of attribute config.



14
15
16
# File 'app/tables/mensa/system_view.rb', line 14

def config
  @config
end

#idObject (readonly)

Returns the value of attribute id.



14
15
16
# File 'app/tables/mensa/system_view.rb', line 14

def id
  @id
end