Class: Artisan::Activity::StoryAuditor

Inherits:
Object
  • Object
show all
Defined in:
lib/artisan/activity/story_auditor.rb

Class Method Summary collapse

Class Method Details

.backlogged(story_id, project_id, user_id) ⇒ Object



17
18
19
# File 'lib/artisan/activity/story_auditor.rb', line 17

def self.backlogged(story_id, project_id, user_id)
  story_change(story_id, project_id, user_id, :move_to_backlog)
end

.completed(story_id, project_id, user_id) ⇒ Object



29
30
31
# File 'lib/artisan/activity/story_auditor.rb', line 29

def self.completed(story_id, project_id, user_id)
  story_change(story_id, project_id, user_id, :move_to_complete)
end

.created(story_id, project_id, user_id, new_attributes) ⇒ Object



5
6
7
# File 'lib/artisan/activity/story_auditor.rb', line 5

def self.created(story_id, project_id, user_id, new_attributes)
  story_change(story_id, project_id, user_id, :create, {}, new_attributes)
end

.deleted(story_id, project_id, user_id) ⇒ Object



13
14
15
# File 'lib/artisan/activity/story_auditor.rb', line 13

def self.deleted(story_id, project_id, user_id)
  story_change(story_id, project_id, user_id, :delete)
end

.readied(story_id, project_id, user_id) ⇒ Object



21
22
23
# File 'lib/artisan/activity/story_auditor.rb', line 21

def self.readied(story_id, project_id, user_id)
  story_change(story_id, project_id, user_id, :move_to_ready)
end

.updated(story_id, project_id, user_id, original_attributes, new_attributes) ⇒ Object



9
10
11
# File 'lib/artisan/activity/story_auditor.rb', line 9

def self.updated(story_id, project_id, user_id, original_attributes, new_attributes)
  story_change(story_id, project_id, user_id, :update, original_attributes, new_attributes)
end

.worked(story_id, project_id, user_id) ⇒ Object



25
26
27
# File 'lib/artisan/activity/story_auditor.rb', line 25

def self.worked(story_id, project_id, user_id)
  story_change(story_id, project_id, user_id, :move_to_working)
end