Class: Ragdoll::EmptyStateComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Ragdoll::EmptyStateComponent
- Defined in:
- app/components/ragdoll/empty_state_component.rb
Instance Method Summary collapse
-
#initialize(title:, message:, icon: nil, action_path: nil, action_text: nil) ⇒ EmptyStateComponent
constructor
A new instance of EmptyStateComponent.
Constructor Details
#initialize(title:, message:, icon: nil, action_path: nil, action_text: nil) ⇒ EmptyStateComponent
Returns a new instance of EmptyStateComponent.
5 6 7 8 9 10 11 |
# File 'app/components/ragdoll/empty_state_component.rb', line 5 def initialize(title:, message:, icon: nil, action_path: nil, action_text: nil) @title = title = @icon = icon @action_path = action_path @action_text = action_text end |