Class: Panda::Core::Admin::UserDisplayComponent
- Defined in:
- app/components/panda/core/admin/user_display_component.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
-
#user_id ⇒ Object
readonly
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(user_id: nil, user: nil, metadata: "", **attrs) ⇒ UserDisplayComponent
constructor
A new instance of UserDisplayComponent.
Constructor Details
#initialize(user_id: nil, user: nil, metadata: "", **attrs) ⇒ UserDisplayComponent
Returns a new instance of UserDisplayComponent.
7 8 9 10 11 12 |
# File 'app/components/panda/core/admin/user_display_component.rb', line 7 def initialize(user_id: nil, user: nil, metadata: "", **attrs) @user_id = user_id @user = user @metadata = super(**attrs) end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
14 15 16 |
# File 'app/components/panda/core/admin/user_display_component.rb', line 14 def @metadata end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
14 15 16 |
# File 'app/components/panda/core/admin/user_display_component.rb', line 14 def user @user end |
#user_id ⇒ Object (readonly)
Returns the value of attribute user_id.
14 15 16 |
# File 'app/components/panda/core/admin/user_display_component.rb', line 14 def user_id @user_id end |