Class: Ragdoll::AlertComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/ragdoll/alert_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(message:, type: 'info', dismissible: true, **options) ⇒ AlertComponent

Returns a new instance of AlertComponent.



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

def initialize(message:, type: 'info', dismissible: true, **options)
  @message = message
  @type = type
  @dismissible = dismissible
  @options = options
end