Class: Ragdoll::EmptyStateComponent

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

Instance Method Summary collapse

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
  @message = message
  @icon = icon
  @action_path = action_path
  @action_text = action_text
end