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