Class: Panda::Core::Admin::UserActivityComponent

Inherits:
Base
  • Object
show all
Includes:
ActionView::Helpers::DateHelper
Defined in:
app/components/panda/core/admin/user_activity_component.rb

Constant Summary

Constants inherited from Base

Base::TAILWIND_MERGER

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#atObject (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

#modelObject (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

#userObject (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