Class: Olivander::Components::TablePortletComponent::TableComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/olivander/components/table_portlet_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(item:, item_iteration:, builder:, headers:) ⇒ TableComponent

Returns a new instance of TableComponent.



31
32
33
34
35
36
37
# File 'app/components/olivander/components/table_portlet_component.rb', line 31

def initialize(item:, item_iteration:, builder:, headers:)
  super
  @item = item
  @item_iteration = item_iteration
  @builder = builder
  @headers = headers
end