Class: Railsboot::PricingPanelComponent

Inherits:
Component
  • Object
show all
Defined in:
app/components/railsboot/pricing_panel_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**html_attributes) ⇒ PricingPanelComponent

Returns a new instance of PricingPanelComponent.



15
16
17
18
19
20
21
22
# File 'app/components/railsboot/pricing_panel_component.rb', line 15

def initialize(**html_attributes)
  @html_attributes = html_attributes

  @html_attributes[:class] = class_names(
    "relative",
    html_attributes[:class]
  )
end