Class: Alert::AlertComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/alert/alert_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(**options) ⇒ AlertComponent

Returns a new instance of AlertComponent.



5
6
7
8
9
10
# File 'app/components/alert/alert_component.rb', line 5

def initialize(**options)
  @variant = options[:variant]
  @dismiss = options[:dismiss]
  @message = options[:message]
  @icon = options[:icon]
end