Class: Jquard::Tables::TableComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/jquard/tables/table_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(table:, resource:, result:, query_params: {}) ⇒ TableComponent

Returns a new instance of TableComponent.



4
5
6
7
8
9
# File 'app/components/jquard/tables/table_component.rb', line 4

def initialize(table:, resource:, result:, query_params: {})
  @table = table
  @resource = resource
  @result = result
  @query_params = query_params.to_h.symbolize_keys
end