Class: Accordion::AccordionItemComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/accordion/accordion_item_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ AccordionItemComponent

Returns a new instance of AccordionItemComponent.



6
7
8
9
10
11
12
13
# File 'app/components/accordion/accordion_item_component.rb', line 6

def initialize(**options)
  @id = options[:id]
  @title = options[:title]
  @index = options[:index]
  @target = options[:target]
  @active = options[:active]
  @parent = options[:parent]
end