Class: Alert::AlertComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Alert::AlertComponent
- Defined in:
- app/components/alert/alert_component.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ AlertComponent
constructor
A new instance of AlertComponent.
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(**) @variant = [:variant] @dismiss = [:dismiss] @message = [:message] @icon = [:icon] end |