Class: Recommendable::Workers::DelayedJob
- Inherits:
-
Object
- Object
- Recommendable::Workers::DelayedJob
- Defined in:
- lib/recommendable/workers/delayed_job.rb
Instance Attribute Summary collapse
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
-
#initialize(user_id) ⇒ DelayedJob
constructor
A new instance of DelayedJob.
- #perform ⇒ Object
Constructor Details
#initialize(user_id) ⇒ DelayedJob
Returns a new instance of DelayedJob.
6 7 8 |
# File 'lib/recommendable/workers/delayed_job.rb', line 6 def initialize(user_id) @user_id = user_id end |
Instance Attribute Details
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/recommendable/workers/delayed_job.rb', line 4 def user_id @user_id end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 |
# File 'lib/recommendable/workers/delayed_job.rb', line 10 def perform Recommendable::Helpers::Calculations.update_similarities_for(user_id) Recommendable::Helpers::Calculations.update_recommendations_for(user_id) end |