Class: CurrentUserMiniCardComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- CurrentUserMiniCardComponent
- Defined in:
- lib/app/components/current_user_mini_card_component.rb
Instance Method Summary collapse
-
#initialize(user:) ⇒ CurrentUserMiniCardComponent
constructor
A new instance of CurrentUserMiniCardComponent.
Constructor Details
#initialize(user:) ⇒ CurrentUserMiniCardComponent
Returns a new instance of CurrentUserMiniCardComponent.
4 5 6 |
# File 'lib/app/components/current_user_mini_card_component.rb', line 4 def initialize(user:) @user = user end |