Class: Artisan::Activity::ActivityInteractor
- Inherits:
-
Object
- Object
- Artisan::Activity::ActivityInteractor
- Defined in:
- lib/artisan/activity/activity_interactor.rb
Instance Method Summary collapse
- #changes ⇒ Object
-
#initialize(project_id, user) ⇒ ActivityInteractor
constructor
A new instance of ActivityInteractor.
Constructor Details
#initialize(project_id, user) ⇒ ActivityInteractor
Returns a new instance of ActivityInteractor.
6 7 8 9 |
# File 'lib/artisan/activity/activity_interactor.rb', line 6 def initialize(project_id, user) @project_id = project_id @user = user end |
Instance Method Details
#changes ⇒ Object
11 12 13 14 15 |
# File 'lib/artisan/activity/activity_interactor.rb', line 11 def changes project_changes = ::Change.find_all_by_project_id(@project_id) project = Projects::ProjectsInteractor.new(@user).find(@project_id) return ActivityPresenter.new(project_changes, project) end |