Class: Renalware::Patients::BookmarksComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Renalware::Patients::BookmarksComponent
- Defined in:
- app/components/renalware/patients/bookmarks_component.rb
Instance Attribute Summary collapse
-
#current_user ⇒ Object
readonly
Returns the value of attribute current_user.
Instance Method Summary collapse
- #bookmarks ⇒ Object
-
#initialize(current_user:) ⇒ BookmarksComponent
constructor
A new instance of BookmarksComponent.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(current_user:) ⇒ BookmarksComponent
Returns a new instance of BookmarksComponent.
8 9 10 |
# File 'app/components/renalware/patients/bookmarks_component.rb', line 8 def initialize(current_user:) @current_user = current_user end |
Instance Attribute Details
#current_user ⇒ Object (readonly)
Returns the value of attribute current_user.
6 7 8 |
# File 'app/components/renalware/patients/bookmarks_component.rb', line 6 def current_user @current_user end |